author | Maciej Seroka <maciejs@symbian.org> |
Wed, 06 Oct 2010 15:50:01 +0100 | |
changeset 1286 | 7ad2f93c7666 |
parent 552 | 8018a074606b |
permissions | -rw-r--r-- |
430 | 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 |
# Louis Henry Nayegon <louisn@symbian.org> |
|
13 |
# |
|
14 |
# Description: |
|
438
6832752a1de3
Update script header commnets
Louis Henry Nayegon <louisn@symbian.org>
parents:
430
diff
changeset
|
15 |
# Script to build ATS test drop DRM tests |
430 | 16 |
|
17 |
||
18 |
use strict; |
|
19 |
use File::Copy; |
|
20 |
use File::Path; |
|
21 |
||
22 |
unlink "drmtest.zip"; |
|
552
8018a074606b
removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents:
438
diff
changeset
|
23 |
rmtree "temp"; |
430 | 24 |
mkpath "temp/drmtest/general/testframework"; |
25 |
mkpath "temp/drmtest/winscw_udeb"; |
|
26 |
||
27 |
my $epoc=$ENV{'EPOCROOT'} . "epoc32/"; |
|
28 |
copy("drm.xml", "temp/test.xml"); |
|
29 |
||
552
8018a074606b
removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents:
438
diff
changeset
|
30 |
copy($epoc . "release/winscw/udeb/drm_caf.dll", "temp/drmtest/winscw_udeb/drm_caf.dll") or die "failed : $!"; |
8018a074606b
removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents:
438
diff
changeset
|
31 |
copy($epoc . "release/winscw/udeb/bcdrmcafcaps.exe", "temp/drmtest/winscw_udeb/bcdrmcafcaps.exe") or die "failed : $!"; |
8018a074606b
removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents:
438
diff
changeset
|
32 |
copy($epoc . "winscw/c/testframework/testframework_drmcaf.ini", "temp/drmtest/general/testframework/testframework_drmcaf.ini") or die "failed : $!"; |
8018a074606b
removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents:
438
diff
changeset
|
33 |
copy($epoc . "winscw/c/testframework/drm_caf.cfg", "temp/drmtest/general/testframework/drm_caf.cfg") or die "failed : $!"; |
8018a074606b
removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents:
438
diff
changeset
|
34 |
copy($epoc . "winscw/c/content-noenc-trunc.odf", "temp/drmtest/general/content-noenc-trunc.odf") or die "failed : $!"; |
8018a074606b
removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents:
438
diff
changeset
|
35 |
copy($epoc . "winscw/c/content.odf", "temp/drmtest/general/content.odf") or die "failed : $!"; |
8018a074606b
removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents:
438
diff
changeset
|
36 |
copy($epoc . "winscw/c/content.txt", "temp/drmtest/general/content.txt") or die "failed : $!"; |
8018a074606b
removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents:
438
diff
changeset
|
37 |
copy($epoc . "winscw/c/content-noenc.odf", "temp/drmtest/general/content-noenc.odf") or die "failed : $!"; |
8018a074606b
removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents:
438
diff
changeset
|
38 |
copy($epoc . "winscw/c/content.dcf", "temp/drmtest/general/content.dcf") or die "failed : $!"; |
430 | 39 |
|
40 |
system("7z a -tzip drmtest.zip ./temp/*"); |