##// END OF EJS Templates
Fixed several documentation issues
Fixed several documentation issues

File last commit:

r1203:5bd91523463d
r2265:b004c42eda51
Show More
Jobs.pm
32 lines | 652 B | text/x-perl | PerlLexer
Jani Honkonen
Add a script for running tests
r1134 package Jobs;
use File::Basename;
Jani Honkonen
Added Config::Tiny as a local module....
r1150 use Tiny;
Jani Honkonen
Add a script for running tests
r1134
sub get {
my $inifile = shift;
my $jobname = shift;
# Strip the prefix from job name when using ${bamboo.buildPlanName}
my $prefix = "Digia Qt Commercial - Chart component - ";
$jobname =~ s/$prefix//;
# read ini file
Jani Honkonen
Switch to Config::Tiny. It comes out of the box with ActivePerl at least.
r1149 my $cfg = Config::Tiny->read( $inifile );
Jani Honkonen
Add a script for running tests
r1134 # get section from ini by jobname
Jani Honkonen
Switch to Config::Tiny. It comes out of the box with ActivePerl at least.
r1149 my %job = %{$cfg->{$jobname}};
Jani Honkonen
Add a script for running tests
r1134 if (!%job) {
die ("Unknown jobname! Check $inifile and bamboo job name.");
}
# print out the ini settings
Jani Honkonen
Fine tuning the auto test scripts
r1138 print "\n\nini file: $inifile\n";
print "[$jobname]\n";
Jani Honkonen
Add a script for running tests
r1134 foreach (keys %job) {
Jani Honkonen
Fine tuning the auto test scripts
r1138 print $_ . "=" . $job{$_} . "\n";
Jani Honkonen
Add a script for running tests
r1134 }
Jani Honkonen
Fine tuning the auto test scripts
r1138 print "\n";
Jani Honkonen
Add a script for running tests
r1134
return %job;
}
1;