summaryrefslogtreecommitdiff
path: root/Resources/Libraries/luaunit/junitxml/Makefile
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-20 13:36:36 +0800
committerchai <chaifix@163.com>2021-10-20 13:36:36 +0800
commitdde719dd575090b36aaa3ad85bb3cabf33f36c5a (patch)
tree3e0a8e70f716dbfee2f644f5202da7ee74b3c6b7 /Resources/Libraries/luaunit/junitxml/Makefile
parent943411c9006345b07557e76ff360c388ee8366c1 (diff)
+luaunit test
Diffstat (limited to 'Resources/Libraries/luaunit/junitxml/Makefile')
-rw-r--r--Resources/Libraries/luaunit/junitxml/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Resources/Libraries/luaunit/junitxml/Makefile b/Resources/Libraries/luaunit/junitxml/Makefile
new file mode 100644
index 0000000..9679016
--- /dev/null
+++ b/Resources/Libraries/luaunit/junitxml/Makefile
@@ -0,0 +1,17 @@
+#
+# junitxml/Makefile
+#
+
+XMLLINT ?= xmllint
+TEST_APACHE = --noout --schema junit-apache-ant.xsd
+TEST_JENKINS = --noout --schema junit-jenkins.xsd
+
+validate-examples: validate-apache validate-jenkins
+
+# This example file is the only one that satisfies the Apache schema
+validate-apache: example-apache-ant.xml
+ $(XMLLINT) $(TEST_APACHE) $<
+
+# The Jenkins schema is more relaxed, and should apply to all .xml files
+validate-jenkins: $(wildcard *.xml)
+ for file in $^; do $(XMLLINT) $(TEST_JENKINS) $$file || exit 1; done