yaml-cpp: add test

This commit is contained in:
Boris Nagaev 2016-07-16 01:54:43 +03:00
parent 1d6bc5b243
commit e0d07d5e8b
2 changed files with 13 additions and 0 deletions

8
src/yaml-cpp-test.cpp Normal file
View File

@ -0,0 +1,8 @@
#include <assert.h>
#include <yaml-cpp/yaml.h>
int main() {
YAML::Node node = YAML::Load("[1, 2, 3]");
assert(node.IsSequence());
return 0;
}

View File

@ -21,4 +21,9 @@ define $(PKG)_BUILD
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS) VERBOSE=1
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
'$(TARGET)-g++' \
-W -Wall -Werror -ansi -pedantic \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
`'$(TARGET)-pkg-config' $(PKG) --cflags --libs`
endef