common/tools/ats/bctest/drm/drm.pl
author Louis Henry Nayegon <louisn@symbian.org>
Thu, 10 Sep 2009 17:41:16 +0100
changeset 430 2118454a7779
child 438 6832752a1de3
permissions -rw-r--r--
Add DRM test
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:
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    15
# Script to build ATS test drop multimedia svs tests
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";
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    23
##rmtree "temp";
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
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    30
copy($epoc . "release/winscw/udeb/drm_caf.dll",					"temp/drmtest/winscw_udeb/drm_caf.dll");
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    31
copy($epoc . "release/winscw/udeb/bcdrmcafcaps.exe",			"temp/drmtest/winscw_udeb/bcdrmcafcaps.exe");
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    32
copy($epoc . "winscw/c/testframework/testframework_drmcaf.ini",	"temp/drmtest/general/testframework/testframework_drmcaf.ini");
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    33
copy($epoc . "winscw/c/testframework/drm_caf.cfg",				"temp/drmtest/general/testframework/drm_caf.cfg");
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    34
copy($epoc . "winscw/c/content-noenc-trunc.odf",				"temp/drmtest/general/content-noenc-trunc.odf");
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    35
copy($epoc . "winscw/c/content.odf",							"temp/drmtest/general/content.odf");
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    36
copy($epoc . "winscw/c/content.txt",							"temp/drmtest/general/content.txt");
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    37
copy($epoc . "winscw/c/content-noenc.odf",						"temp/drmtest/general/content-noenc.odf");
2118454a7779 Add DRM test
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    38
copy($epoc . "winscw/c/content.dcf",							"temp/drmtest/general/content.dcf");
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/*");