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