New test.
[mono.git] / mcs / class / System.XML / Test / System.Xml.Schema / standalone_tests / Makefile
1 RUNTIME = MONO_PATH=../../../../lib/default mono --debug
2 MCS = mcs
3 TESTS = xsd-test-suite/suntest/SunTestsAll/xsiType1.xsd
4 MASTERS = xsd-test-suite/suntest/tests-all.xml
5 TEST_ARCHIVE = XSTC-20020116.tar.gz
6 MASTER_ARCHIVE = test-masters.tar.gz
7
8 xsdtest.exe : xsdtest.cs $(TESTS)
9         $(MCS) xsdtest.cs
10
11 xs-psci-compare.exe : xs-psci-compare.cs
12         $(MCS) xs-psci-compare.cs
13
14 $(MASTERS) : $(MASTER_ARCHIVE)
15         mkdir xsd-test-suite 2>/dev/null; true
16         cd xsd-test-suite && tar zxvf ../$(MASTER_ARCHIVE)
17         touch $(MASTERS)
18
19 $(TESTS) : $(TEST_ARCHIVE) $(MASTERS) 
20         mkdir xsd-test-suite 2>/dev/null; true
21         cd xsd-test-suite && tar zxvf ../$(TEST_ARCHIVE)
22         touch $(TESTS)
23
24 $(TEST_ARCHIVE) :
25         wget http://www.w3.org/2001/05/xmlschema-test-collection/XSTC-20020116.tar.gz
26
27 run-test :
28         $(RUNTIME) xsdtest.exe --xml --reportsuccess --testall --details --report:TestResult.xml $(XSD_TEST_FLAGS)
29         @echo "SUCCESS: `grep -c \"OK\" TestResult.xml` NORMAL FAILURE: `grep -c should TestResult.xml` UNEXPECTED `grep -c unexpected TestResult.xml`"
30
31 test-psci : xs-psci-compare.exe
32         $(RUNTIME) xs-psci-compare.exe xsd-test-suite/msxsdtest/tests-all.xml > psci-mono-msxsd.txt
33
34 # be careful to use it. This removes ALL files in xsd-test-suite!
35 # clean:
36 #       rm -rf xsd-test-suite