Makefile 1.2 KB

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