common/tools/ats/bctest/drm/drm.pl
author Simon Howkins <simonh@symbian.org>
Tue, 06 Oct 2009 14:41:22 +0100
changeset 603 948baffead3b
parent 552 8018a074606b
permissions -rw-r--r--
Parse log generated during proprocessing of zip config, so it gets included in BRAG analysis.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
430
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     1
#!/usr/bin/perl
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     2
# Copyright (c) 2009 Symbian Foundation Ltd
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     3
# This component and the accompanying materials are made available
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     5
# which accompanies this distribution, and is available
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     7
#
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     8
# Initial Contributors:
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     9
# Symbian Foundation Ltd - initial contribution.
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    10
#
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    11
# Contributors:
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    12
# Louis Henry Nayegon <louisn@symbian.org>
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    13
#
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    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
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    16
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    17
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    18
use strict;
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    19
use File::Copy;
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    20
use File::Path;
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    21
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    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
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    24
mkpath "temp/drmtest/general/testframework";
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    25
mkpath "temp/drmtest/winscw_udeb";
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    26
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    27
my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    28
copy("drm.xml",	"temp/test.xml");
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    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
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    39
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    40
system("7z a -tzip drmtest.zip ./temp/*");