common/tools/ats/bctest/shortlinksrv/shortlinksrv.pl
changeset 1196 c0b9bf290520
child 1199 26c4732f6e56
equal deleted inserted replaced
1195:b9a2adc3ea65 1196:c0b9bf290520
       
     1 #!/usr/bin/perl
       
     2 # Copyright (c) 2009 Symbian Foundation Ltd
       
     3 # This component and the accompanying materials are made available
       
     4 # under the terms of the License "Eclipse Public License v1.0"
       
     5 # which accompanies this distribution, and is available
       
     6 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 #
       
     8 # Initial Contributors:
       
     9 # Symbian Foundation Ltd - initial contribution.
       
    10 #
       
    11 # Contributors:
       
    12 # Maciej Seroka <maciejs@symbian.org>
       
    13 #
       
    14 # Description:
       
    15 # Script to build ATS test drop for Shortlink Services tests
       
    16 
       
    17 
       
    18 use strict;
       
    19 use File::Copy;
       
    20 use File::Path;
       
    21 
       
    22 unlink "shortlinksrvtest.zip";
       
    23 rmtree "temp";
       
    24 mkpath "temp/shortlinksrvtest/bluetooth/general";
       
    25 mkpath "temp/shortlinksrvtest/winscw_udeb";
       
    26 
       
    27 my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
       
    28 copy("shortlinksrv.xml",	"temp/test.xml");
       
    29 copy($epoc . "release/winscw/udeb/T_BTSockAddrAPI.exe",				"temp/shortlinksrvtest/winscw_udeb/T_BTSockAddrAPI.exe") or die "failed : $!";
       
    30 copy($epoc . "winscw/c/bluetooth/BT-SOCK-ADDR-PublicApi.script",	"temp/shortlinksrvtest/bluetooth/general/BT-SOCK-ADDR-PublicApi.script") or die "failed : $!";
       
    31 copy($epoc . "winscw/c/bluetooth/BT-SOCK-ADDR-PublicApi.ini",		"temp/shortlinksrvtest/bluetooth/general/BT-SOCK-ADDR-PublicApi.ini") or die "failed : $!";
       
    32 
       
    33 system("7z a -tzip shortlinksrvtest.zip ./temp/*");