--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/drm/drm.pl Thu Sep 10 17:42:32 2009 +0100
@@ -0,0 +1,40 @@
+#!/usr/bin/perl
+# Copyright (c) 2009 Symbian Foundation Ltd
+# This component and the accompanying materials are made available
+# under the terms of the License "Eclipse Public License v1.0"
+# which accompanies this distribution, and is available
+# at the URL "http://www.eclipse.org/legal/epl-v10.html".
+#
+# Initial Contributors:
+# Symbian Foundation Ltd - initial contribution.
+#
+# Contributors:
+# Louis Henry Nayegon <louisn@symbian.org>
+#
+# Description:
+# Script to build ATS test drop multimedia svs tests
+
+
+use strict;
+use File::Copy;
+use File::Path;
+
+unlink "drmtest.zip";
+##rmtree "temp";
+mkpath "temp/drmtest/general/testframework";
+mkpath "temp/drmtest/winscw_udeb";
+
+my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
+copy("drm.xml", "temp/test.xml");
+
+copy($epoc . "release/winscw/udeb/drm_caf.dll", "temp/drmtest/winscw_udeb/drm_caf.dll");
+copy($epoc . "release/winscw/udeb/bcdrmcafcaps.exe", "temp/drmtest/winscw_udeb/bcdrmcafcaps.exe");
+copy($epoc . "winscw/c/testframework/testframework_drmcaf.ini", "temp/drmtest/general/testframework/testframework_drmcaf.ini");
+copy($epoc . "winscw/c/testframework/drm_caf.cfg", "temp/drmtest/general/testframework/drm_caf.cfg");
+copy($epoc . "winscw/c/content-noenc-trunc.odf", "temp/drmtest/general/content-noenc-trunc.odf");
+copy($epoc . "winscw/c/content.odf", "temp/drmtest/general/content.odf");
+copy($epoc . "winscw/c/content.txt", "temp/drmtest/general/content.txt");
+copy($epoc . "winscw/c/content-noenc.odf", "temp/drmtest/general/content-noenc.odf");
+copy($epoc . "winscw/c/content.dcf", "temp/drmtest/general/content.dcf");
+
+system("7z a -tzip drmtest.zip ./temp/*");
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/drm/drm.xml Thu Sep 10 17:42:32 2009 +0100
@@ -0,0 +1,138 @@
+<?xml version="1.0"?>
+<test>
+ <id>1</id>
+ <owner>admin</owner>
+ <priority>10</priority>
+ <buildid></buildid>
+ <name>Digital Rights Managment BC Tests</name>
+ <target>
+ <device rank="master" alias="emulator_udeb">
+ <property name="HARNESS" value="ATSINTERFACE" />
+ <property name="NAME" value="emulator_udeb" />
+ </device>
+ </target>
+ <plan id="" name="Digital Rights Managment BC WINSCW UDEB" harness="ATSINTERFACE" enabled="true" passrate="100">
+ <target>
+ <device rank="master" alias="emulator_udeb"/>
+ </target>
+ <session id="" name="Digital Rights Managment Binary Compatibility Tests" harness="ATSINTERFACE" enabled="true" passrate="100">
+ <set id="" name="DRM CAF" harness="ATSINTERFACE" enabled="true" passrate="100">
+ <case id="" name="DRM CAF" harness="ATSINTERFACE" enabled="true" passrate="100">
+ <step id="" name="SPD_Logs XML (makedir)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+ <command>makedir</command>
+ <params>
+ <param dir="c:\spd_logs\xml" />
+ </params>
+ </step>
+ <step id="" name="drm_caf.dll (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+ <command>install</command>
+ <params>
+ <param type="binary"/>
+ <param src="drm_caf.dll"/>
+ <param dst="c:\sys\bin\drm_caf.dll"/>
+ <param component-path="drmtest" />
+ </params>
+ </step>
+ <step id="" name="bcdrmcafcaps.exe (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+ <command>install</command>
+ <params>
+ <param type="binary"/>
+ <param src="bcdrmcafcaps.exe"/>
+ <param dst="c:\sys\bin\bcdrmcafcaps.exe"/>
+ <param component-path="drmtest" />
+ </params>
+ </step>
+ <step id="" name="testframework_drmcaf.ini (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+ <command>install</command>
+ <params>
+ <param type="data"/>
+ <param src="testframework/testframework_drmcaf.ini"/>
+ <param dst="c:\testframework\testframework.ini"/>
+ <param component-path="drmtest" />
+ </params>
+ </step>
+ <step id="" name="drm_caf.cfg (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+ <command>install</command>
+ <params>
+ <param type="data"/>
+ <param src="testframework/drm_caf.cfg"/>
+ <param dst="c:\testframework\drm_caf.cfg"/>
+ <param component-path="drmtest" />
+ </params>
+ </step>
+ <step id="" name="content-noenc-trunc.odf (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+ <command>install</command>
+ <params>
+ <param type="data"/>
+ <param src="content-noenc-trunc.odf"/>
+ <param dst="c:\content-noenc-trunc.odf"/>
+ <param component-path="drmtest" />
+ </params>
+ </step>
+ <step id="" name="content.odf (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+ <command>install</command>
+ <params>
+ <param type="data"/>
+ <param src="content.odf"/>
+ <param dst="c:\content.odf"/>
+ <param component-path="drmtest" />
+ </params>
+ </step>
+ <step id="" name="content.txt (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+ <command>install</command>
+ <params>
+ <param type="data"/>
+ <param src="content.txt"/>
+ <param dst="c:\content.txt"/>
+ <param component-path="drmtest" />
+ </params>
+ </step>
+ <step id="" name="content-noenc.odf (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+ <command>install</command>
+ <params>
+ <param type="data"/>
+ <param src="content-noenc.odf"/>
+ <param dst="c:\content-noenc.odf"/>
+ <param component-path="drmtest" />
+ </params>
+ </step>
+ <step id="" name="content.dcf (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+ <command>install</command>
+ <params>
+ <param type="data"/>
+ <param src="content.dcf"/>
+ <param dst="c:\content.dcf"/>
+ <param component-path="drmtest" />
+ </params>
+ </step>
+ <step id="" name="drm_caf (execute)" harness="ATSINTERFACE" enabled="true" passrate="100">
+ <command>execute</command>
+ <params>
+ <param file="atsinterface.exe"/>
+ <param parameters="-testmodule testscripter -config C:\testframework\drm_caf.cfg"/>
+ <param result-file="c:\spd_logs\xml\testscripter.xml"/>
+ <param timeout="3600"/>
+ </params>
+ </step>
+ <step id="" name="drm_caf (fetch-log)" harness="ATSINTERFACE" enabled="true" passrate="100">
+ <command>fetch-log</command>
+ <params>
+ <param path="c:\logs\testframework\TestReport.txt" />
+ </params>
+ </step>
+ </case>
+ </set>
+ </session>
+ </plan>
+ <files>
+ <file>drmtest/winscw_udeb/drm_caf.dll</file>
+ <file>drmtest/winscw_udeb/bcdrmcafcaps.exe</file>
+ <file>drmtest/general/testframework/testframework_drmcaf.ini</file>
+ <file>drmtest/general/testframework/drm_caf.cfg</file>
+ <file>drmtest/general/content-noenc-trunc.odf</file>
+ <file>drmtest/general/content.odf</file>
+ <file>drmtest/general/content.txt</file>
+ <file>drmtest/general/content-noenc.odf</file>
+ <file>drmtest/general/content.dcf</file>
+ </files>
+</test>