##// END OF EJS Templates
Fine tuning the auto test scripts
Jani Honkonen -
r1138:9ac9f1032801
parent child
Show More
@@ -1,33 +1,34
1 package Jobs;
1 package Jobs;
2 use File::Basename;
2 use File::Basename;
3 use IniFiles;
3 use IniFiles;
4
4
5 sub get {
5 sub get {
6 my $inifile = shift;
6 my $inifile = shift;
7 my $jobname = shift;
7 my $jobname = shift;
8
8
9 # Strip the prefix from job name when using ${bamboo.buildPlanName}
9 # Strip the prefix from job name when using ${bamboo.buildPlanName}
10 my $prefix = "Digia Qt Commercial - Chart component - ";
10 my $prefix = "Digia Qt Commercial - Chart component - ";
11 $jobname =~ s/$prefix//;
11 $jobname =~ s/$prefix//;
12
12
13 # read ini file
13 # read ini file
14 my %cfg;
14 my %cfg;
15 tie %cfg, 'Config::IniFiles', ( -file => $inifile );
15 tie %cfg, 'Config::IniFiles', ( -file => $inifile );
16
16
17 # get section from ini by jobname
17 # get section from ini by jobname
18 my %job = %{$cfg{$jobname}};
18 my %job = %{$cfg{$jobname}};
19 if (!%job) {
19 if (!%job) {
20 die ("Unknown jobname! Check $inifile and bamboo job name.");
20 die ("Unknown jobname! Check $inifile and bamboo job name.");
21 }
21 }
22
22
23 # print out the ini settings
23 # print out the ini settings
24 print "\n\n$jobname\n";
24 print "\n\nini file: $inifile\n";
25 print "**********\n";
25 print "[$jobname]\n";
26 foreach (keys %job) {
26 foreach (keys %job) {
27 print $_ . " : " . $job{$_} . "\n";
27 print $_ . "=" . $job{$_} . "\n";
28 }
28 }
29 print "\n";
29
30
30 return %job;
31 return %job;
31 }
32 }
32
33
33 1; No newline at end of file
34 1;
@@ -1,8 +1,8
1 set QTDIR=%1
1 set QTDIR=%1
2 set PATH=%1\bin;
2 set PATH=%1\bin;
3 set PATH=%PATH%;%3
3 set PATH=%PATH%;%3\bin
4 set PATH=%PATH%;%SystemRoot%\System32
4 set PATH=%PATH%;%SystemRoot%\System32
5 set QMAKESPEC=win32-g++
5 set QMAKESPEC=win32-g++
6 qmake -r charts.pro CONFIG+=%2
6 qmake -r charts.pro CONFIG+=%2
7 @echo on
7 @echo on
8 mingw32-make No newline at end of file
8 mingw32-make
@@ -1,50 +1,50
1
1
2 [Win7 MinGW debug QtC v4.8.0 (Jani's machine)]
2 [Win7 MinGW debug QtC v4.8.0 (Jani's machine)]
3 Platform=Win7
3 Platform=Win7
4 QtDir=D:\Qt\4.8.0-MinGW-Commercial
4 QtDir=D:\Qt\4.8.0-MinGW-Commercial
5 ToolChain=mingw
5 ToolChain=mingw
6 Config=debug
6 Config=debug
7 MinGWDir=D:\Qt\mingw\bin
7 MinGWDir=D:\Qt\mingw
8
8
9 [Win7 MinGW release QtC v4.8.0 (Jani's machine)]
9 [Win7 MinGW release QtC v4.8.0 (Jani's machine)]
10 Platform=Win7
10 Platform=Win7
11 QtDir=D:\Qt\4.8.0-MinGW-Commercial
11 QtDir=D:\Qt\4.8.0-MinGW-Commercial
12 ToolChain=mingw
12 ToolChain=mingw
13 Config=release
13 Config=release
14 MinGWDir=D:\Qt\mingw\bin
14 MinGWDir=D:\Qt\mingw
15
15
16 [Win7 vs2005 debug QtC v4.7.5 (Jani's machine)]
16 [Win7 vs2005 debug QtC v4.7.5 (Jani's machine)]
17 Platform=Win7
17 Platform=Win7
18 QtDir=D:\Qt\qt-win-commercial-4.7.5-vs2005
18 QtDir=D:\Qt\qt-win-commercial-4.7.5-vs2005
19 ToolChain=vs2005
19 ToolChain=vs2005
20 Config=debug
20 Config=debug
21
21
22 [Win7 vs2005 release QtC v4.7.5 (Jani's machine)]
22 [Win7 vs2005 release QtC v4.7.5 (Jani's machine)]
23 Platform=Win7
23 Platform=Win7
24 QtDir=D:\Qt\qt-win-commercial-4.7.5-vs2005
24 QtDir=D:\Qt\qt-win-commercial-4.7.5-vs2005
25 ToolChain=vs2005
25 ToolChain=vs2005
26 Config=release
26 Config=release
27
27
28 [Win7 vs2008 debug QtC v4.8.2 (Jani's machine)]
28 [Win7 vs2008 debug QtC v4.8.2 (Jani's machine)]
29 Platform=Win7
29 Platform=Win7
30 QtDir=D:\Qt\qt-win-commercial-4.8.2-vs2008-15-Apr-2012
30 QtDir=D:\Qt\qt-win-commercial-4.8.2-vs2008-15-Apr-2012
31 ToolChain=vs2008
31 ToolChain=vs2008
32 Config=debug
32 Config=debug
33
33
34 [Win7 vs2008 release QtC v4.8.2 (Jani's machine)]
34 [Win7 vs2008 release QtC v4.8.2 (Jani's machine)]
35 Platform=Win7
35 Platform=Win7
36 QtDir=D:\Qt\qt-win-commercial-4.8.2-vs2008-15-Apr-2012
36 QtDir=D:\Qt\qt-win-commercial-4.8.2-vs2008-15-Apr-2012
37 ToolChain=vs2008
37 ToolChain=vs2008
38 Config=release
38 Config=release
39
39
40 [Win7 vs2010 debug QtC v4.8.0 (Jani's machine)]
40 [Win7 vs2010 debug QtC v4.8.0 (Jani's machine)]
41 Platform=Win7
41 Platform=Win7
42 QtDir=D:\Qt\qt-win-commercial-4.8.0-vs2010
42 QtDir=D:\Qt\qt-win-commercial-4.8.0-vs2010
43 ToolChain=vs2010
43 ToolChain=vs2010
44 Config=debug
44 Config=debug
45
45
46 [Win7 vs2010 release QtC v4.8.0 (Jani's machine)]
46 [Win7 vs2010 release QtC v4.8.0 (Jani's machine)]
47 Platform=Win7
47 Platform=Win7
48 QtDir=D:\Qt\qt-win-commercial-4.8.0-vs2010
48 QtDir=D:\Qt\qt-win-commercial-4.8.0-vs2010
49 ToolChain=vs2010
49 ToolChain=vs2010
50 Config=release No newline at end of file
50 Config=release
General Comments 0
You need to be logged in to leave comments. Login now