mirror of https://git.wownero.com/dsc/mxe.git
yaml-cpp: add test
This commit is contained in:
parent
1d6bc5b243
commit
e0d07d5e8b
|
@ -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;
|
||||||
|
}
|
|
@ -21,4 +21,9 @@ define $(PKG)_BUILD
|
||||||
|
|
||||||
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS) VERBOSE=1
|
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS) VERBOSE=1
|
||||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
$(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
|
endef
|
||||||
|
|
Loading…
Reference in New Issue