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