on master help sign in
Gather timing data for tests.
9cfd857Jan de Muijnck-Hughes
test/runtest.pl+6
@@ -55,10 +55,16 @@ sub runtest {
55
55
56 chdir($test);
56 chdir($test);
57
57
58+ my $startTime = time();
58 print "Running $test...\n";
59 print "Running $test...\n";
59 my $got = `$sandbox ./run @idrOpts`;
60 my $got = `$sandbox ./run @idrOpts`;
60 my $exp = `cat expected`;
61 my $exp = `cat expected`;
61
62
63+ my $endTime = time();
64+ my $elapsedTime = $endTime - $startTime;
65+
66+ print "Duration of $test was $elapsedTime\n";
67+
62 # Allow for variant expected output for tests by overriding expected
68 # Allow for variant expected output for tests by overriding expected
63 # when there is an expected.<os> file in the test.
69 # when there is an expected.<os> file in the test.
64 # This should be the exception but there are sometimes valid reasons
70 # This should be the exception but there are sometimes valid reasons