os/security/crypto/weakcryptospi/test/tcryptospi/scripts/te_plugincharstestcases_v2.script
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/crypto/weakcryptospi/test/tcryptospi/scripts/te_plugincharstestcases_v2.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,109 @@
1.4 +//
1.5 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of the License "Eclipse Public License v1.0"
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +PRINT Run all te_plugincharstestcases Suite Tests
1.21 +
1.22 +//
1.23 +LOAD_SUITE Te_CryptoSpi
1.24 +//
1.25 +
1.26 +RUN_PROGRAM cryptospisetup.exe 2
1.27 +
1.28 +//! @SYMTestCaseID SEC-CRYPTOSPI-PLUGINCHAR-0002
1.29 +//! @SYMTestCaseDesc PluginCharacteristics
1.30 +
1.31 +START_TESTCASE SEC-CRYPTOSPI-PLUGINCHAR-0002
1.32 +
1.33 +RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsCommonStep c:\testdata\tcryptospi\configs\plugincharscommon.ini Main
1.34 +
1.35 +RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsSymmetricCipherStep c:\testdata\tcryptospi\configs\plugincharssymmetriccipher.ini Main
1.36 +
1.37 +RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsAsymmetricCipherStep c:\testdata\tcryptospi\configs\plugincharsasymmetriccipher.ini Main
1.38 +
1.39 +RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsHashStep c:\testdata\tcryptospi\configs\plugincharshash.ini Main
1.40 +
1.41 +RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsNewHashStep c:\testdata\tcryptospi\configs\plugin_chars_new_hash.ini Main
1.42 +
1.43 +RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsRandomStep c:\testdata\tcryptospi\configs\plugincharsrandom.ini Main
1.44 +
1.45 +RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsAsymSignStep c:\testdata\tcryptospi\configs\plugincharsasymsign.ini Main
1.46 +
1.47 +RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsKeyAgreeStep c:\testdata\tcryptospi\configs\plugincharskeyagree.ini Main
1.48 +
1.49 +RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsAsymKeyPairStep c:\testdata\tcryptospi\configs\plugincharsasymkeypair.ini Main
1.50 +
1.51 +RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsExtendedStep c:\testdata\tcryptospi\configs\plugincharsextended.ini Main
1.52 +
1.53 +END_TESTCASE SEC-CRYPTOSPI-PLUGINCHAR-0002
1.54 +
1.55 +
1.56 +//! @SYMTestCaseID SEC-CRYP003-CHAR-MAC-0001
1.57 +//! @SYMTestCaseDesc Tests that all KAlgorithmCipherAesXcbcMac96 command and non-common
1.58 +//! characteristics can be retrieved from an implementation object
1.59 +//! produced by the framework and that they successfully match the
1.60 +//! corresponding expected values.
1.61 +//! @SYMREQ REQ10616, REQ10618
1.62 +//! @SYMTestPriority High
1.63 +//! @SYMTestType CIT
1.64 +//! @SYMTestStatus Implemented
1.65 +//! @SYMTestExpectedResults The call to the factory method should return KErrNone, successfully create
1.66 +//! the implementation object, the Algorithm ID characteristic should equal
1.67 +//! KAlgorithmCipherAesXcbcMac96, and the value of characteristics
1.68 +//! match against their expected value.
1.69 +
1.70 +START_TESTCASE SEC-CRYP003-CHAR-MAC-0001
1.71 +RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsMacStep c:\testdata\tcryptospi\configs\plugincharsmac.ini MAC96
1.72 +END_TESTCASE SEC-CRYP003-CHAR-MAC-0001
1.73 +
1.74 +//! @SYMTestCaseID SEC-CRYP003-CHAR-MAC-0003
1.75 +//! @SYMTestCaseDesc Tests that all KAlgorithmCipherAesXcbcPrf128 command and non-common
1.76 +//! characteristics can be retrieved from an implementation object
1.77 +//! produced by the framework and that they successfully match the
1.78 +//! corresponding expected values.
1.79 +//! @SYMREQ REQ10620, REQ10621
1.80 +//! @SYMTestPriority High
1.81 +//! @SYMTestType CIT
1.82 +//! @SYMTestStatus Implemented
1.83 +//! @SYMTestExpectedResults The call to the factory method should return KErrNone, successfully create
1.84 +//! the implementation object, the Algorithm ID characteristic should equal
1.85 +//! KAlgorithmCipherAesXcbcPrf128, and the value of characteristics
1.86 +//! match against their expected value.
1.87 +
1.88 +START_TESTCASE SEC-CRYP003-CHAR-MAC-0003
1.89 +RUN_TEST_STEP 100 Te_CryptoSpi PluginCharsMacStep c:\testdata\tcryptospi\configs\plugincharsmac.ini PRF128
1.90 +END_TESTCASE SEC-CRYP003-CHAR-MAC-0003
1.91 +
1.92 +// Set up to pick up tplugin01.dll only, which does not contain KAlgorithmCipherAesXcbcPrf128 implementation
1.93 +RUN_PROGRAM cryptospisetup.exe 1
1.94 +
1.95 +//! @SYMTestCaseID SEC-CRYP002-PLUGIN-MAC-0003
1.96 +//! @SYMTestCaseDesc Tests that the selected software plug-in (tplugin01.dll) is loads when it is
1.97 +//! specified exclusively in the plug-in configuration file, but when the missing
1.98 +//! implementation is called, the framework would return an error.
1.99 +//! (PluginFailTest)
1.100 +//! @SYMREQ REQ10616, REQ10618, REQ10620, REQ10621
1.101 +//! @SYMTestPriority High
1.102 +//! @SYMTestType CIT
1.103 +//! @SYMTestStatus Implemented
1.104 +//! @SYMTestExpectedResults The call to the factory method should return KErrNotFound, as the algorithm
1.105 +//! wasn't implemented.
1.106 +START_TESTCASE SEC-CRYP002-PLUGIN-MAC-0003
1.107 +RUN_TEST_STEP !Result=-5 100 Te_CryptoSpi PluginCharsMacStep c:\testdata\tcryptospi\configs\plugincharsmac.ini PRF128
1.108 +END_TESTCASE SEC-CRYP002-PLUGIN-MAC-0003
1.109 +
1.110 +RUN_PROGRAM cryptospisetup.exe
1.111 +
1.112 +PRINT Complete te_plugincharstestcases
1.113 \ No newline at end of file