common/tools/ats/bctest/websrv/websrv.pl
author Simon Howkins <simonh@symbian.org>
Fri, 19 Mar 2010 11:20:24 +0000
changeset 936 e6a0e92cf215
parent 854 c0e6dd77e67f
permissions -rw-r--r--
Updated version checker to permit all versions of hg from v1.2 to v1.5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
439
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     1
#!/usr/bin/perl
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     2
# Copyright (c) 2009 Symbian Foundation Ltd
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     3
# This component and the accompanying materials are made available
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     5
# which accompanies this distribution, and is available
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     7
#
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     8
# Initial Contributors:
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     9
# Symbian Foundation Ltd - initial contribution.
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    10
#
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    11
# Contributors:
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    12
# Brendan Donegan <brendand@symbian.org>
443
c63cdf02d7e8 New set added
Maciej Seroka <maciejs@symbian.org>
parents: 439
diff changeset
    13
# Maciej Seroka <maciejs@symbian.org>
439
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    14
#
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    15
# Description:
443
c63cdf02d7e8 New set added
Maciej Seroka <maciejs@symbian.org>
parents: 439
diff changeset
    16
# Script to build ATS test drop for BC Web Services tests
439
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    17
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    18
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    19
use strict;
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    20
use File::Copy;
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    21
use File::Path;
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    22
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    23
unlink "websrv.zip";
701
332cfa36b186 Added all of the tests for ASP
brendand
parents: 445
diff changeset
    24
rmtree "temp";
439
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    25
mkpath "temp/bcwebsrv/general/testframework";
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    26
mkpath "temp/bcwebsrv/winscw_udeb";
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    27
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    28
my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    29
copy("websrv.xml",	"temp/test.xml");
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    30
701
332cfa36b186 Added all of the tests for ASP
brendand
parents: 445
diff changeset
    31
copy($epoc . "release/winscw/udeb/CSenServiceConnectionBCTest.dll",         "temp/bcwebsrv/winscw_udeb/CSenServiceConnectionBCTest.dll") or die "failed : $!";
332cfa36b186 Added all of the tests for ASP
brendand
parents: 445
diff changeset
    32
copy($epoc . "winscw/c/testframework/testframework_connection.ini",         "temp/bcwebsrv/general/testframework/testframework_connection.ini") or die "failed : $!";
332cfa36b186 Added all of the tests for ASP
brendand
parents: 445
diff changeset
    33
copy($epoc . "release/winscw/udeb/HostletConnectionBCTest.dll",             "temp/bcwebsrv/winscw_udeb/HostletConnectionBCTest.dll") or die "failed : $!";
332cfa36b186 Added all of the tests for ASP
brendand
parents: 445
diff changeset
    34
copy($epoc . "winscw/c/testframework/TestFramework_hostlet.ini",            "temp/bcwebsrv/general/testframework/TestFramework_hostlet.ini") or die "failed : $!";
332cfa36b186 Added all of the tests for ASP
brendand
parents: 445
diff changeset
    35
copy($epoc . "release/winscw/udeb/newsoapclassesbctest.dll",                "temp/bcwebsrv/winscw_udeb/newsoapclassesbctest.dll") or die "failed : $!";
332cfa36b186 Added all of the tests for ASP
brendand
parents: 445
diff changeset
    36
copy($epoc . "winscw/c/testframework/testframework_newsoapclasses.ini",     "temp/bcwebsrv/general/testframework/testframework_newsoapclasses.ini") or die "failed : $!";
332cfa36b186 Added all of the tests for ASP
brendand
parents: 445
diff changeset
    37
copy($epoc . "release/winscw/udeb/SenServDescBCTest.dll",                   "temp/bcwebsrv/winscw_udeb/SenServDescBCTest.dll") or die "failed : $!";
332cfa36b186 Added all of the tests for ASP
brendand
parents: 445
diff changeset
    38
copy($epoc . "winscw/c/testframework/testframework_senservdesc.ini",        "temp/bcwebsrv/general/testframework/testframework_senservdesc.ini") or die "failed : $!";
332cfa36b186 Added all of the tests for ASP
brendand
parents: 445
diff changeset
    39
copy($epoc . "release/winscw/udeb/SenServiceManagerBCTest.dll",             "temp/bcwebsrv/winscw_udeb/SenServiceManagerBCTest.dll") or die "failed : $!";
332cfa36b186 Added all of the tests for ASP
brendand
parents: 445
diff changeset
    40
copy($epoc . "winscw/c/testframework/testframework_senservicemanager.ini",  "temp/bcwebsrv/general/testframework/testframework_senservicemanager.ini") or die "failed : $!";
332cfa36b186 Added all of the tests for ASP
brendand
parents: 445
diff changeset
    41
copy($epoc . "release/winscw/udeb/SenUtilsBCTest.dll",                      "temp/bcwebsrv/winscw_udeb/SenUtilsBCTest.dll") or die "failed : $!";
332cfa36b186 Added all of the tests for ASP
brendand
parents: 445
diff changeset
    42
copy($epoc . "winscw/c/testframework/testframework_senutils.ini",           "temp/bcwebsrv/general/testframework/testframework_senutils.ini") or die "failed : $!";
854
c0e6dd77e67f Fixed websrv bc test suite. Increased time-outs for selected bc tests.
Maciej Seroka <maciejs@symbian.org>
parents: 797
diff changeset
    43
copy($epoc . "release/winscw/udeb/SenFragmentBCTest.dll",                   "temp/bcwebsrv/winscw_udeb/SenFragmentBCTest.dll") or die "failed : $!";
c0e6dd77e67f Fixed websrv bc test suite. Increased time-outs for selected bc tests.
Maciej Seroka <maciejs@symbian.org>
parents: 797
diff changeset
    44
copy($epoc . "winscw/c/testframework/TestFramework_senfragment.ini",        "temp/bcwebsrv/general/testframework/TestFramework_senfragment.ini") or die "failed : $!";
439
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    45
f9eb0ea5b237 Added new web service BC tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    46
system("7z a -tzip websrv.zip ./temp/*");