cryptomgmtlibs/securityutils/test/trecog/scripts/trecogpkcs12.script
changeset 8 35751d3474b7
parent 0 2c201484c85f
child 29 ece3df019add
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
    11 //
    11 //
    12 // Contributors:
    12 // Contributors:
    13 //
    13 //
    14 // Description: 
    14 // Description: 
    15 //
    15 //
       
    16 //
       
    17 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
    18 // All rights reserved.
       
    19 // This component and the accompanying materials are made available
       
    20 // under the terms of the License "Symbian Foundation License v1.0"
       
    21 // which accompanies this distribution, and is available
       
    22 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
    23 //
       
    24 // Initial Contributors:
       
    25 // Nokia Corporation - initial contribution.
       
    26 //
       
    27 // Contributors:
       
    28 //
       
    29 // Description:
       
    30 //
    16 //! @file
    31 //! @file
    17 // Recog unit (integration) tests
    32 // Recog unit (integration) tests
    18 PRINT Run PKCS12 Recog test
    33 PRINT Run PKCS12 Recog test
    19 
    34 
    20 LOAD_SUITE trecogserver
    35 LOAD_SUITE trecogserver
    21 
    36 
    22 START_TESTCASE recognizePKCS12-001
    37 START_TESTCASE SEC-PKCS12RECOG-PKCS12-0001
    23 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-001
    38 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0001
    24 //! @SYMTestCaseDesc Recognize a PKCS#12 object passed by File Name
    39 //! @SYMTestCaseDesc Recognize a PKCS#12 object passed by File Name
    25 //! @SYMREQ REQ5728
    40 //! @SYMREQ REQ5728
    26 //! @SYMTestPriority Critical
    41 //! @SYMTestPriority Critical
    27 //! @SYMTestActions recognize a PKCS#12 object passed by file name using difference extensions
    42 //! @SYMTestActions recognize a PKCS#12 object passed by file name using difference extensions
    28 //! @SYMTestExpectedResults application/x-pkc12
    43 //! @SYMTestExpectedResults application/x-pkc12
    29 //! @SYMDevelopedForRelease Argus
    44 //! @SYMDevelopedForRelease Argus
    30 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNameP12
    45 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNameP12
    31 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNamePfx
    46 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNamePfx
    32 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNameXyz
    47 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNameXyz
    33 END_TESTCASE recognizePKCS12-001
    48 END_TESTCASE SEC-PKCS12RECOG-PKCS12-0001
    34 
    49 
    35 START_TESTCASE recognizePKCS12-002
    50 START_TESTCASE SEC-PKCS12RECOG-PKCS12-0002
    36 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-002
    51 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0002
    37 //! @SYMTestCaseDesc Recognize a PKCS#12 object passed by file handle
    52 //! @SYMTestCaseDesc Recognize a PKCS#12 object passed by file handle
    38 //! @SYMREQ REQ5728
    53 //! @SYMREQ REQ5728
    39 //! @SYMTestPriority Critical
    54 //! @SYMTestPriority Critical
    40 //! @SYMTestActions recognize a PKCS#12 object passed by file handle
    55 //! @SYMTestActions recognize a PKCS#12 object passed by file handle
    41 //! @SYMTestExpectedResults application/x-pkc12
    56 //! @SYMTestExpectedResults application/x-pkc12
    42 //! @SYMDevelopedForRelease Argus
    57 //! @SYMDevelopedForRelease Argus
    43 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandleP12
    58 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandleP12
    44 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandlePfx
    59 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandlePfx
    45 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandleXyz
    60 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandleXyz
    46 END_TESTCASE recognizePKCS12-002
    61 END_TESTCASE SEC-PKCS12RECOG-PKCS12-0002
    47 
    62 
    48 START_TESTCASE recognizePKCS12-003
    63 START_TESTCASE SEC-PKCS12RECOG-PKCS12-0003
    49 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-003
    64 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0003
    50 //! @SYMTestCaseDesc Recognize a PKCS#12 object passed by file handle where
    65 //! @SYMTestCaseDesc Recognize a PKCS#12 object passed by file handle where
    51 //!                  the file is in a private directory.
    66 //!                  the file is in a private directory.
    52 //! @SYMREQ REQ5728
    67 //! @SYMREQ REQ5728
    53 //! @SYMTestPriority Critical
    68 //! @SYMTestPriority Critical
    54 //! @SYMTestActions recognize a PKCS#12 object passed by file handle
    69 //! @SYMTestActions recognize a PKCS#12 object passed by file handle
    55 //! @SYMTestExpectedResults application/x-pkc12
    70 //! @SYMTestExpectedResults application/x-pkc12
    56 //! @SYMDevelopedForRelease Argus
    71 //! @SYMDevelopedForRelease Argus
    57 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandlePrivateP12
    72 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandlePrivateP12
    58 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandlePrivatePfx
    73 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandlePrivatePfx
    59 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandlePrivateXyz
    74 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByHandlePrivateXyz
    60 END_TESTCASE recognizePKCS12-003
    75 END_TESTCASE SEC-PKCS12RECOG-PKCS12-0003
    61 
    76 
    62 START_TESTCASE recognizePKCS12-004
    77 START_TESTCASE SEC-PKCS12RECOG-PKCS12-0004
    63 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-004
    78 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0004
    64 //! @SYMTestCaseDesc Recognize a PKCS#12 object passed by buffer
    79 //! @SYMTestCaseDesc Recognize a PKCS#12 object passed by buffer
    65 //! @SYMREQ REQ5728
    80 //! @SYMREQ REQ5728
    66 //! @SYMTestPriority Critical
    81 //! @SYMTestPriority Critical
    67 //! @SYMTestActions recognize a PKCS#12 object passed by buffer
    82 //! @SYMTestActions recognize a PKCS#12 object passed by buffer
    68 //! @SYMTestExpectedResults application/x-pkc12
    83 //! @SYMTestExpectedResults application/x-pkc12
    69 //! @SYMDevelopedForRelease Argus
    84 //! @SYMDevelopedForRelease Argus
    70 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByBufferP12
    85 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByBufferP12
    71 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByBufferPfx
    86 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByBufferPfx
    72 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByBufferXyz
    87 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByBufferXyz
    73 END_TESTCASE recognizePKCS12-004
    88 END_TESTCASE SEC-PKCS12RECOG-PKCS12-0004
    74 
    89 
    75 START_TESTCASE recognizePKCS12-005
    90 START_TESTCASE SEC-PKCS12RECOG-PKCS12-0005
    76 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-005
    91 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0005
    77 //! @SYMTestCaseDesc Recognize a PKCS#12 object passed by file name in a private directory
    92 //! @SYMTestCaseDesc Recognize a PKCS#12 object passed by file name in a private directory
    78 //! @SYMREQ REQ5728
    93 //! @SYMREQ REQ5728
    79 //! @SYMTestPriority Critical
    94 //! @SYMTestPriority Critical
    80 //! @SYMTestActions Recognize a file by name in a private directory that is not 
    95 //! @SYMTestActions Recognize a file by name in a private directory that is not 
    81 //!	accessible by the plugin.
    96 //!	accessible by the plugin.
    82 //! @SYMTestExpectedResults not recognized.
    97 //! @SYMTestExpectedResults not recognized.
    83 //! @SYMDevelopedForRelease Argus
    98 //! @SYMDevelopedForRelease Argus
    84 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNamePrivateP12
    99 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNamePrivateP12
    85 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNamePrivatePfx
   100 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNamePrivatePfx
    86 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNamePrivateXyz
   101 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini PassByNamePrivateXyz
    87 END_TESTCASE recognizePKCS12-005
   102 END_TESTCASE SEC-PKCS12RECOG-PKCS12-0005
    88 
   103 
    89 START_TESTCASE recognizePKCS12-006
   104 START_TESTCASE SEC-PKCS12RECOG-PKCS12-0006
    90 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-006
   105 //! @SYMTestCaseID SEC-PKCS12RECOG-PKCS12-0006
    91 //! @SYMTestCaseDesc Check for false positives by supplying non PKCS#12 files
   106 //! @SYMTestCaseDesc Check for false positives by supplying non PKCS#12 files
    92 //! @SYMREQ REQ5728
   107 //! @SYMREQ REQ5728
    93 //! @SYMTestPriority Critical
   108 //! @SYMTestPriority Critical
    94 //! @SYMTestActions Supply a set of non PKCS#12 files including DER encoded data including a file
   109 //! @SYMTestActions Supply a set of non PKCS#12 files including DER encoded data including a file
    95 //!                 that is smaller than the minimum required header size.
   110 //!                 that is smaller than the minimum required header size.
    98 RUN_TEST_STEP_RESULT 106 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificX509v1
   113 RUN_TEST_STEP_RESULT 106 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificX509v1
    99 RUN_TEST_STEP_RESULT 106 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificCA
   114 RUN_TEST_STEP_RESULT 106 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificCA
   100 RUN_TEST_STEP_RESULT 106 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificRoot5CA_key
   115 RUN_TEST_STEP_RESULT 106 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificRoot5CA_key
   101 RUN_TEST_STEP_RESULT 106 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificSmall
   116 RUN_TEST_STEP_RESULT 106 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificSmall
   102 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificP12
   117 RUN_TEST_STEP 100 trecogserver RecogStep c:\trecog\trecogpkcs12.ini CheckSpecificP12
   103 END_TESTCASE recognizePKCS12-006
   118 END_TESTCASE SEC-PKCS12RECOG-PKCS12-0006
   104