# HG changeset patch # User Shabe Razvi # Date 1272477885 -3600 # Node ID 92dd719cc91b2474259cfc7ce53142b8fbe10982 # Parent 64899060ea4db1e50891176d0cf823e387cc14b4# Parent 6c90564578a6d339ee9982b22b2a6cc130110008 Merge diff -r 6c90564578a6 -r 92dd719cc91b common/build.postbuild.xml --- a/common/build.postbuild.xml Fri Apr 23 17:20:24 2010 +0100 +++ b/common/build.postbuild.xml Wed Apr 28 19:04:45 2010 +0100 @@ -635,13 +635,18 @@ + + + + + - + - - - + + + diff -r 6c90564578a6 -r 92dd719cc91b common/build.test.xml --- a/common/build.test.xml Fri Apr 23 17:20:24 2010 +0100 +++ b/common/build.test.xml Wed Apr 28 19:04:45 2010 +0100 @@ -150,26 +150,52 @@ + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -182,9 +208,14 @@ - - - - + + + + + + + + + diff -r 6c90564578a6 -r 92dd719cc91b common/build.xml --- a/common/build.xml Fri Apr 23 17:20:24 2010 +0100 +++ b/common/build.xml Wed Apr 28 19:04:45 2010 +0100 @@ -497,7 +497,7 @@ - + diff -r 6c90564578a6 -r 92dd719cc91b common/common_props.ant.xml --- a/common/common_props.ant.xml Fri Apr 23 17:20:24 2010 +0100 +++ b/common/common_props.ant.xml Wed Apr 28 19:04:45 2010 +0100 @@ -101,6 +101,8 @@ + + diff -r 6c90564578a6 -r 92dd719cc91b common/tools/ats/ats_specialise_test_drop.pl --- a/common/tools/ats/ats_specialise_test_drop.pl Fri Apr 23 17:20:24 2010 +0100 +++ b/common/tools/ats/ats_specialise_test_drop.pl Wed Apr 28 19:04:45 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(); @@ -47,13 +49,15 @@ sub silent_command($); my %optmap = ( 'test-drop-name' => \$test_drop_name, - 'host-name' => \$host_name, - 'build-id' => \$build_id, - 'src' => \$srcfile, - 'dest' => \$destfile, + 'host-name' => \$host_name, + 'build-id' => \$build_id, + 'src' => \$srcfile, + '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,13 +132,20 @@ # 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) { + $test_drop->{'test'}->{'plan'}->[0]->{'flash'}->[0]; + my $flash_params = $test_drop->{'test'}->{'plan'}->[0]->{'flash'}; + $flash_params->[0] = { '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; diff -r 6c90564578a6 -r 92dd719cc91b common/tools/ats/devices/c100782/SYBORG_ATSINTERFACE_c100782.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/common/tools/ats/devices/c100782/SYBORG_ATSINTERFACE_c100782.properties Wed Apr 28 19:04:45 2010 +0100 @@ -0,0 +1,30 @@ + +NAME=SYBORG on c100782 + +CATEGORY=hardware + +TYPE=Syborg + +CONNECTION=HTI + +TEMPDIR=G:\\ats3 + +CLASS=RTestableDevice + +HARNESS=ATSINTERFACE + +FLASHER=syborgflasher + +FLASHING_ENABLED=true + +BOOT_TIME = 90 + +#reinstall files after reboot +REINSTALL=false + +PLATFORM=armv5 +BUILD=urel + +# comms settings +DGW_PORT=3336 +DGW_COMPORT=COM6 diff -r 6c90564578a6 -r 92dd719cc91b common/tools/ats/devices/c100782/SYBORG_GENERIC_c100782.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/common/tools/ats/devices/c100782/SYBORG_GENERIC_c100782.properties Wed Apr 28 19:04:45 2010 +0100 @@ -0,0 +1,30 @@ + +NAME=SYBORG on c100782 + +CATEGORY=hardware + +TYPE=Syborg + +CONNECTION=HTI + +TEMPDIR=G:\\ats3 + +CLASS=GenericTestableDevice + +HARNESS=GENERIC + +FLASHER=syborgflasher + +FLASHING_ENABLED=true + +BOOT_TIME = 90 + +#reinstall files after reboot +REINSTALL=false + +PLATFORM=armv5 +BUILD=urel + +# comms settings +DGW_PORT=3337 +DGW_COMPORT=COM6 diff -r 6c90564578a6 -r 92dd719cc91b common/tools/listdir.py --- a/common/tools/listdir.py Fri Apr 23 17:20:24 2010 +0100 +++ b/common/tools/listdir.py Wed Apr 28 19:04:45 2010 +0100 @@ -26,9 +26,9 @@ if(len(sys.argv)>2): x_dirs = string.lower(sys.argv[2]) exclude_dirs = re.split(',', x_dirs) - scandir(directory, exclude_dirs,directory) + scandir(directory, exclude_dirs) -def scandir(top, exclude_dirs,directory): +def scandir(top, exclude_dirs): fixpath = re.compile('\\\\') fixroot = re.compile('^%s\\\\' % top) for root, dirs, files in os.walk(top, topdown=True): @@ -38,6 +38,6 @@ for name in files: filename = os.path.join(root, name) fn = string.lower(fixpath.sub('/',fixroot.sub('',filename))) - print fn.strip(directory) + print top+"/"+fn main() diff -r 6c90564578a6 -r 92dd719cc91b sf-tools/build.xml --- a/sf-tools/build.xml Fri Apr 23 17:20:24 2010 +0100 +++ b/sf-tools/build.xml Wed Apr 28 19:04:45 2010 +0100 @@ -48,8 +48,8 @@ - - + +