Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. PROFILE = net_4_x
  2. RUNTIME = MONO_PATH=../../../../lib/$(PROFILE) mono --debug
  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. MCS_OPTS += -d:NET_2_0
  9. TEST_RUNNER = xsdtest_$(PROFILE).exe
  10. $(TEST_RUNNER) : xsdtest.cs $(TESTS)
  11. $(MCS) xsdtest.cs $(MCS_OPTS) -out:$(TEST_RUNNER)
  12. xs-psci-compare.exe : xs-psci-compare.cs
  13. $(MCS) xs-psci-compare.cs
  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. $(TESTS) : $(TEST_ARCHIVE) $(MASTERS)
  19. mkdir xsd-test-suite 2>/dev/null; true
  20. cd xsd-test-suite && tar zxvf ../$(TEST_ARCHIVE)
  21. touch $(TESTS)
  22. $(TEST_ARCHIVE) :
  23. wget http://www.w3.org/2001/05/xmlschema-test-collection/XSTC-20020116.tar.gz
  24. run-test : $(TEST_RUNNER)
  25. $(RUNTIME) $(TEST_RUNNER) --v2 --xml --reportsuccess --testall --details --report:TestResult.xml $(XSD_TEST_FLAGS)
  26. @echo "SUCCESS: `grep -c \"OK\" TestResult.xml` NORMAL FAILURE: `grep -c should TestResult.xml` UNEXPECTED `grep -c unexpected TestResult.xml`"
  27. test-psci : xs-psci-compare.exe
  28. $(RUNTIME) xs-psci-compare.exe xsd-test-suite/msxsdtest/tests-all.xml > psci-mono-msxsd.txt
  29. clean:
  30. rm $(TEST_RUNNER)
  31. # be careful to use it. This removes ALL files in xsd-test-suite!
  32. clean-complete:
  33. rm $(TEST_RUNNER)
  34. rm -rf xsd-test-suite