common/tools/ats/bctest/connset/connset.pl
author Johan Groth <johan.groth@cell-telecom.com>
Tue, 06 Jul 2010 16:30:27 +0100
changeset 1151 b15dfb01fee6
parent 687 b28792fa78e5
permissions -rw-r--r--
Updated rev to 3.0.0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
687
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     1
#!/usr/bin/perl
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     2
# Copyright (c) 2009 Symbian Foundation Ltd
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     3
# This component and the accompanying materials are made available
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     5
# which accompanies this distribution, and is available
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     7
#
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     8
# Initial Contributors:
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     9
# Symbian Foundation Ltd - initial contribution.
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    10
#
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    11
# Contributors:
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    12
# Maciej Seroka <maciejs@symbian.org>
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    13
#
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    14
# Description:
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    15
# Script to build ATS test drop for Connection Settings BC tests
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    16
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    17
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    18
use strict;
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    19
use File::Copy;
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    20
use File::Path;
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    21
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    22
unlink "connsettest.zip";
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    23
rmtree "temp";
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    24
mkpath "temp/connsettest/general/testframework";
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    25
mkpath "temp/connsettest/winscw_udeb";
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    26
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    27
my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    28
copy("connset.xml",	"temp/test.xml");
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    29
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    30
copy($epoc . "release/winscw/udeb/BcCMManagerEngineTester.dll",		"temp/connsettest/winscw_udeb/BcCMManagerEngineTester.dll") or die "failed : $!";
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    31
#copy($epoc . "release/winscw/udeb/connset.exe",						"temp/connsettest/winscw_udeb/connset.exe") or die "failed : $!";
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    32
copy($epoc . "winscw/c/testframework/TestFramework_connset.ini",	"temp/connsettest/general/testframework/TestFramework_connset.ini") or die "failed : $!";
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    33
copy($epoc . "winscw/c/testframework/BcCMManagerEngineTester.cfg",	"temp/connsettest/general/testframework/BcCMManagerEngineTester.cfg") or die "failed : $!";
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    34
b28792fa78e5 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    35
system("7z a -tzip connsettest.zip ./temp/*");