common/tools/ats/bctest/cellularsrv/smsutilities/smsutilities.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 SMS Utilities 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 "smsutilitiestest.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/smsutilitiestest/general/TestFramework";
dbae6d7aeb52 Added BC tests for SMS Utilities and Extended Connection Pref
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    25
mkpath "temp/smsutilitiestest/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("smsutilities.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/BCSmsUtilitiesTest.dll",		"temp/smsutilitiestest/winscw_udeb/BCSmsUtilitiesTest.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_su.ini",		"temp/smsutilitiestest/general/TestFramework/testframework_su.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 smsutilitiestest.zip ./temp/*");