os/persistentdata/persistentstorage/sql/TEST/testexecute/SQLite/scripts/Configuration.script
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/persistentdata/persistentstorage/sql/TEST/testexecute/SQLite/scripts/Configuration.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,69 @@
1.4 +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// @file
1.18 +//
1.19 +//
1.20 +
1.21 +//! @SYMTestSuiteName PDS-TEF-SQL-SUITE
1.22 +//! @SYMScriptTestEnvironment TEF
1.23 +//! @internalComponent
1.24 +//! @test
1.25 +
1.26 +PRINT Run SQL Tests
1.27 +
1.28 +LOAD_SUITE te_SQL_Suite
1.29 +
1.30 +RUN_UTILS MkDir c:\private\
1.31 +
1.32 +START_TESTCASE SYSLIB-SQL-CIT-1700
1.33 +//! @SYMTestCaseID SYSLIB-SQL-CIT-1700
1.34 +//! @SYMTestCaseDesc Exercises configuration functionality.
1.35 +//! @SYMTestPriority High
1.36 +//! @SYMTestActions See description and the config file.
1.37 +//! @SYMTestExpectedResults
1.38 +//! This test checks the three configuration options
1.39 +//! (cache_size, page_size, encoding) default values. These
1.40 +//! are then overridden with configuration options on Open/
1.41 +//! Create and the correct overriding behaviour is checked
1.42 +//! using the 'pragma cache_size' (for instance) syntax.
1.43 +//! The second step checks that an open with bad config
1.44 +//! has failed and therefore PANICs when the next step is
1.45 +//! attempted.
1.46 +//! @SYMREQ REQ5792
1.47 +
1.48 + RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckDefaults
1.49 + RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckOverride1
1.50 + RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckOverride2
1.51 + RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckOverride3
1.52 + RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckOverride4
1.53 + RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckOverride5
1.54 +END_TESTCASE SYSLIB-SQL-CIT-1700
1.55 +
1.56 +
1.57 +START_TESTCASE SYSLIB-SQL-CIT-1701
1.58 +//! @SYMTestCaseID SYSLIB-SQL-CIT-1701
1.59 +//! @SYMTestCaseDesc Exercises configuration functionality.
1.60 +//! @SYMTestPriority High
1.61 +//! @SYMTestActions See description and the config file.
1.62 +//! @SYMTestExpectedResults
1.63 +//! This test creates a database within each step, the first
1.64 +//! is UTF-16, the second UTF-8. The test checks that the
1.65 +//! configuration that has been set has the desired effect.
1.66 +//! @SYMREQ REQ5792
1.67 + RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini WriteTextDB-16bit
1.68 + RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini WriteTextDB-8bit
1.69 + RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini FilesDiffer
1.70 +END_TESTCASE SYSLIB-SQL-CIT-1701
1.71 +
1.72 +