sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // @file sl@0: // sl@0: // sl@0: sl@0: //! @SYMTestSuiteName PDS-TEF-SQL-SUITE sl@0: //! @SYMScriptTestEnvironment TEF sl@0: //! @internalComponent sl@0: //! @test sl@0: sl@0: PRINT Run SQL Tests sl@0: sl@0: LOAD_SUITE te_SQL_Suite sl@0: sl@0: RUN_UTILS MkDir c:\private\ sl@0: sl@0: START_TESTCASE SYSLIB-SQL-CIT-1700 sl@0: //! @SYMTestCaseID SYSLIB-SQL-CIT-1700 sl@0: //! @SYMTestCaseDesc Exercises configuration functionality. sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestActions See description and the config file. sl@0: //! @SYMTestExpectedResults sl@0: //! This test checks the three configuration options sl@0: //! (cache_size, page_size, encoding) default values. These sl@0: //! are then overridden with configuration options on Open/ sl@0: //! Create and the correct overriding behaviour is checked sl@0: //! using the 'pragma cache_size' (for instance) syntax. sl@0: //! The second step checks that an open with bad config sl@0: //! has failed and therefore PANICs when the next step is sl@0: //! attempted. sl@0: //! @SYMREQ REQ5792 sl@0: sl@0: RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckDefaults sl@0: RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckOverride1 sl@0: RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckOverride2 sl@0: RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckOverride3 sl@0: RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckOverride4 sl@0: RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckOverride5 sl@0: END_TESTCASE SYSLIB-SQL-CIT-1700 sl@0: sl@0: sl@0: START_TESTCASE SYSLIB-SQL-CIT-1701 sl@0: //! @SYMTestCaseID SYSLIB-SQL-CIT-1701 sl@0: //! @SYMTestCaseDesc Exercises configuration functionality. sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestActions See description and the config file. sl@0: //! @SYMTestExpectedResults sl@0: //! This test creates a database within each step, the first sl@0: //! is UTF-16, the second UTF-8. The test checks that the sl@0: //! configuration that has been set has the desired effect. sl@0: //! @SYMREQ REQ5792 sl@0: RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini WriteTextDB-16bit sl@0: RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini WriteTextDB-8bit sl@0: RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini FilesDiffer sl@0: END_TESTCASE SYSLIB-SQL-CIT-1701 sl@0: sl@0: