summaryrefslogtreecommitdiff
path: root/Tools/Scripts/run-api-tests
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/Scripts/run-api-tests')
-rwxr-xr-xTools/Scripts/run-api-tests13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tools/Scripts/run-api-tests b/Tools/Scripts/run-api-tests
index 3a3e00cda..5913cee8f 100755
--- a/Tools/Scripts/run-api-tests
+++ b/Tools/Scripts/run-api-tests
@@ -79,6 +79,19 @@ if ($showHelp) {
}
setConfiguration();
+
+# When running TestWebKitAPI for Chromium on Android, defer to the test runner in
+# Chromium as we can't execute the binary locally.
+if (isChromiumAndroid()) {
+ my @runTestCommand = ('build/android/run_tests.py', '--verbose', '--webkit', '--out-directory', sourceDir() . '/out', '-s', 'TestWebKitAPI');
+ if (configuration() eq "Release") {
+ push @runTestCommand, '--release';
+ }
+
+ chdir(sourceDir() . '/Source/WebKit/chromium') or die $!;
+ exit exitStatus(system(@runTestCommand));
+}
+
buildTestTool() if $build;
setPathForRunningWebKitApp(\%ENV);
my @testsToRun = listAllTests();