1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/cryptomgmtlibs/securityutils/test/trecog/scripts/trecogpkcs12.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,103 @@
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 +//! @file
1.20 +// Recog unit (integration) tests
1.21 +PRINT Run PKCS12 Recog test
1.22 +
1.23 +LOAD_SUITE trecogserver
1.24 +
1.25 +START_TESTCASE SEC-PKCS12RECOG-PKCS12-0001
1.26 +//! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0001
1.27 +//! @SYMTestCaseDesc Recognize a PKCS#12 object passed by File Name
1.28 +//! @SYMREQ REQ5728
1.29 +//! @SYMTestPriority Critical
1.30 +//! @SYMTestActions recognize a PKCS#12 object passed by file name using difference extensions
1.31 +//! @SYMTestExpectedResults application/x-pkc12
1.32 +//! @SYMDevelopedForRelease Argus
1.33 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNameP12
1.34 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNamePfx
1.35 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNameXyz
1.36 +END_TESTCASE SEC-PKCS12RECOG-PKCS12-0001
1.37 +
1.38 +START_TESTCASE SEC-PKCS12RECOG-PKCS12-0002
1.39 +//! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0002
1.40 +//! @SYMTestCaseDesc Recognize a PKCS#12 object passed by file handle
1.41 +//! @SYMREQ REQ5728
1.42 +//! @SYMTestPriority Critical
1.43 +//! @SYMTestActions recognize a PKCS#12 object passed by file handle
1.44 +//! @SYMTestExpectedResults application/x-pkc12
1.45 +//! @SYMDevelopedForRelease Argus
1.46 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandleP12
1.47 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandlePfx
1.48 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandleXyz
1.49 +END_TESTCASE SEC-PKCS12RECOG-PKCS12-0002
1.50 +
1.51 +START_TESTCASE SEC-PKCS12RECOG-PKCS12-0003
1.52 +//! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0003
1.53 +//! @SYMTestCaseDesc Recognize a PKCS#12 object passed by file handle where
1.54 +//! the file is in a private directory.
1.55 +//! @SYMREQ REQ5728
1.56 +//! @SYMTestPriority Critical
1.57 +//! @SYMTestActions recognize a PKCS#12 object passed by file handle
1.58 +//! @SYMTestExpectedResults application/x-pkc12
1.59 +//! @SYMDevelopedForRelease Argus
1.60 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandlePrivateP12
1.61 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandlePrivatePfx
1.62 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandlePrivateXyz
1.63 +END_TESTCASE SEC-PKCS12RECOG-PKCS12-0003
1.64 +
1.65 +START_TESTCASE SEC-PKCS12RECOG-PKCS12-0004
1.66 +//! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0004
1.67 +//! @SYMTestCaseDesc Recognize a PKCS#12 object passed by buffer
1.68 +//! @SYMREQ REQ5728
1.69 +//! @SYMTestPriority Critical
1.70 +//! @SYMTestActions recognize a PKCS#12 object passed by buffer
1.71 +//! @SYMTestExpectedResults application/x-pkc12
1.72 +//! @SYMDevelopedForRelease Argus
1.73 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByBufferP12
1.74 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByBufferPfx
1.75 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByBufferXyz
1.76 +END_TESTCASE SEC-PKCS12RECOG-PKCS12-0004
1.77 +
1.78 +START_TESTCASE SEC-PKCS12RECOG-PKCS12-0005
1.79 +//! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0005
1.80 +//! @SYMTestCaseDesc Recognize a PKCS#12 object passed by file name in a private directory
1.81 +//! @SYMREQ REQ5728
1.82 +//! @SYMTestPriority Critical
1.83 +//! @SYMTestActions Recognize a file by name in a private directory that is not
1.84 +//! accessible by the plugin.
1.85 +//! @SYMTestExpectedResults not recognized.
1.86 +//! @SYMDevelopedForRelease Argus
1.87 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNamePrivateP12
1.88 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNamePrivatePfx
1.89 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNamePrivateXyz
1.90 +END_TESTCASE SEC-PKCS12RECOG-PKCS12-0005
1.91 +
1.92 +START_TESTCASE SEC-PKCS12RECOG-PKCS12-0006
1.93 +//! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0006
1.94 +//! @SYMTestCaseDesc Check for false positives by supplying non PKCS#12 files
1.95 +//! @SYMREQ REQ5728
1.96 +//! @SYMTestPriority Critical
1.97 +//! @SYMTestActions Supply a set of non PKCS#12 files including DER encoded data including a file
1.98 +//! that is smaller than the minimum required header size.
1.99 +//! @SYMTestExpectedResults not recognized.
1.100 +//! @SYMDevelopedForRelease Argus
1.101 +RUN_TEST_STEP_RESULT 106 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificX509v1
1.102 +RUN_TEST_STEP_RESULT 106 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificCA
1.103 +RUN_TEST_STEP_RESULT 106 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificRoot5CA_key
1.104 +RUN_TEST_STEP_RESULT 106 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificSmall
1.105 +RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificP12
1.106 +END_TESTCASE SEC-PKCS12RECOG-PKCS12-0006