|
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 //! @file |
|
17 // This script tests the installation to a removable media drive and |
|
18 // verifies the correct creation of a SIS stub on that drive |
|
19 |
|
20 // This script requires the SWIPolicy AllowPackagePropagate to be true in order to pass |
|
21 |
|
22 PRINT Run Removable media SIS deletable stub installation test |
|
23 PRINT SWIPolicy AllowPackagePropagate and DeletePreinstalledFilesOnUninstall must be set to true for these tests to pass |
|
24 LOAD_SUITE tuiscriptadaptors |
|
25 |
|
26 //! @SYMTestCaseID API-SEC-StubDeleteTest-I-0001 |
|
27 //! @SYMTestCaseDesc Test for swipolicy allowing deletion of files installed from removable media stub. |
|
28 //! @SYMDEF INC080962 |
|
29 //! @SYMTestPriority High |
|
30 //! @SYMTestActions Install and uninstall from stub and check expected deletions |
|
31 //! @SYMTestExpectedResults Files installed/uninstalled, package files and stub sis deleted if stub sis is writable |
|
32 //! @SYMDevelopedForRelease Mike |
|
33 |
|
34 START_TESTCASE API-SEC-StubDeleteTest-I-0001 |
|
35 |
|
36 // Simple package installation from a normal sis file |
|
37 RUN_TEST_STEP 10 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tsisstub.ini packagefordelete |
|
38 |
|
39 // Copy the stub that was created and the installed exe to another location for later restore. |
|
40 RUN_TEST_STEP 10 tuiscriptadaptors MmcCopyFilesStep z:\tswi\tuiscriptadaptors\scripts\tsisstub.ini save_packagefordelete_files |
|
41 |
|
42 // Uninstall the package |
|
43 RUN_TEST_STEP 15 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tsisstub.ini u_packagefordelete |
|
44 |
|
45 // Restore the files and set the stub file read-only. |
|
46 RUN_TEST_STEP 10 tuiscriptadaptors MmcCopyFilesStep z:\tswi\tuiscriptadaptors\scripts\tsisstub.ini restore_packagefordelete_files |
|
47 RUN_TEST_STEP 10 tuiscriptadaptors SetClearReadOnlyStep z:\tswi\tuiscriptadaptors\scripts\tsisstub.ini setreadonly_packagefordelete_stub |
|
48 // Reinstall from the stub |
|
49 RUN_TEST_STEP 10 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tsisstub.ini packagefordelete_stub |
|
50 |
|
51 // Uninstall stub |
|
52 RUN_TEST_STEP 10 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tsisstub.ini u_packagefordelete_stub |
|
53 |
|
54 // Set stub sis writable and reinstall. |
|
55 RUN_TEST_STEP 10 tuiscriptadaptors SetClearReadOnlyStep z:\tswi\tuiscriptadaptors\scripts\tsisstub.ini clearreadonly_packagefordelete_stub |
|
56 RUN_TEST_STEP 10 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\tsisstub.ini packagefordelete_stub |
|
57 |
|
58 // Uninstall stub and check deletion of files |
|
59 RUN_TEST_STEP 10 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tsisstub.ini u_packagefordelete_stub_delete |
|
60 |
|
61 // Remove the backup copies of the package files and stub. |
|
62 RUN_TEST_STEP 10 tuiscriptadaptors MmcDeleteFilesStep z:\tswi\tuiscriptadaptors\scripts\tsisstub.ini delete_packagefordelete_files |
|
63 |
|
64 END_TESTCASE API-SEC-StubDeleteTest-I-0001 |
|
65 |
|
66 |
|
67 // Ensure that SWIS shuts down after the above tests to make sure heap checks run |
|
68 RUN_TEST_STEP 5 tuiscriptadaptors SwisNotRunning |