summaryrefslogtreecommitdiffstats
path: root/tests/auto/android
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>2013-08-05 09:52:14 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-05 14:53:06 +0200
commitd05ce9c61e5ca9051f2edad4702170c6e99702aa (patch)
tree7b9890a3c3cf4795ae8e2eecf040937041ff3d31 /tests/auto/android
parent812e23cea2d746641a57c697c2494e8db96fca34 (diff)
Android: Enable script to run single autotest
To make it easier to debug failures, adds the "testcase" commandline option, which takes the name of the test to run and then just runs this single test. Change-Id: Ib202bb2a5dac889b6691f9c4d0620b3e0941cf3d Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'tests/auto/android')
-rwxr-xr-xtests/auto/android/runtests.pl10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/auto/android/runtests.pl b/tests/auto/android/runtests.pl
index 35cadda498..55e1a224d8 100755
--- a/tests/auto/android/runtests.pl
+++ b/tests/auto/android/runtests.pl
@@ -79,6 +79,7 @@ GetOptions('h|help' => \$help
, 'ant=s' => \$ant_tool
, 'strip=s' => \$strip_tool
, 'readelf=s' => \$readelf_tool
+ , 'testcase=s' => \$testcase
) or pod2usage(2);
pod2usage(1) if $help;
pod2usage(-verbose => 2) if $man;
@@ -253,7 +254,14 @@ print "Building $tests_dir \n";
system("make distclean") if ($make_clean);
system("$qmake_path CONFIG-=QTDIR_build -r") == 0 or die "Can't run qmake\n"; #exec qmake
system("make -j$jobs") == 0 or warn "Can't build all tests\n"; #exec make
-my $testsFiles=`find . -name libtst_*.so`; # only tests
+
+my $testsFiles = "";
+if ($testcase) {
+ $testsFiles=`find . -name libtst_$testcase.so`; # only tests
+} else {
+ $testsFiles=`find . -name libtst_*.so`; # only tests
+}
+
foreach (split("\n",$testsFiles))
{
chomp; #remove white spaces