|
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 Silent install tests |
|
19 LOAD_SUITE tuiscriptadaptors |
|
20 LOAD_SUITE tSisRegistryTest |
|
21 |
|
22 //! @SYMTestCaseID API-SEC-CIT_AWIR-6FSGNJ-H2-0001 |
|
23 //! @SYMTestCaseDesc Check expected callbacks happen |
|
24 //! @SYMREQ REQ5496, REQ5497, REQ5498 |
|
25 //! @SYMTestPriority Medium |
|
26 //! @SYMTestActions Format MMC, Install SIS file, copy stub file to C:\, remove registry and install stub again |
|
27 //! @SYMTestExpectedResults Correct callbacks occur |
|
28 //! @SYMDevelopedForRelease Mike |
|
29 |
|
30 START_TESTCASE API-SEC-CIT_AWIR-6FSGNJ-H2-0001 |
|
31 |
|
32 RUN_TEST_STEP_RESULT -21 100 tuiscriptadaptors MmcMountStep z:\tswi\tuiscriptadaptors\scripts\drives.ini E |
|
33 DELAY 2000 |
|
34 RUN_TEST_STEP 100 tuiscriptadaptors MmcFormatStep z:\tswi\tuiscriptadaptors\scripts\drives.ini E |
|
35 RUN_TEST_STEP 100 tuiscriptadaptors MmcResetTagsStep z:\tswi\tuiscriptadaptors\scripts\drives.ini E |
|
36 |
|
37 # Install to MMC card first |
|
38 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\inc098114.ini install_org_h2 |
|
39 RUN_UTILS CopyFile e:\readme.txt c:\readme.txt |
|
40 RUN_UTILS CopyFile e:\private\10202dce\a0000bf3_0.sis e:\a0000bf3_0.sis |
|
41 |
|
42 RUN_TEST_STEP 100 tuiscriptadaptors MmcUnMountStep z:\tswi\tuiscriptadaptors\scripts\drives.ini E |
|
43 |
|
44 // Cleanup previous installations |
|
45 DELAY 5000 |
|
46 RUN_TEST_STEP 100 tSisRegistryTest DeleteRegistry |
|
47 DELAY 5000 |
|
48 |
|
49 RUN_TEST_STEP 100 tuiscriptadaptors MmcMountStep z:\tswi\tuiscriptadaptors\scripts\drives.ini E |
|
50 DELAY 7000 |
|
51 |
|
52 # |
|
53 RUN_UTILS CopyFile c:\readme.txt e:\readme.txt |
|
54 RUN_UTILS DeleteFile c:\readme.txt |
|
55 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\inc098114.ini install_stub_h2 |
|
56 |
|
57 RUN_TEST_STEP 100 tSisRegistryTest IsPackageInstalled z:\tswi\tuiscriptadaptors\scripts\inc098114.ini PackageInstalled |
|
58 |
|
59 END_TESTCASE API-SEC-CIT_AWIR-6FSGNJ-H2-0001 |
|
60 |
|
61 |
|
62 // Ensure that SWIS shuts down after the above tests to make sure heap checks run |
|
63 RUN_TEST_STEP 5 tuiscriptadaptors SwisNotRunning |