Henri Sivonen avatar Henri Sivonen committed 1e202a1

build jdriver

Comments (0)

Files changed (1)

 
 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():
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.