Merge
authorBrendan Donegan <brendand@symbian.org>
Wed, 28 Apr 2010 13:19:28 +0100
changeset 987 a0358d9ffc07
parent 986 95924ae2e0d6 (diff)
parent 983 8d8beff1fb8c (current diff)
child 988 8428cb6e199e
child 1018 f2c5bb4624be
Merge
common/build.test.xml
--- a/common/build.test.xml	Wed Apr 28 09:03:30 2010 +0100
+++ b/common/build.test.xml	Wed Apr 28 13:19:28 2010 +0100
@@ -189,9 +189,13 @@
             <arg value="--host-drop-path=${sf.spec.test.host.droppath}"/>
         </exec>
     </target>
-	<target name="sf-start-ats">        			
-	    <exec executable="start.cmd" dir="${ats.drive}" spawn="true" failonerror="false"/>
-		<echo message="Waiting for 10 seconds to start the ATS Worker......."/>
-		<sleep seconds="10"/>
+    
+	<target name="sf-start-ats">
+    <if><available file="${ats.drive}/start.cmd"/>        
+    <then>
+        <exec executable="start.cmd" dir="${ats.drive}" spawn="true" failonerror="false"/>
+        <echo message="Waiting for 10 seconds to start the ATS Worker......."/>
+        <sleep seconds="10"/>
+    </then>
     </target> 
 </project>
--- a/common/tools/ats/ats_specialise_test_drop.pl	Wed Apr 28 09:03:30 2010 +0100
+++ b/common/tools/ats/ats_specialise_test_drop.pl	Wed Apr 28 13:19:28 2010 +0100
@@ -40,6 +40,8 @@
 my $temp_dest_name; # Leafname of temporary output file, if $destfile undefined.
 my $publish;	# Publishing folder for ats reports.
 my $bld_drive;  # Subst'd drive
+my $test_target; # The target which the tests will be run on
+my $image_path; # The path to the ROM image used for testing (not valid for WINSCW target)
 
 sub usage($);
 sub help();
@@ -53,7 +55,9 @@
 			    'dest' => \$destfile,
                 'help' => \$help,
                 'publish' => \$publish,
-				'bld-drive' => \$bld_drive);
+				'bld-drive' => \$bld_drive,
+                'test-target' => \$test_target,
+                'image-path' => \$image_path);
 
 GetOptions(\%optmap,
           'test-drop-name=s',
@@ -63,7 +67,9 @@
           'dest=s',
           'help!',
           'publish=s', 
-		  'bld-drive=s') 
+		  'bld-drive=s',
+          'test-target=s',
+          'image-path=s') 
           or usage_error();
 
 # Check if Tie::File module installed
@@ -126,18 +132,25 @@
 
 # Parse the input XML into hashref.
 my $test_drop = XMLin("./$xml_in", keeproot => 1,
-    forcearray => [ 'name', 'id','owner','priority','buildid','postAction','type','target','device', 'property', 'command', 'param'],#
+    forcearray => [ 'name', 'id','owner','priority','buildid','postAction','type','target','device', 'property', 'command', 'param','plan'],#
         keyattr => [] );
     
 # Insert the specified test drop name, if any.
 $test_drop->{'test'}->{'name'}->[0] = $test_drop_name, if $test_drop_name;
 # Insert the specified build id, if any.
 $test_drop->{'test'}->{'buildid'}->[0] = $build_id, if $build_id;
+# Insert the path to the ROM image
+if $image_path {
+    my $flash_params = $test_drop->{'test'}->{'plan'}->[0]->{'flash'};
+    $flash_params->[1] = { 'target-alias' => $test_target, 'images' => $image_path };
+    }
+
+
 # Insert the FileStoreAction parameter
 my $postaction_params = $test_drop->{'test'}->{'postAction'}->[0]->{'params'}->{'param'}, if $publish;
 $postaction_params->[1] = { 'name' => "to-folder", 'value' => $publish }, if $publish;
 
-if ($host_name) { # Also insert specified host name
+if ($host_name and (lc($test_target) ne "winscw") { # Also insert specified host name if target is WINSCW
 	my $devices = $test_drop->{'test'}->{'target'}->[0]->{'device'};
     
     foreach my $device (@{$devices}) {