1. validator
  2. build

Commits

Henri Sivonen  committed 1e202a1

build jdriver

  • Participants
  • Parent commits 7c43b4d
  • Branches default

Comments (0)

Files changed (1)

File build.py

View file
 
 def execCmd(cmd, args):
   print "%s %s" % (cmd, " ".join(args))
-  os.execvp(cmd, [cmd,] + args)
+  if os.execvp(cmd, [cmd,] + args):
+    print "Command failed."
+    exit 2
 
 def removeIfExists(filePath):
   if os.path.exists(filePath):
     "validator", 
     classPath)
 
+def buildTestHarness():
+  classPath = os.pathsep.join(dependencyJarPaths() 
+                              + jarNamesToPaths(["non-schema", 
+                                                "io-xml-util",
+                                                "htmlparser",
+                                                "hs-aelfred2"]))
+  buildModule(
+    os.path.join(buildRoot, "syntax", "relaxng", "tests", "jdriver"), 
+    "test-harness", 
+    classPath)
+
 def runValidator():
   ensureDirExists(os.path.join(buildRoot, "logs"))
   classPath = os.pathsep.join(dependencyJarPaths() 
   buildNonSchema()
   buildXmlParser()
   buildHtmlParser()
+  buildTestHarness()
   buildValidator()
 
 def checkout():