os/persistentdata/persistentstorage/sql/TEST/testexecute/SQLite/scripts/Concurrent.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.
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-1748
sl@0
    30
//! @SYMTestCaseID    SYSLIB-SQL-CIT-1748
sl@0
    31
//! @SYMTestCaseDesc  Dynamically creates a database, adding various data to
sl@0
    32
//!                  a new table. This is done in eight concurrent threads
sl@0
    33
//!                  which are deliberately not synchronized. The data should
sl@0
    34
//!                  successfully write into the table in an undefined order.
sl@0
    35
//! @SYMTestPriority  High
sl@0
    36
//! @SYMTestActions   See description and the config file.
sl@0
    37
//! @SYMTestExpectedResults
sl@0
    38
//!                  The data should successfully write into the table in
sl@0
    39
//!                  an undefined order.
sl@0
    40
//! @SYMREQ           REQ5793
sl@0
    41
sl@0
    42
CONCURRENT
sl@0
    43
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Thread2
sl@0
    44
  	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Thread3
sl@0
    45
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Thread4
sl@0
    46
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Thread5
sl@0
    47
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Thread6
sl@0
    48
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Thread7
sl@0
    49
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Thread8
sl@0
    50
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Thread1
sl@0
    51
END_TESTCASE SYSLIB-SQL-CIT-1748
sl@0
    52
sl@0
    53
START_TESTCASE SYSLIB-SQL-CIT-1749
sl@0
    54
//! @SYMTestCaseID    SYSLIB-SQL-CIT-1749
sl@0
    55
//! @SYMTestCaseDesc  Now read back the table CONSECUTIVELY to check the
sl@0
    56
//!                  table created above has been written correctly.
sl@0
    57
//! @SYMTestPriority  High
sl@0
    58
//! @SYMTestActions   See description and the config file.
sl@0
    59
//! @SYMTestExpectedResults
sl@0
    60
//!                  Each step checks the data written by a given thread
sl@0
    61
//!                  in the test above. This is done consecutively in case
sl@0
    62
//!                  the check below (which does the check concurrently) fails.
sl@0
    63
//!                  
sl@0
    64
//! @SYMREQ           REQ5793
sl@0
    65
sl@0
    66
CONSECUTIVE
sl@0
    67
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check1
sl@0
    68
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check2
sl@0
    69
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check3
sl@0
    70
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check4
sl@0
    71
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check5
sl@0
    72
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check6
sl@0
    73
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check7
sl@0
    74
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check8
sl@0
    75
END_TESTCASE SYSLIB-SQL-CIT-1749
sl@0
    76
sl@0
    77
START_TESTCASE SYSLIB-SQL-CIT-1750
sl@0
    78
//! @SYMTestCaseID    SYSLIB-SQL-CIT-1750
sl@0
    79
//! @SYMTestCaseDesc  Read back the table CONCURRENTLY in sixteen
sl@0
    80
//!                  threads.
sl@0
    81
//! @SYMTestPriority  High
sl@0
    82
//! @SYMTestActions   See description and the config file.
sl@0
    83
//! @SYMTestExpectedResults
sl@0
    84
//!                  Each step checks the data written by a given thread
sl@0
    85
//!                  in the test above. There are only eight sets of data
sl@0
    86
//!                  to check, but there's no harm in doing this more
sl@0
    87
//!                  than eight times to verify concurrency on read.
sl@0
    88
//!
sl@0
    89
//! @SYMREQ           REQ5793
sl@0
    90
sl@0
    91
CONCURRENT
sl@0
    92
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check1
sl@0
    93
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check2
sl@0
    94
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check3
sl@0
    95
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check4
sl@0
    96
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check5
sl@0
    97
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check6
sl@0
    98
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check7
sl@0
    99
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check8
sl@0
   100
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check1
sl@0
   101
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check2
sl@0
   102
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check3
sl@0
   103
	RUN_TEST_STEP 1000 te_SQL_Suite CSQLCDT z:\TEF_SQL\Concurrent.ini Check4
sl@0
   104
END_TESTCASE SYSLIB-SQL-CIT-1750
sl@0
   105
sl@0
   106
RUN_UTILS DeleteFile c:\Concurrent.db
sl@0
   107