From dcfadb73bd9568b1baafc7987ad9e0d39fd62208 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 19 Dec 2015 00:43:30 +0000 Subject: Add a prepare-only mode to runtest.pl, to help with debugging on Windows --- runtest.pl.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'runtest.pl.in') diff --git a/runtest.pl.in b/runtest.pl.in index 23e46f95..818b5535 100755 --- a/runtest.pl.in +++ b/runtest.pl.in @@ -9,6 +9,14 @@ use lib dirname($0).'/infrastructure'; use BoxPlatform; +my $prepare_only = 0; +if (@ARGV and $ARGV[0] eq '-n') +{ + # Don't actually run the test, just prepare for it. + $prepare_only = 1; + shift @ARGV; +} + my ($test_name,$test_mode) = @ARGV; $test_mode = 'debug' if not defined $test_mode or $test_mode eq ''; @@ -190,6 +198,11 @@ sub runtest my $logfile = "test-$t.log"; my $test_res; + + if($prepare_only) + { + return; + } # run it if($target_msvc) -- cgit v1.2.3