Makefile 1.3 KB

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