@@ -12,14 +12,18 my $jobname = shift; | |||||
12 | my $inifile = File::Basename::dirname($0) . "/jobs.ini"; |
|
12 | my $inifile = File::Basename::dirname($0) . "/jobs.ini"; | |
13 | my %job = Jobs::get($inifile, $jobname); |
|
13 | my %job = Jobs::get($inifile, $jobname); | |
14 |
|
14 | |||
|
15 | # get paths | |||
|
16 | my $root_path = abs_path(); | |||
|
17 | my $test_path = "$root_path/bin/test/"; | |||
|
18 | ||||
15 | # Windows specific magic |
|
19 | # Windows specific magic | |
16 | if ($job{'Platform'} eq "Win7") { |
|
20 | if ($job{'Platform'} eq "Win7") { | |
17 | $ENV{'PATH'} .= ";" . $job{'QtDir'} . "\\bin"; # Add qtdir to path |
|
21 | $ENV{'PATH'} .= ";" . $job{'QtDir'} . "\\bin"; # Add qtdir to path | |
|
22 | $ENV{'PATH'} .= ";" . $root_path . "\\bin"; # Add charts bin to path | |||
|
23 | $ENV{'PATH'} =~ s/\//\\/g; # replace / -> \ | |||
18 | } |
|
24 | } | |
19 |
|
25 | |||
20 | # Go through all the files in the test folder |
|
26 | # Go through all the files in the test folder | |
21 | my $root_path = abs_path(); |
|
|||
22 | my $test_path = "$root_path/bin/test/"; |
|
|||
23 |
opendir |
|
27 | opendir (TESTAPPDIR, "$test_path") or die "Couldn't open test app dir"; | |
24 | @files = <TESTAPPDIR>; |
|
28 | @files = <TESTAPPDIR>; | |
25 | while ($testapp = readdir TESTAPPDIR) { |
|
29 | while ($testapp = readdir TESTAPPDIR) { | |
@@ -48,10 +52,9 sub executeTestApp($) { | |||||
48 | my $test_app_path = $_[0]; |
|
52 | my $test_app_path = $_[0]; | |
49 | my $parameters = $_[1]; |
|
53 | my $parameters = $_[1]; | |
50 |
|
54 | |||
51 |
print |
|
55 | print "executing: $test_app_path $parameters\n"; | |
52 |
my |
|
56 | my $file_handle = system("$test_app_path $parameters"); | |
53 |
|
57 | |||
54 | my $exit_status = $? >> 8; |
|
58 | my $exit_status = $? >> 8; | |
55 |
|
|
59 | print "\texit status: $exit_status handle: $file_handle\n"; | |
56 | # print "handle: $file_handle\n"; |
|
|||
57 | } |
|
60 | } |
General Comments 0
You need to be logged in to leave comments.
Login now