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