common/tools/ats/bctest/stdcpp/stdcpp.pl
author Pat Downey <patd@symbian.org>
Fri, 20 Aug 2010 11:21:31 +0100
changeset 1220 944558ad8dc6
parent 682 98a10176d5b2
permissions -rw-r--r--
Update baselinefor symbian4 tip_pbc package builds.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
682
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     1
#!/usr/bin/perl
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     2
# Copyright (c) 2009 Symbian Foundation Ltd
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     3
# This component and the accompanying materials are made available
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     5
# which accompanies this distribution, and is available
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     7
#
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     8
# Initial Contributors:
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     9
# Symbian Foundation Ltd - initial contribution.
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    10
#
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    11
# Contributors:
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    12
# Maciej Seroka <maciejs@symbian.org>
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    13
#
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    14
# Description:
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    15
# Script to build ATS test drop for STDCPP BC tests
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    16
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    17
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    18
use strict;
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    19
use File::Copy;
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    20
use File::Path;
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    21
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    22
unlink "stdcpptest.zip";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    23
rmtree "temp";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    24
mkpath "temp/stdcpptest/general/testframework";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    25
mkpath "temp/stdcpptest/winscw_udeb";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    26
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    27
my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    28
copy("stdcpp.xml",	"temp/test.xml");
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    29
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    30
copy($epoc . "release/winscw/udeb/bccppwrap.dll",					"temp/stdcpptest/winscw_udeb/bccppwrap.dll") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    31
copy($epoc . "release/winscw/udeb/BCCSRuntimeSup.dll",				"temp/stdcpptest/winscw_udeb/BCCSRuntimeSup.dll") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    32
copy($epoc . "release/winscw/udeb/BCException.dll",					"temp/stdcpptest/winscw_udeb/BCException.dll") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    33
copy($epoc . "release/winscw/udeb/BCNoNamespace.dll",				"temp/stdcpptest/winscw_udeb/BCNoNamespace.dll") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    34
copy($epoc . "release/winscw/udeb/BCOpenCHeaders.dll",				"temp/stdcpptest/winscw_udeb/BCOpenCHeaders.dll") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    35
copy($epoc . "release/winscw/udeb/BCOpenCWrap.dll",					"temp/stdcpptest/winscw_udeb/BCOpenCWrap.dll") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    36
copy($epoc . "release/winscw/udeb/BCThread.dll",					"temp/stdcpptest/winscw_udeb/BCThread.dll") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    37
copy($epoc . "release/winscw/udeb/BCTypeAttrib.dll",				"temp/stdcpptest/winscw_udeb/BCTypeAttrib.dll") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    38
copy($epoc . "release/winscw/udeb/BCTypeInfo.dll",					"temp/stdcpptest/winscw_udeb/BCTypeInfo.dll") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    39
copy($epoc . "release/winscw/udeb/chartypes.dll",					"temp/stdcpptest/winscw_udeb/chartypes.dll") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    40
copy($epoc . "release/winscw/udeb/tmath_operations.dll",			"temp/stdcpptest/winscw_udeb/tmath_operations.dll") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    41
copy($epoc . "release/winscw/udeb/tmemory.dll",						"temp/stdcpptest/winscw_udeb/tmemory.dll") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    42
copy($epoc . "release/winscw/udeb/tutility.dll",					"temp/stdcpptest/winscw_udeb/tutility.dll") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    43
copy($epoc . "release/winscw/udeb/widecharclassapiBCTest.dll",		"temp/stdcpptest/winscw_udeb/widecharclassapiBCTest.dll") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    44
copy($epoc . "release/winscw/udeb/tlocale.dll",						"temp/stdcpptest/winscw_udeb/tlocale.dll") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    45
copy($epoc . "release/winscw/udeb/tstl_1.dll",						"temp/stdcpptest/winscw_udeb/tstl_1.dll") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    46
copy($epoc . "winscw/c/testframework/testframework_cppwrap.ini",	"temp/stdcpptest/general/testframework/testframework_cppwrap.ini") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    47
copy($epoc . "winscw/c/testframework/testframework_mrtruntime.ini",	"temp/stdcpptest/general/testframework/testframework_mrtruntime.ini") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    48
copy($epoc . "winscw/c/testframework/testframework_mrtexp.ini",		"temp/stdcpptest/general/testframework/testframework_mrtexp.ini") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    49
copy($epoc . "winscw/c/testframework/testframework_mrtnons.ini",	"temp/stdcpptest/general/testframework/testframework_mrtnons.ini") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    50
copy($epoc . "winscw/c/testframework/testframework_mrtopench.ini",	"temp/stdcpptest/general/testframework/testframework_mrtopench.ini") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    51
copy($epoc . "winscw/c/testframework/testframework_ocw.ini",		"temp/stdcpptest/general/testframework/testframework_ocw.ini") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    52
copy($epoc . "winscw/c/testframework/testframework_mrtthread.ini",	"temp/stdcpptest/general/testframework/testframework_mrtthread.ini") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    53
copy($epoc . "winscw/c/testframework/testframework_mrttypea.ini",	"temp/stdcpptest/general/testframework/testframework_mrttypea.ini") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    54
copy($epoc . "winscw/c/testframework/testframework_mrttypei.ini",	"temp/stdcpptest/general/testframework/testframework_mrttypei.ini") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    55
copy($epoc . "winscw/c/testframework/testframework_ct.ini",			"temp/stdcpptest/general/testframework/testframework_ct.ini") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    56
copy($epoc . "winscw/c/testframework/testframework_mrtmath.ini",	"temp/stdcpptest/general/testframework/testframework_mrtmath.ini") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    57
copy($epoc . "winscw/c/testframework/testframework_mrtmem.ini",		"temp/stdcpptest/general/testframework/testframework_mrtmem.ini") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    58
copy($epoc . "winscw/c/testframework/testframework_mrtutil.ini",	"temp/stdcpptest/general/testframework/testframework_mrtutil.ini") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    59
copy($epoc . "winscw/c/testframework/testframework_wc.ini",			"temp/stdcpptest/general/testframework/testframework_wc.ini") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    60
copy($epoc . "winscw/c/testframework/testframework_tlocale.ini",	"temp/stdcpptest/general/testframework/testframework_tlocale.ini") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    61
copy($epoc . "winscw/c/testframework/testframework_tstl_1.ini",		"temp/stdcpptest/general/testframework/testframework_tstl_1.ini") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    62
copy($epoc . "winscw/c/testframework/bccppwrap.cfg",				"temp/stdcpptest/general/testframework/bccppwrap.cfg") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    63
copy($epoc . "winscw/c/testframework/BCCSRuntimeSup.cfg",			"temp/stdcpptest/general/testframework/BCCSRuntimeSup.cfg") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    64
copy($epoc . "winscw/c/testframework/BCException.cfg",				"temp/stdcpptest/general/testframework/BCException.cfg") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    65
copy($epoc . "winscw/c/testframework/BCNoNamespace.cfg",			"temp/stdcpptest/general/testframework/BCNoNamespace.cfg") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    66
copy($epoc . "winscw/c/testframework/BCOpenCHeaders.cfg",			"temp/stdcpptest/general/testframework/BCOpenCHeaders.cfg") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    67
copy($epoc . "winscw/c/testframework/BCOpenCWrap.cfg",				"temp/stdcpptest/general/testframework/BCOpenCWrap.cfg") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    68
copy($epoc . "winscw/c/testframework/BCThread.cfg",					"temp/stdcpptest/general/testframework/BCThread.cfg") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    69
copy($epoc . "winscw/c/testframework/BCTypeAttrib.cfg",				"temp/stdcpptest/general/testframework/BCTypeAttrib.cfg") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    70
copy($epoc . "winscw/c/testframework/BCTypeInfo.cfg",				"temp/stdcpptest/general/testframework/BCTypeInfo.cfg") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    71
copy($epoc . "winscw/c/testframework/tmath_operations.cfg",			"temp/stdcpptest/general/testframework/tmath_operations.cfg") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    72
copy($epoc . "winscw/c/testframework/tmemory.cfg",					"temp/stdcpptest/general/testframework/tmemory.cfg") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    73
copy($epoc . "winscw/c/testframework/tutility.cfg",					"temp/stdcpptest/general/testframework/tutility.cfg") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    74
copy($epoc . "winscw/c/testframework/tlocale.cfg",					"temp/stdcpptest/general/testframework/tlocale.cfg") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    75
copy($epoc . "winscw/c/testframework/tstl_1.cfg",					"temp/stdcpptest/general/testframework/tstl_1.cfg") or die "failed : $!";
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    76
98a10176d5b2 Added new BC test
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    77
system("7z a -tzip stdcpptest.zip ./temp/*");