Added Shortlink Services BC test suite
authorMaciej Seroka <maciejs@symbian.org>
Fri, 20 Aug 2010 09:07:26 +0100
changeset 1196 c0b9bf290520
parent 1195 b9a2adc3ea65
child 1197 944558ad8dc6
Added Shortlink Services BC test suite
common/tools/ats/bctest/shortlinksrv/shortlinksrv.pl
common/tools/ats/bctest/shortlinksrv/shortlinksrv.xml
common/tools/ats/bctest/xmlsrv/xmlsrv.pl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/shortlinksrv/shortlinksrv.pl	Fri Aug 20 09:07:26 2010 +0100
@@ -0,0 +1,33 @@
+#!/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:
+# Maciej Seroka <maciejs@symbian.org>
+#
+# Description:
+# Script to build ATS test drop for Shortlink Services tests
+
+
+use strict;
+use File::Copy;
+use File::Path;
+
+unlink "shortlinksrvtest.zip";
+rmtree "temp";
+mkpath "temp/shortlinksrvtest/bluetooth/general";
+mkpath "temp/shortlinksrvtest/winscw_udeb";
+
+my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
+copy("shortlinksrv.xml",	"temp/test.xml");
+copy($epoc . "release/winscw/udeb/T_BTSockAddrAPI.exe",				"temp/shortlinksrvtest/winscw_udeb/T_BTSockAddrAPI.exe") or die "failed : $!";
+copy($epoc . "winscw/c/bluetooth/BT-SOCK-ADDR-PublicApi.script",	"temp/shortlinksrvtest/bluetooth/general/BT-SOCK-ADDR-PublicApi.script") or die "failed : $!";
+copy($epoc . "winscw/c/bluetooth/BT-SOCK-ADDR-PublicApi.ini",		"temp/shortlinksrvtest/bluetooth/general/BT-SOCK-ADDR-PublicApi.ini") or die "failed : $!";
+
+system("7z a -tzip shortlinksrvtest.zip ./temp/*");
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/shortlinksrv/shortlinksrv.xml	Fri Aug 20 09:07:26 2010 +0100
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<test>
+	<id>1</id>
+	<owner>admin</owner>
+	<priority>10</priority>
+	<buildid></buildid>
+	<postAction>
+		<type>FileStoreAction</type>
+		<params>
+			<param name="report-type" value="ATS3_REPORT"/>
+		</params>
+    </postAction>
+	<name>Shortlink Services BC Tests</name>
+	<target>
+        <device rank="master" alias="emulator_udeb">
+            <property name="HARNESS" value="GENERIC" />
+            <property name="TYPE" value="WINSCW" />
+        </device>
+	</target>
+	<plan id="" name="Shortlink Services BC WINSCW UDEB" harness="GENERIC" enabled="true" passrate="100">
+		<target>
+			<device rank="master" alias="emulator_udeb"/>
+		</target>
+		<session id="" name="Shortlink Services Binary Compatibility Tests" harness="GENERIC" enabled="true" passrate="100">
+            <set id="" name="Bluetooth Tests" harness="GENERIC" enabled="true" passrate="100">
+                <case id="" name="T_BTSockAddrAPI" harness="GENERIC" enabled="true" passrate="100">
+                    <step id="" name="T_BTSockAddrAPI.exe (install)" harness="GENERIC" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="binary"/>
+							<param src="T_BTSockAddrAPI.exe"/>
+							<param dst="c:\sys\bin\T_BTSockAddrAPI.exe"/>
+							<param component-path="shortlinksrvtest" />
+						</params>
+					</step>
+					<step id="" name="BT-SOCK-ADDR-PublicApi.script (install)" harness="GENERIC" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="BT-SOCK-ADDR-PublicApi.script"/>
+							<param dst="c:/bluetooth/BT-SOCK-ADDR-PublicApi.script"/>
+							<param component-path="shortlinksrvtest/bluetooth" />
+						</params>
+					</step>
+					<step id="" name="BT-SOCK-ADDR-PublicApi.ini (install)" harness="GENERIC" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="BT-SOCK-ADDR-PublicApi.ini"/>
+							<param dst="c:/bluetooth/BT-SOCK-ADDR-PublicApi.ini"/>
+							<param component-path="shortlinksrvtest/bluetooth" />
+						</params>
+					</step>
+					<step id="" name="BT-SOCK-ADDR-PublicApi (execute)" harness="GENERIC" enabled="true" passrate="100">
+						<command>execute</command>
+						<params>
+							<param file="testexecute.exe"/>
+							<param parameters="c:\bluetooth\BT-SOCK-ADDR-PublicApi.script"/>
+                            <param result-file="c:\logs\testexecute\BT-SOCK-ADDR-PublicApi.htm"/>
+                            <param timeout="3600"/>
+							<param parser="TEFTestResultParser"/>
+							<param leave-old-result="true"/>
+						</params>
+					</step>
+                </case>
+			</set>			
+		</session>
+	</plan>
+	<files>
+		<file>shortlinksrvtest/winscw_udeb/T_BTSockAddrAPI.exe</file>
+		<file>shortlinksrvtest/bluetooth/general/BT-SOCK-ADDR-PublicApi.script</file>
+		<file>shortlinksrvtest/bluetooth/general/BT-SOCK-ADDR-PublicApi.ini</file>
+	</files>
+</test>
\ No newline at end of file
--- a/common/tools/ats/bctest/xmlsrv/xmlsrv.pl	Thu Aug 19 18:56:19 2010 +0100
+++ b/common/tools/ats/bctest/xmlsrv/xmlsrv.pl	Fri Aug 20 09:07:26 2010 +0100
@@ -19,7 +19,7 @@
 use File::Copy;
 use File::Path;
 
-unlink "xmlsrv.zip";
+unlink "xmlsrvtest.zip";
 rmtree "temp";
 mkpath "temp/xmlsrvtest/general/TestFramework";
 mkpath "temp/xmlsrvtest/general/XMLTest";