os/persistentdata/persistentstorage/sql/TEST/testexecute/SQLite/scripts/Configuration.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // @file
    15 // 
    16 //
    17 
    18 //! @SYMTestSuiteName PDS-TEF-SQL-SUITE
    19 //! @SYMScriptTestEnvironment TEF
    20 //! @internalComponent
    21 //! @test
    22 
    23 PRINT Run SQL Tests
    24 
    25 LOAD_SUITE te_SQL_Suite
    26 
    27 RUN_UTILS MkDir c:\private\
    28 
    29 START_TESTCASE SYSLIB-SQL-CIT-1700
    30 //! @SYMTestCaseID    SYSLIB-SQL-CIT-1700
    31 //! @SYMTestCaseDesc  Exercises configuration functionality.
    32 //! @SYMTestPriority  High
    33 //! @SYMTestActions   See description and the config file.
    34 //! @SYMTestExpectedResults
    35 //!                  This test checks the three configuration options
    36 //!                  (cache_size, page_size, encoding) default values. These
    37 //!                  are then overridden with configuration options on Open/
    38 //!                  Create and the correct overriding behaviour is checked
    39 //!                  using the 'pragma cache_size' (for instance) syntax.
    40 //!                  The second step checks that an open with bad config
    41 //!                  has failed and therefore PANICs when the next step is
    42 //!                  attempted.
    43 //! @SYMREQ           REQ5792
    44 
    45 	RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckDefaults
    46 	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckOverride1
    47 	RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckOverride2
    48 	RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckOverride3
    49 	RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckOverride4
    50 	RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini CheckOverride5
    51 END_TESTCASE SYSLIB-SQL-CIT-1700
    52 
    53 
    54 START_TESTCASE SYSLIB-SQL-CIT-1701
    55 //! @SYMTestCaseID    SYSLIB-SQL-CIT-1701
    56 //! @SYMTestCaseDesc  Exercises configuration functionality.
    57 //! @SYMTestPriority  High
    58 //! @SYMTestActions   See description and the config file.
    59 //! @SYMTestExpectedResults
    60 //!                  This test creates a database within each step, the first
    61 //!                  is UTF-16, the second UTF-8. The test checks that the
    62 //!                  configuration that has been set has the desired effect.
    63 //! @SYMREQ           REQ5792
    64 	RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini WriteTextDB-16bit
    65 	RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini WriteTextDB-8bit
    66 	RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\Configuration.ini FilesDiffer
    67 END_TESTCASE SYSLIB-SQL-CIT-1701
    68 
    69