|
1 /* |
|
2 * Copyright (c) 2005-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 |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 */ |
|
24 |
|
25 #include <e32test.h> |
|
26 #include <e32std.h> |
|
27 #include "t_testhandler.h" |
|
28 #include "tscriptandhardcoded.h" |
|
29 #include "t_certapps_defs.h" |
|
30 |
|
31 #include "t_certapps_actions.h" |
|
32 |
|
33 |
|
34 LOCAL_D void DoTests() |
|
35 { |
|
36 START_SCRIPT_LIST |
|
37 SCRIPT_ITEM(CTestWrapper<CInitManager>, KInitManager), |
|
38 SCRIPT_ITEM(CTestWrapper<CDestroyManager>, KDestroyManager), |
|
39 SCRIPT_ITEM(CTestWrapper<CClearAllApps>, KClearAllApps), |
|
40 SCRIPT_ITEM(CTestWrapper<CAddApp>, KAddApp), |
|
41 SCRIPT_ITEM(CTestWrapper<CRemoveApp>, KRemoveApp), |
|
42 SCRIPT_ITEM(CTestWrapper<CAppCount>, KAppCount), |
|
43 SCRIPT_ITEM(CTestWrapper<CGetApplications>, KGetApplications), |
|
44 SCRIPT_ITEM(CTestWrapper<CGetApp>, KGetApp) |
|
45 END_SCRIPT_LIST |
|
46 |
|
47 |
|
48 TDriveUnit sysDrive (RFs::GetSystemDrive()); |
|
49 TBuf<64> scriptFile (sysDrive.Name()); |
|
50 scriptFile.Append(_L("\\tcertapps\\scripts\\script1.txt")); |
|
51 |
|
52 _LIT(KLog, "tcertapps.log"); |
|
53 CScriptSetup::CreateAndRunTestsL(theTestTypes, scriptFile, KLog); |
|
54 } |
|
55 |
|
56 GLDEF_C TInt E32Main() // main function called by E32 |
|
57 { |
|
58 RProcess().DataCaging(RProcess::EDataCagingOn); |
|
59 __UHEAP_MARK; |
|
60 CTrapCleanup* cleanup=CTrapCleanup::New(); // get clean-up stack |
|
61 TRAP_IGNORE(DoTests()); |
|
62 delete cleanup; // destroy clean-up stack |
|
63 __UHEAP_MARKEND; |
|
64 return 0; // and return |
|
65 } |