Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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. xsdtest.exe : xsdtest.cs $(TESTS)
  8. $(MCS) xsdtest.cs
  9. xs-psci-compare.exe : xs-psci-compare.cs
  10. $(MCS) xs-psci-compare.cs
  11. $(MASTERS) : $(MASTER_ARCHIVE)
  12. mkdir xsd-test-suite 2>/dev/null; true
  13. cd xsd-test-suite && tar zxvf ../$(MASTER_ARCHIVE)
  14. touch $(MASTERS)
  15. $(TESTS) : $(TEST_ARCHIVE) $(MASTERS)
  16. mkdir xsd-test-suite 2>/dev/null; true
  17. cd xsd-test-suite && tar zxvf ../$(TEST_ARCHIVE)
  18. touch $(TESTS)
  19. $(TEST_ARCHIVE) :
  20. wget http://www.w3.org/2001/05/xmlschema-test-collection/XSTC-20020116.tar.gz
  21. run-test :
  22. $(RUNTIME) xsdtest.exe --xml --reportsuccess --testall --details --report:TestResult.xml $(XSD_TEST_FLAGS)
  23. @echo "SUCCESS: `grep -c \"OK\" TestResult.xml` NORMAL FAILURE: `grep -c should TestResult.xml` UNEXPECTED `grep -c unexpected TestResult.xml`"
  24. test-psci : xs-psci-compare.exe
  25. $(RUNTIME) xs-psci-compare.exe xsd-test-suite/msxsdtest/tests-all.xml > psci-mono-msxsd.txt
  26. # be careful to use it. This removes ALL files in xsd-test-suite!
  27. # clean:
  28. # rm -rf xsd-test-suite