summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/yaml-cpp-test.cpp8
-rw-r--r--src/yaml-cpp.mk5
2 files changed, 13 insertions, 0 deletions
diff --git a/src/yaml-cpp-test.cpp b/src/yaml-cpp-test.cpp
new file mode 100644
index 0000000..2b91ba4
--- /dev/null
+++ b/src/yaml-cpp-test.cpp
@@ -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;
+}
diff --git a/src/yaml-cpp.mk b/src/yaml-cpp.mk
index 30a0ecb..40adc0f 100644
--- a/src/yaml-cpp.mk
+++ b/src/yaml-cpp.mk
@@ -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