##// END OF EJS Templates
Draft for QML demo that shows weather forecasts
Draft for QML demo that shows weather forecasts

File last commit:

r1138:9ac9f1032801
r1139:d61f2486cd3e
Show More
Jobs.pm
33 lines | 674 B | text/x-perl | PerlLexer
Jani Honkonen
Add a script for running tests
r1134 package Jobs;
use File::Basename;
use IniFiles;
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
my %cfg;
tie %cfg, 'Config::IniFiles', ( -file => $inifile );
# get section from ini by jobname
my %job = %{$cfg{$jobname}};
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;