1. validator
  2. build

Commits

Michael[tm] Smith  committed 9651af9

Download ITS2 test suite for use with test runner.

  • Participants
  • Parent commits 4fceec0
  • Branches default

Comments (0)

Files changed (1)

File build.py

View file
   ("http://switch.dl.sourceforge.net/sourceforge/junit/junit-4.4.jar", "f852bbb2bbe0471cef8e5b833cb36078"),
   ("http://switch.dl.sourceforge.net/sourceforge/jchardet/chardet.zip", "4091d24451ee9a840933bce34b9e3a55"),
   ("http://switch.dl.sourceforge.net/sourceforge/saxon/saxonb9-1-0-2j.zip", "9e649eec59103593fb75befaa28e1f3d"),
+  ("https://github.com/sideshowbarker/ITS-2.0-Testsuite/archive/master.zip", "e0c5e74009fac868e62fd92baab985ee"),
 ]
 
 # Unfortunately, the packages contain old versions of certain libs, so 
     if path.endswith(".zip"):
       zipExtract(path, dependencyDir)
 
+def addTestCases():
+  testCaseDir = os.path.join(os.path.join(buildRoot, "syntax", "relaxng", "tests"))
+  testSourcesITS = os.path.join(os.path.join(buildRoot, "dependencies", "ITS-2.0-Testsuite-master", "its2.0", "inputdata"))
+  testDestITS = os.path.join(testCaseDir, "html-its")
+  removeIfDirExists(testDestITS)
+  shutil.copytree(testSourcesITS, testDestITS)
+
 def downloadDependencies():
   for url, md5sum in dependencyPackages:
     downloadDependency(url, md5sum)
         selfUpdate()
     elif arg == 'test':
       if noSelfUpdate:
+        addTestCases()
         runTests()
       else:
         selfUpdate()
         downloadOperaSuite()
         prepareLocalEntityJar()
         buildAll()
+        addTestCases()
         runTests()
         if not stylesheet:
           stylesheet = 'style.css'