|
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 PA and SA stub not delete tests |
|
18 LOAD_SUITE tuiscriptadaptors |
|
19 LOAD_SUITE tSisRegistryTest |
|
20 |
|
21 PRINT We need DeletePreinstalledFilesOnUninstall to false for running these tests. |
|
22 |
|
23 //! @SYMTestCaseID API-SEC-PA_NoDeleteFiles-0001 |
|
24 //! @SYMTestCaseDesc Installs a PA package, Remove media card, Uninstall an App, Reinsert the card back, Files should not get deleted |
|
25 //! @SYMDEF DEF113546 |
|
26 //! @SYMTestPriority Low |
|
27 //! @SYMTestActions Inserts a media card which should not be cleaned up |
|
28 //! @SYMTestExpectedResults Media card should not be free of installed files |
|
29 //! @SYMDevelopedForRelease Naiad |
|
30 |
|
31 START_TESTCASE API-SEC-PA_NoDeleteFiles-0001 |
|
32 |
|
33 RUN_TEST_STEP_RESULT -21 100 tuiscriptadaptors MmcMountStep z:\tswi\tuiscriptadaptors\scripts\drives.ini X |
|
34 |
|
35 RUN_TEST_STEP 10 tuiscriptadaptors MmcCopyFilesStep z:\tswi\tuiscriptadaptors\scripts\teststub.ini setup_preinstalled |
|
36 |
|
37 RUN_TEST_STEP 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\teststub.ini install_pa |
|
38 |
|
39 RUN_TEST_STEP 100 tuiscriptadaptors MmcUnMountStep z:\tswi\tuiscriptadaptors\scripts\drives.ini X |
|
40 |
|
41 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\teststub.ini u_install_pastub |
|
42 |
|
43 RUN_TEST_STEP 100 tuiscriptadaptors MmcMountStep z:\tswi\tuiscriptadaptors\scripts\drives.ini X |
|
44 DELAY 5000 |
|
45 |
|
46 RUN_TEST_STEP 100 tuiscriptadaptors MmcCheckFilesStep z:\tswi\tuiscriptadaptors\scripts\teststub.ini checkfiles_pa_notdelete |
|
47 |
|
48 END_TESTCASE API-SEC-PA_NoDeleteFiles-0001 |
|
49 |
|
50 |
|
51 //! @SYMTestCaseID API-SEC-SAPropogatedNotDeleteFiles-0001 |
|
52 //! @SYMTestCaseDesc Installs a SA package to a Media card, Remove the media card, Delete the Registry , Mount the card back, |
|
53 //! Install the stub sis file, Remove the Media card, Reinsert the card back, files should not get deleted |
|
54 //! @SYMDEF DEF113546 |
|
55 //! @SYMTestPriority Low |
|
56 //! @SYMTestActions Inserts a media card which should not be cleaned up |
|
57 //! @SYMTestExpectedResults Inserts a media card which should not be cleaned up |
|
58 //! @SYMDevelopedForRelease Naiad |
|
59 |
|
60 START_TESTCASE API-SEC-SAPropogatedNotDeleteFiles-0001 |
|
61 |
|
62 RUN_TEST_STEP_RESULT -21 100 tuiscriptadaptors MmcMountStep z:\tswi\tuiscriptadaptors\scripts\drives.ini X |
|
63 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\teststub.ini install_sa |
|
64 |
|
65 RUN_UTILS CopyFile x:\readme.txt c:\readme.txt |
|
66 RUN_UTILS CopyFile x:\private\10202dce\8000001a_0.sis x:\8000001a_0.sis |
|
67 |
|
68 RUN_TEST_STEP 100 tuiscriptadaptors MmcUnMountStep z:\tswi\tuiscriptadaptors\scripts\drives.ini X |
|
69 |
|
70 RUN_TEST_STEP 100 tSisRegistryTest DeleteRegistry |
|
71 |
|
72 RUN_TEST_STEP 100 tuiscriptadaptors MmcMountStep z:\tswi\tuiscriptadaptors\scripts\drives.ini X |
|
73 DELAY 8000 |
|
74 |
|
75 RUN_TEST_STEP 100 tuiscriptadaptors MmcCopyFilesStep z:\tswi\tuiscriptadaptors\scripts\teststub.ini setup_sastub |
|
76 RUN_UTILS DeleteFile c:\readme.txt |
|
77 |
|
78 RUN_TEST_STEP 100 tuiscriptadaptors InstallFHStep z:\tswi\tuiscriptadaptors\scripts\teststub.ini install_sastub |
|
79 |
|
80 // Allow for all processing on the X drive to finish |
|
81 DELAY 1000 |
|
82 RUN_TEST_STEP 100 tuiscriptadaptors MmcUnMountStep z:\tswi\tuiscriptadaptors\scripts\drives.ini X |
|
83 |
|
84 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\teststub.ini u_install_sastub |
|
85 |
|
86 RUN_TEST_STEP 100 tuiscriptadaptors MmcMountStep z:\tswi\tuiscriptadaptors\scripts\drives.ini X |
|
87 DELAY 8000 |
|
88 |
|
89 RUN_TEST_STEP 100 tuiscriptadaptors MmcCheckFilesStep z:\tswi\tuiscriptadaptors\scripts\teststub.ini checkfiles_sa_notdelete |
|
90 |
|
91 END_TESTCASE API-SEC-SAPropogatedNotDeleteFiles-0001 |