Title: [141172] trunk/Tools
Revision
141172
Author
jber...@webkit.org
Date
2013-01-29 15:35:54 -0800 (Tue, 29 Jan 2013)

Log Message

run-api-tests should have an option to specify root
https://bugs.webkit.org/show_bug.cgi?id=108210

Reviewed by Ryosuke Niwa.

* Scripts/run-api-tests:
Add the option and use it to set the configuration product directory. Since it is supposed
to point to the built products, do not build the products if root is specified (this mimics
the behavior of run-_javascript_core-tests).

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (141171 => 141172)


--- trunk/Tools/ChangeLog	2013-01-29 23:24:53 UTC (rev 141171)
+++ trunk/Tools/ChangeLog	2013-01-29 23:35:54 UTC (rev 141172)
@@ -1,3 +1,15 @@
+2013-01-29  Jessie Berlin  <jber...@apple.com>
+
+        run-api-tests should have an option to specify root
+        https://bugs.webkit.org/show_bug.cgi?id=108210
+
+        Reviewed by Ryosuke Niwa.
+
+        * Scripts/run-api-tests:
+        Add the option and use it to set the configuration product directory. Since it is supposed
+        to point to the built products, do not build the products if root is specified (this mimics
+        the behavior of run-_javascript_core-tests).
+
 2013-01-29  Bruno de Oliveira Abinader  <bruno.abina...@basyskom.com>
 
         [EFL] Add Toggle fullscreen (F11) to MiniBrowser

Modified: trunk/Tools/Scripts/run-api-tests (141171 => 141172)


--- trunk/Tools/Scripts/run-api-tests	2013-01-29 23:24:53 UTC (rev 141171)
+++ trunk/Tools/Scripts/run-api-tests	2013-01-29 23:35:54 UTC (rev 141172)
@@ -52,6 +52,7 @@
 my $verbose = 0;
 my $dumpTests = 0;
 my $build = 1;
+my $root;
 my $buildDefault = $build ? "build" : "do not build";
 my @testsFailed;
 my @testsTimedOut;
@@ -63,6 +64,7 @@
   -v|--verbose          Verbose output
   -d|--dump-tests       Dump the names of testcases without running them
   --[no-]build          Build (or do not build) unit tests prior to running (default: $buildDefault)
+  --root=               Path to the pre-built root containing TestWebKitAPI
   --chromium            Run the Chromium port on Mac/Win/Linux
 EOF
 
@@ -70,7 +72,8 @@
     'help' => \$showHelp,
     'verbose|v' => \$verbose,
     'dump|d' => \$dumpTests,
-    'build!' => \$build
+    'build!' => \$build,
+    'root=s' => \$root
 );
 
 if ($showHelp) {
@@ -92,7 +95,9 @@
     exit exitStatus(system(@runTestCommand));
 }
 
-buildTestTool() if $build;
+setConfigurationProductDir(Cwd::abs_path($root)) if (defined($root));
+
+buildTestTool() if $build && !defined($root);
 setPathForRunningWebKitApp(\%ENV);
 my @testsToRun = listAllTests();
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to