|
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 // SWIS unit (integration) tests |
|
18 PRINT Run all SWIS tests |
|
19 LOAD_SUITE tuiscriptadaptors |
|
20 |
|
21 //! @SYMTestCaseID API-SEC-UISA-InsufficientSpace-0001 |
|
22 //! @SYMTestCaseDesc Tries to install a SIS file containing a greater total size of data files than is available onto drive x |
|
23 //! @SYMTestPriority Medium |
|
24 //! @SYMTestActions Consume most of the disk space on drive x, then attempt to install a SIS file containing more data than |
|
25 //! can fit in the remaining space. |
|
26 //! @SYMTestExpectedResults Installation fails |
|
27 //! @SYMDevelopedForRelease Yankee |
|
28 |
|
29 START_TESTCASE API-SEC-UISA-InsufficientSpace-0001 |
|
30 |
|
31 // Create temporary file to leave very little space free on drive X. |
|
32 RUN_TEST_STEP 100 tuiscriptadaptors FillDrive z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptorsFH.ini almostfilldrive |
|
33 RUN_TEST_STEP_RESULT -26 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptorsFH.ini diskfull |
|
34 RUN_TEST_STEP_RESULT -1 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptorsFH.ini u_diskfull |
|
35 |
|
36 // Delete space hogging file from drive X |
|
37 RUN_UTILS DeleteFile x:\BigTempFile |
|
38 |
|
39 END_TESTCASE API-SEC-UISA-InsufficientSpace-0001 |
|
40 |
|
41 // Ensure that SWIS shuts down after the above tests to make sure heap checks run |
|
42 RUN_TEST_STEP 5 tuiscriptadaptors SwisNotRunning |