common/tools/ats/bctest/systemsw/cenrepnotifyhandler.pl
author William Roberts <williamr@symbian.org>
Thu, 02 Sep 2010 12:17:04 +0100
changeset 1241 776ca456c221
parent 1230 0f78fc0a8217
permissions -rw-r--r--
Allow for a layer called "adapt" as an alternative to "adaptation"
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1230
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     1
#!/usr/bin/perl
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     2
# Copyright (c) 2009 Symbian Foundation Ltd
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     3
# This component and the accompanying materials are made available
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     5
# which accompanies this distribution, and is available
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     7
#
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     8
# Initial Contributors:
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
     9
# Symbian Foundation Ltd - initial contribution.
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    10
#
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    11
# Contributors:
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    12
# Louis Henry Nayegon <louisn@symbian.org>
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    13
#
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    14
# Description:
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    15
# Script to build ATS test drop for (SystemSW) Central Repository Notification Handler tests
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    16
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    17
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    18
use strict;
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    19
use File::Copy;
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    20
use File::Path;
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    21
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    22
unlink "cenrepnotifyhandlertest.zip";
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    23
rmtree "temp";
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    24
mkpath "temp/cenrepnotifyhandlertest/winscw_udeb";
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    25
mkpath "temp/cenrepnotifyhandlertest/general/TestFramework";
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    26
mkpath "temp/cenrepnotifyhandlertest/general/10202be9";
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    27
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    28
my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    29
copy("cenrepnotifyhandler.xml",	"temp/test.xml");
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    30
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    31
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    32
copy($epoc . "release/winscw/udeb/CenRepNotifyHandlerTest.dll",	"temp/cenrepnotifyhandlertest/winscw_udeb/CenRepNotifyHandlerTest.dll") or die "failed : $!";
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    33
copy($epoc . "winscw/c/TestFramework/TestFramework_cenrep.ini",	"temp/cenrepnotifyhandlertest/general/TestFramework/TestFramework_cenrep.ini") or die "failed : $!";
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    34
copy($epoc . "winscw/c/6edcba99.txt",							"temp/cenrepnotifyhandlertest/general/10202be9/6edcba99.txt") or die "failed : $!";
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    35
0f78fc0a8217 Separated CenRepNotifyHandler from SystemSW test suite
Maciej Seroka <maciejs@symbian.org>
parents:
diff changeset
    36
system("7z a -tzip cenrepnotifyhandlertest.zip ./temp/*");