os/security/crypto/weakcryptospi/test/tcryptospi/scripts/te_plugincharstestcases_v2.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
//
sl@0
     2
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
// All rights reserved.
sl@0
     4
// This component and the accompanying materials are made available
sl@0
     5
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     6
// which accompanies this distribution, and is available
sl@0
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
//
sl@0
     9
// Initial Contributors:
sl@0
    10
// Nokia Corporation - initial contribution.
sl@0
    11
//
sl@0
    12
// Contributors:
sl@0
    13
//
sl@0
    14
// Description: 
sl@0
    15
//
sl@0
    16
sl@0
    17
PRINT Run all te_plugincharstestcases Suite Tests
sl@0
    18
sl@0
    19
//
sl@0
    20
LOAD_SUITE Te_CryptoSpi
sl@0
    21
//
sl@0
    22
sl@0
    23
RUN_PROGRAM cryptospisetup.exe 2
sl@0
    24
sl@0
    25
//! @SYMTestCaseID          SEC-CRYPTOSPI-PLUGINCHAR-0002
sl@0
    26
//! @SYMTestCaseDesc        PluginCharacteristics
sl@0
    27
sl@0
    28
START_TESTCASE SEC-CRYPTOSPI-PLUGINCHAR-0002
sl@0
    29
sl@0
    30
RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsCommonStep c:\testdata\tcryptospi\configs\plugincharscommon.ini Main
sl@0
    31
sl@0
    32
RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsSymmetricCipherStep c:\testdata\tcryptospi\configs\plugincharssymmetriccipher.ini Main
sl@0
    33
sl@0
    34
RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsAsymmetricCipherStep c:\testdata\tcryptospi\configs\plugincharsasymmetriccipher.ini Main
sl@0
    35
sl@0
    36
RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsHashStep c:\testdata\tcryptospi\configs\plugincharshash.ini Main
sl@0
    37
sl@0
    38
RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsNewHashStep c:\testdata\tcryptospi\configs\plugin_chars_new_hash.ini Main
sl@0
    39
sl@0
    40
RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsRandomStep c:\testdata\tcryptospi\configs\plugincharsrandom.ini Main
sl@0
    41
sl@0
    42
RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsAsymSignStep c:\testdata\tcryptospi\configs\plugincharsasymsign.ini Main
sl@0
    43
sl@0
    44
RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsKeyAgreeStep c:\testdata\tcryptospi\configs\plugincharskeyagree.ini Main
sl@0
    45
sl@0
    46
RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsAsymKeyPairStep c:\testdata\tcryptospi\configs\plugincharsasymkeypair.ini Main
sl@0
    47
sl@0
    48
RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsExtendedStep c:\testdata\tcryptospi\configs\plugincharsextended.ini Main
sl@0
    49
sl@0
    50
END_TESTCASE SEC-CRYPTOSPI-PLUGINCHAR-0002
sl@0
    51
sl@0
    52
sl@0
    53
//! @SYMTestCaseID          SEC-CRYP003-CHAR-MAC-0001
sl@0
    54
//! @SYMTestCaseDesc        Tests that all KAlgorithmCipherAesXcbcMac96 command and non-common
sl@0
    55
//!                         characteristics can be retrieved from an implementation object 
sl@0
    56
//!                         produced by the framework and that they successfully match the 
sl@0
    57
//!                         corresponding expected values.
sl@0
    58
//! @SYMREQ                 REQ10616, REQ10618
sl@0
    59
//! @SYMTestPriority        High
sl@0
    60
//! @SYMTestType            CIT
sl@0
    61
//! @SYMTestStatus          Implemented
sl@0
    62
//! @SYMTestExpectedResults  The call to the factory method should return KErrNone, successfully create
sl@0
    63
//!                          the implementation object, the Algorithm ID characteristic should equal 
sl@0
    64
//!                          KAlgorithmCipherAesXcbcMac96, and the value of characteristics
sl@0
    65
//!                          match against their expected value. 
sl@0
    66
sl@0
    67
START_TESTCASE SEC-CRYP003-CHAR-MAC-0001
sl@0
    68
RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsMacStep c:\testdata\tcryptospi\configs\plugincharsmac.ini MAC96
sl@0
    69
END_TESTCASE SEC-CRYP003-CHAR-MAC-0001
sl@0
    70
sl@0
    71
//! @SYMTestCaseID          SEC-CRYP003-CHAR-MAC-0003
sl@0
    72
//! @SYMTestCaseDesc        Tests that all KAlgorithmCipherAesXcbcPrf128 command and non-common
sl@0
    73
//!                         characteristics can be retrieved from an implementation object 
sl@0
    74
//!                         produced by the framework and that they successfully match the 
sl@0
    75
//!                         corresponding expected values.
sl@0
    76
//! @SYMREQ                 REQ10620, REQ10621
sl@0
    77
//! @SYMTestPriority        High
sl@0
    78
//! @SYMTestType            CIT
sl@0
    79
//! @SYMTestStatus          Implemented
sl@0
    80
//! @SYMTestExpectedResults  The call to the factory method should return KErrNone, successfully create
sl@0
    81
//!                          the implementation object, the Algorithm ID characteristic should equal 
sl@0
    82
//!                          KAlgorithmCipherAesXcbcPrf128, and the value of characteristics
sl@0
    83
//!                          match against their expected value. 
sl@0
    84
sl@0
    85
START_TESTCASE SEC-CRYP003-CHAR-MAC-0003
sl@0
    86
RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsMacStep c:\testdata\tcryptospi\configs\plugincharsmac.ini PRF128
sl@0
    87
END_TESTCASE SEC-CRYP003-CHAR-MAC-0003
sl@0
    88
sl@0
    89
// Set up to pick up tplugin01.dll only, which does not contain KAlgorithmCipherAesXcbcPrf128 implementation
sl@0
    90
RUN_PROGRAM cryptospisetup.exe 1
sl@0
    91
sl@0
    92
//! @SYMTestCaseID          SEC-CRYP002-PLUGIN-MAC-0003
sl@0
    93
//! @SYMTestCaseDesc        Tests that the selected software plug-in (tplugin01.dll) is loads when it is 
sl@0
    94
//!                         specified exclusively in the plug-in configuration file, but when the missing
sl@0
    95
//!                         implementation is called, the framework would return an error.
sl@0
    96
//!                         (PluginFailTest)
sl@0
    97
//! @SYMREQ                 REQ10616, REQ10618, REQ10620, REQ10621
sl@0
    98
//! @SYMTestPriority        High
sl@0
    99
//! @SYMTestType            CIT
sl@0
   100
//! @SYMTestStatus          Implemented
sl@0
   101
//! @SYMTestExpectedResults  The call to the factory method should return KErrNotFound, as the algorithm
sl@0
   102
//!                          wasn't implemented.
sl@0
   103
START_TESTCASE SEC-CRYP002-PLUGIN-MAC-0003
sl@0
   104
RUN_TEST_STEP !Result=-5 100 Te_CryptoSpi PluginCharsMacStep c:\testdata\tcryptospi\configs\plugincharsmac.ini PRF128
sl@0
   105
END_TESTCASE SEC-CRYP002-PLUGIN-MAC-0003
sl@0
   106
sl@0
   107
RUN_PROGRAM cryptospisetup.exe
sl@0
   108
sl@0
   109
PRINT Complete te_plugincharstestcases