common/tools/ats/bctest/locationsrv/landmarks_api/landmarks_api.pl
author royt <tathagatar@symbian.org>
Tue, 15 Sep 2009 15:06:56 +0100
changeset 451 4a19f67f9ac3
child 552 8018a074606b
permissions -rw-r--r--
bctest drop added
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
451
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
     1
#!/usr/bin/perl
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
     2
# Copyright (c) 2009 Symbian Foundation Ltd
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
     3
# This component and the accompanying materials are made available
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
     5
# which accompanies this distribution, and is available
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
     7
#
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
     8
# Initial Contributors:
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
     9
# Symbian Foundation Ltd - initial contribution.
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    10
#
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    11
# Description:
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    12
# Script to build ATS test drop for landmarks_api tests
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    13
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    14
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    15
use strict;
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    16
use File::Copy;
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    17
use File::Path;
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    18
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    19
unlink "landmarks_api.zip";
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    20
##rmtree "temp";
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    21
mkpath "temp/landmarks/general/testframework";
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    22
mkpath "temp/landmarks/winscw_udeb";
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    23
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    24
my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    25
copy("landmarks.xml",	"temp/test.xml");
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    26
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    27
copy($epoc . "release/winscw/udeb/testlandmarksapi.dll",				"temp/landmarks/winscw_udeb/testlandmarksapi.dll");
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    28
copy($epoc . "winscw/c/testframework/TestFramework_Landmarks.ini",		"temp/landmarks/general/testframework/TestFramework_Landmarks.ini");
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    29
copy($epoc . "winscw/c/testframework/testlandmarksapi.cfg",				"temp/landmarks/general/testframework/testlandmarksapi.cfg");
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    30
copy($epoc . "winscw/c/testing/data/smiltemplate.mif",					"temp/landmarks/general/smiltemplate.mif");
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    31
copy($epoc . "winscw/c/testing/data/testEposLmImport.lmx",				"temp/landmarks/general/testEposLmImport.lmx");
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    32
copy($epoc . "winscw/c/testing/data/testEposLmImportCollection.lmx",	"temp/landmarks/general/testEposLmImportCollection.lmx");
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    33
4a19f67f9ac3 bctest drop added
royt <tathagatar@symbian.org>
parents:
diff changeset
    34
system("7z a -tzip landmarks_api.zip ./temp/*");