common/tools/ats/bctest/syslibs/syslibssvs.pl
author Maciej Seroka <maciejs@symbian.org>
Tue, 01 Dec 2009 13:09:02 +0000
changeset 797 cbc760a5fedd
parent 632 770271caacf1
permissions -rw-r--r--
Fixed perl scripts for building BC test drops
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
305
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     1
#!/usr/bin/perl
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     2
# Copyright (c) 2009 Symbian Foundation Ltd
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     3
# This component and the accompanying materials are made available
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     5
# which accompanies this distribution, and is available
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     7
#
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     8
# Initial Contributors:
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     9
# Symbian Foundation Ltd - initial contribution.
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    10
#
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    11
# Contributors:
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    12
# Louis Henry Nayegon <louisn@symbian.org>
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    13
#
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    14
# Description:
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    15
# Script to build ATS test drop syslibs svs tests
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    16
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    17
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    18
use strict;
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    19
use File::Copy;
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    20
use File::Path;
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    21
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    22
unlink "syslibstest.zip";
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    23
rmtree "temp";
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    24
mkpath "temp/syslibstest/general/syslibs";
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    25
mkpath "temp/syslibstest/general/ecom";
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    26
mkpath "temp/syslibstest/winscw_udeb/z/resource/plugins";
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    27
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    28
my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    29
copy("syslibstest.xml",	"temp/test.xml");
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    30
797
cbc760a5fedd Fixed perl scripts for building BC test drops
Maciej Seroka <maciejs@symbian.org>
parents: 632
diff changeset
    31
copy($epoc . "data/z/syslibs/t_syslibs.tcs",						"temp/syslibstest/general/syslibs/t_syslibs.tcs") or die "failed : $!";
cbc760a5fedd Fixed perl scripts for building BC test drops
Maciej Seroka <maciejs@symbian.org>
parents: 632
diff changeset
    32
copy($epoc . "release/winscw/udeb/z/syslibs/winscw/t_syslibs.ini",	"temp/syslibstest/general/syslibs/t_syslibs.ini") or die "failed : $!";
305
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    33
797
cbc760a5fedd Fixed perl scripts for building BC test drops
Maciej Seroka <maciejs@symbian.org>
parents: 632
diff changeset
    34
copy($epoc . "release/winscw/udeb/z/ecom/syslib-ecom-publicapi.script",	"temp/syslibstest/general/ecom/syslib-ecom-publicapi.script") or die "failed : $!";
cbc760a5fedd Fixed perl scripts for building BC test drops
Maciej Seroka <maciejs@symbian.org>
parents: 632
diff changeset
    35
copy($epoc . "release/winscw/udeb/z/ecom/syslib-ecom-publicapi.ini",	"temp/syslibstest/general/ecom/syslib-ecom-publicapi.ini") or die "failed : $!";
cbc760a5fedd Fixed perl scripts for building BC test drops
Maciej Seroka <maciejs@symbian.org>
parents: 632
diff changeset
    36
copy($epoc . "data/z/ecom/testproduct_plugin.rsc",		"temp/syslibstest/general/ecom/testproduct_plugin.rsc") or die "failed : $!";
552
8018a074606b removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents: 305
diff changeset
    37
copy($epoc . "release/winscw/udeb/testproduct_plugin.dll",	"temp/syslibstest/general/ecom/testproduct_plugin.dll") or die "failed : $!";
305
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    38
552
8018a074606b removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents: 305
diff changeset
    39
copy($epoc . "release/winscw/udeb/t_ecom.exe",				"temp/syslibstest/winscw_udeb/t_ecom.exe") or die "failed : $!";
8018a074606b removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents: 305
diff changeset
    40
copy($epoc . "release/winscw/udeb/tpcopyfileutility.exe",	"temp/syslibstest/winscw_udeb/tpcopyfileutility.exe") or die "failed : $!";
8018a074606b removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents: 305
diff changeset
    41
copy($epoc . "release/winscw/udeb/tpdeletefileutility.exe",	"temp/syslibstest/winscw_udeb/tpdeletefileutility.exe") or die "failed : $!";
305
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    42
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    43
system("7z a -tzip syslibstest.zip ./temp/*");