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