New Landmarks Database Management BC test
authorMaciej Seroka <maciejs@symbian.org>
Tue, 15 Sep 2009 11:50:42 +0100
changeset 446 a9ff40c5d7ed
parent 445 4cb7fa2cb693
child 448 df315d0a8ab7
New Landmarks Database Management BC test
common/tools/ats/bctest/locationsrv/lmdbmanagement/lmdbmanagement.pl
common/tools/ats/bctest/locationsrv/lmdbmanagement/lmdbmanagement.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/locationsrv/lmdbmanagement/lmdbmanagement.pl	Tue Sep 15 11:50:42 2009 +0100
@@ -0,0 +1,34 @@
+#!/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 Landmarks Database Management BC tests
+
+
+use strict;
+use File::Copy;
+use File::Path;
+
+unlink "lmdbmanagementtest.zip";
+##rmtree "temp";
+mkpath "temp/lmdbmanagementtest/general/testframework";
+mkpath "temp/lmdbmanagementtest/winscw_udeb";
+
+my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
+copy("lmdbmanagement.xml",	"temp/test.xml");
+
+copy($epoc . "release/winscw/udeb/testdbmanagementapi.dll",			"temp/lmdbmanagementtest/winscw_udeb/testdbmanagementapi.dll");
+copy($epoc . "winscw/c/testframework/testframework_lmdbmanagement.ini",	"temp/lmdbmanagementtest/general/testframework/testframework_lmdbmanagement.ini");
+copy($epoc . "winscw/c/testframework/testdbmanagementapi.cfg",				"temp/lmdbmanagementtest/general/testframework/testdbmanagementapi.cfg");
+
+system("7z a -tzip lmdbmanagementtest.zip ./temp/*");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/locationsrv/lmdbmanagement/lmdbmanagement.xml	Tue Sep 15 11:50:42 2009 +0100
@@ -0,0 +1,80 @@
+<?xml version="1.0"?>
+<test>
+	<id>1</id>
+	<owner>admin</owner>
+	<priority>10</priority>
+	<buildid></buildid>
+	<name>Landmarks Database Management 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="Landmarks Database Management BC WINSCW UDEB" harness="ATSINTERFACE" enabled="true" passrate="100">
+		<target>
+			<device rank="master" alias="emulator_udeb"/>
+		</target>
+		<session id="" name="Landmarks Database Management Compatibility Tests" harness="ATSINTERFACE" enabled="true" passrate="100">
+			<set id="" name="Landmarks Database Management" harness="ATSINTERFACE" enabled="true" passrate="100">
+				<case id="" name="Landmarks Database Management" 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="testdbmanagementapi.dll (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="binary"/>
+							<param src="testdbmanagementapi.dll"/>
+							<param dst="c:\sys\bin\testdbmanagementapi.dll"/>
+							<param component-path="lmdbmanagementtest" />
+						</params>
+					</step>
+					<step id="" name="TestFramework_lmdbmanagement.ini (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testframework/TestFramework_lmdbmanagement.ini"/>
+							<param dst="c:\testframework\testframework.ini"/>
+							<param component-path="lmdbmanagementtest" />
+						</params>
+					</step>
+					<step id="" name="testdbmanagementapi.cfg (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testframework/testdbmanagementapi.cfg"/>
+							<param dst="c:\testframework\testdbmanagementapi.cfg"/>
+							<param component-path="lmdbmanagementtest" />
+						</params>
+					</step>
+
+
+					<step id="" name="testdbmanagementapi (execute)" harness="ATSINTERFACE" enabled="true" passrate="100">
+						<command>execute</command>
+						<params>
+							<param file="atsinterface.exe"/>
+							<param parameters="-testmodule testscripter -config c:\testframework\testdbmanagementapi.cfg"/>
+							<param result-file="c:\spd_logs\xml\testscripter.xml"/>
+                            <param timeout="3600"/>
+						</params>
+					</step>
+					<step id="" name="testdbmanagementapi (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>lmdbmanagementtest/winscw_udeb/testdbmanagementapi.dll</file>
+		<file>lmdbmanagementtest/general/testframework/testframework_lmdbmanagement.ini</file>
+		<file>lmdbmanagementtest/general/testframework/testdbmanagementapi.cfg</file>
+	</files>
+</test>