secureswitools/swisistools/test/tscrtool/tscrtool.ini
changeset 0 ba25891c3a9e
child 25 7333d7932ef7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/secureswitools/swisistools/test/tscrtool/tscrtool.ini	Thu Dec 17 08:51:10 2009 +0200
@@ -0,0 +1,165 @@
+#
+# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+# All rights reserved.
+# 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:
+# Nokia Corporation - initial contribution.
+#
+# Contributors:
+#
+# Description:
+# Configuration file for testscrtool.pl
+# Command line option testing
+# Failure Cases
+#
+
+# To ensure graceful abort of the tool when a command specified is not supported by the tool.
+[sec/swi/scrtool/0001]
+option = -a a.txt
+result=EInvalidArgument
+
+# To ensure graceful abort of the tool when a mandatory command is not specified.
+[sec/swi/scrtool/0002]
+option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db
+result=EMandatoryOption
+
+# To ensure graceful abort of the tool when a mandatory command is not specified.
+[sec/swi/scrtool/0003]
+option = -f envUpdate.xml
+result=EFileNotPresent
+
+# To ensure graceful abort of the tool when invalid input is specified.
+[sec/swi/scrtool/0004]
+option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f doesnotexist.xml
+result=EFileNotPresent
+
+# To ensure -c and -d options are mutually exclusive. The xml file should be present.
+[sec/swi/scrtool/0005]
+option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -d %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\exists.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_empty.xml
+result=EMutuallyExclusive
+
+# empty env update file
+[sec/swi/scrtool/0006]
+option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_empty.xml
+result=EFatalError
+
+# env update end tag missing
+[sec/swi/scrtool/0007]
+option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_end_tag_missing.xml
+result=EFatalError
+
+# env update containing invalid root
+[sec/swi/scrtool/0008]
+option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_invalid_root.xml
+result=EParseError
+
+# env update against dtd spec
+[sec/swi/scrtool/0009]
+option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_against_dtd_spec.xml
+result=EParseError
+
+# Ensure getting the tools usage message when the arguments supplied without the '-'
+[sec/swi/scrtool/0010]
+option = c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_against_dtd_spec.xml
+result=EInvalidArgument
+
+# Check setting the level of logging information
+[sec/swi/scrtool/0011]
+option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -w NONE
+result=EInvalidArgument
+
+# Check for combination of one exisintg and one non existing environment data 
+[sec/swi/scrtool/0012]
+option = -c %EPOCROOT%epoc32/winscw/c/tswi/tscrtool/scr.db -f %EPOCROOT%epoc32/winscw/c/tswi/tscrtool/data/update_db_test.xml %EPOCROOT%epoc32/winscw/c/tswi/tscrtool/data/nonexistingupdate_db_test.xml
+result=EFileNotPresent
+
+# Check for the non exisiting pre provisioned information
+[sec/swi/scrtool/0013]
+option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\nonexistingpreprov.xml
+result=EFileNotPresent
+
+
+###############
+#Success Case
+##############
+
+# Check setting the error log file
+[sec/swi/scrtool/0014]
+option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -l scrtooltest.log
+checkdbexists = %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db
+result=ENone
+
+# Check setting the level of loggig information
+[sec/swi/scrtool/0015]
+option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -w ERROR
+checkdbexists = %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db
+result=ENone
+
+# Check setting the level of loggig information
+[sec/swi/scrtool/0016]
+option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -w WARN
+checkdbexists = %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db
+result=ENone
+
+# Check setting the level of loggig information
+[sec/swi/scrtool/0017]
+option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -w INFO
+checkdbexists = %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db
+result=ENone
+
+# Check setting the level of loggig information
+[sec/swi/scrtool/0018]
+option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -w ALL
+checkdbexists = %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db
+result=ENone
+
+# Ensure getting the tools usage message when the arguments supplied is 'h'
+[sec/swi/scrtool/0019]
+option = -h
+result=ENone
+
+# Ensure getting the tools usage message when the arguments supplied is '?'
+[sec/swi/scrtool/0020]
+option = -?
+result=ENone
+
+# successfuly creation of database and update of environment data
+[sec/swi/scrtool/0021]
+option= -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml
+checkdbexists = %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db
+result=ENone
+
+# successfully create database containing unicode(utf-16) data
+[sec/swi/scrtool/0022]
+option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\unicodescr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_unicode.xml
+checkdbexists = %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\unicodescr.db
+result=ENone
+
+# preprovision application xml file does not have an attribute specified.
+[sec/swi/scrtool/0023]
+option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_attribute_missing.xml
+result=EParseError
+
+# preprovision for handling conditions.
+[sec/swi/scrtool/0024]
+option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_coverage.xml
+result=ENone
+
+# Usage of -f and -p together: positive test
+[sec/swi/scrtool/0025]
+option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_symbian.xml
+result=ENone
+
+# Usage of -f and -p together: negative test - use nonexisting pre-provision XML
+[sec/swi/scrtool/0026]
+option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_doesnotexist.xml
+result=EFileNotPresent
+
+# Usage of -f and -p together: negative test - use nonexisting update_db XML XML
+[sec/swi/scrtool/0027]
+option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_nonexisting.xml -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_symbian.xml
+result=EFileNotPresent