common/tools/ats/bctest/syslibs/syslibssvs.pl
author Louis Henry Nayegon <louisn@symbian.org>
Tue, 11 Aug 2009 14:33:14 +0100
changeset 305 8aaeb2731c06
child 552 8018a074606b
permissions -rw-r--r--
Add syslibssvs ats test drop creation script
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
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    31
copy($epoc . "data/z/syslibs/t_syslibs.tcs",		"temp/syslibstest/general/syslibs/t_syslibs.tcs");
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    32
copy($epoc . "data/z/syslibs/winscw/t_syslibs.ini",	"temp/syslibstest/general/syslibs/t_syslibs.ini");
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    33
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    34
copy($epoc . "data/z/ecom/syslib-ecom-publicapi.script",	"temp/syslibstest/general/ecom/syslib-ecom-publicapi.script");
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    35
copy($epoc . "data/z/ecom/syslib-ecom-publicapi.ini",		"temp/syslibstest/general/ecom/syslib-ecom-publicapi.ini");
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    36
copy($epoc . "data/z/ecom/testproduct_plugin.rsc",			"temp/syslibstest/general/ecom/testproduct_plugin.rsc");
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    37
copy($epoc . "release/winscw/udeb/testproduct_plugin.dll",	"temp/syslibstest/general/ecom/testproduct_plugin.dll");
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    38
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    39
copy($epoc . "release/winscw/udeb/t_ecom.exe",				"temp/syslibstest/winscw_udeb/t_ecom.exe");
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    40
copy($epoc . "release/winscw/udeb/tpcopyfileutility.exe",	"temp/syslibstest/winscw_udeb/tpcopyfileutility.exe");
8aaeb2731c06 Add syslibssvs ats test drop creation script
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    41
copy($epoc . "release/winscw/udeb/tpdeletefileutility.exe",	"temp/syslibstest/winscw_udeb/tpdeletefileutility.exe");
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/*");