common/tools/ats/bctest/systemsw/systemsw.pl
author MattD <mattd@symbian.org>
Fri, 18 Sep 2009 14:03:50 +0100
changeset 468 eb9ba249e164
parent 438 6832752a1de3
child 522 1e5db729c58c
permissions -rw-r--r--
Added test targets 'sf-test-smoketest' and 'sf-test-bc-check' for the test team. They populate the drive, run the tests and zip the output. Minor fix was needed in the post build for zipping: '${build.drive}/output/logs/releaseables' must exist
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
438
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     1
#!/usr/bin/perl
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     2
# Copyright (c) 2009 Symbian Foundation Ltd
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     3
# This component and the accompanying materials are made available
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     5
# which accompanies this distribution, and is available
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     7
#
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     8
# Initial Contributors:
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     9
# Symbian Foundation Ltd - initial contribution.
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    10
#
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    11
# Contributors:
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    12
# Louis Henry Nayegon <louisn@symbian.org>
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    13
#
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    14
# Description:
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    15
# Script to build ATS test drop system software tests
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    16
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    17
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    18
use strict;
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    19
use File::Copy;
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    20
use File::Path;
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    21
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    22
unlink "systemswtest.zip";
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    23
rmtree "temp";
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    24
mkpath "temp/systemswtest/winscw_udeb";
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    25
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    26
my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    27
copy("systemsw.xml",	"temp/test.xml");
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    28
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    29
copy($epoc . "release/winscw/udeb/featuremanagertest.dll",		"temp/systemswtest/winscw_udeb/featuremanagertest.dll");
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    30
copy($epoc . "release/winscw/udeb/finditemenginetest.dll",		"temp/systemswtest/winscw_udeb/finditemenginetest.dll");
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    31
copy($epoc . "release/winscw/udeb/light.dll",					"temp/systemswtest/winscw_udeb/light.dll");
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    32
copy($epoc . "release/winscw/udeb/networkstatustest.dll",		"temp/systemswtest/winscw_udeb/networkstatustest.dll");
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    33
copy($epoc . "release/winscw/udeb/phoneparsertest.dll",			"temp/systemswtest/winscw_udeb/phoneparsertest.dll");
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    34
copy($epoc . "release/winscw/udeb/platformenvtest.dll",			"temp/systemswtest/winscw_udeb/platformenvtest.dll");
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    35
copy($epoc . "release/winscw/udeb/powerstatetest.dll",			"temp/systemswtest/winscw_udeb/powerstatetest.dll");
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    36
copy($epoc . "release/winscw/udeb/sysutiltest.dll",				"temp/systemswtest/winscw_udeb/sysutiltest.dll");
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    37
copy($epoc . "release/winscw/udeb/stiftextresolvertest.dll",	"temp/systemswtest/winscw_udeb/stiftextresolvertest.dll");
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    38
copy($epoc . "release/winscw/udeb/hwresmantest.dll",			"temp/systemswtest/winscw_udeb/hwresmantest.dll");
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    39
copy($epoc . "release/winscw/udeb/vibractrltest.dll",			"temp/systemswtest/winscw_udeb/vibractrltest.dll");
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    40
copy($epoc . "release/winscw/udeb/platformvertest.dll",			"temp/systemswtest/winscw_udeb/platformvertest.dll");
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    41
copy($epoc . "release/winscw/udeb/accmonapibctests.dll",		"temp/systemswtest/winscw_udeb/accmonapibctests.dll");
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    42
6832752a1de3 Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    43
system("7z a -tzip systemswtest.zip ./temp/*");