installationservices/swi/test/tuiscriptadaptors/scripts/testallowunsigned.script
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 //
       
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of the License "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 
       
    17 PRINT Run tests which install unsigned SIS files when AllowUnsigned == True in swipolicy.ini
       
    18 LOAD_SUITE tuiscriptadaptors
       
    19 
       
    20 //! @SYMTestCaseID 		API-SEC-UNSIGNED-0001
       
    21 //! @SYMTestStatus		3. Released
       
    22 
       
    23 START_TESTCASE API-SEC-UNSIGNED-0001
       
    24 
       
    25 // Install followed by uninstall of unsigned sis file containing data only
       
    26 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\tautosigning\scripts\tautosigning.ini 1-1unsigneddata
       
    27 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tautosigning\scripts\tautosigning.ini 1-1unsigneddata
       
    28 
       
    29 // Install followed by uninstall of unsigned sis file containing an exe with no capabilities
       
    30 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\testallowunsigned.ini tswinocapability
       
    31 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\testallowunsigned.ini u_tswinocapability
       
    32 
       
    33 // Install followed by uninstall of unsigned sis file containing an exe with user grantable capabilities
       
    34 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\testallowunsigned.ini tswiusergrantable
       
    35 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\testallowunsigned.ini u_tswiusergrantable
       
    36 
       
    37 // Install of unsigned sis file with an exe requiring a system capability (should fail)
       
    38 RUN_TEST_STEP_RESULT -10254 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\testallowunsigned.ini tswisystemcapability
       
    39 
       
    40 END_TESTCASE API-SEC-UNSIGNED-0001
       
    41 
       
    42 
       
    43 //! @SYMTestCaseID 		API-SEC-CIT_EGUO-6G9J6M_03-0001
       
    44 //! @SYMTestCaseDesc		A Reject the installation of libraries with protected VIDs in an unsigned SIS file.
       
    45 //! @SYMCR 			EGUO-6G9J6M
       
    46 //! @SYMTestPriority 		Medium
       
    47 //! @SYMTestActions 		Attempts to install an unsigned SIS file that contains a DLL with a protected VID.
       
    48 //! @SYMTestExpectedResults 	Files not installed.
       
    49 //! @SYMDevelopedForRelease 	Mike
       
    50 
       
    51 START_TESTCASE API-SEC-CIT_EGUO-6G9J6M_03-0001
       
    52 RUN_TEST_STEP_RESULT -10254 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\testallowunsigned.ini tswidllnocapabilityprotectedvid_unsigned
       
    53 
       
    54 END_TESTCASE API-SEC-CIT_EGUO-6G9J6M_03-0001
       
    55 
       
    56 // Ensure that SWIS shuts down after the above tests to make sure heap checks run
       
    57 RUN_TEST_STEP 5 tuiscriptadaptors SwisNotRunning