sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
/**
|
sl@0
|
20 |
@file
|
sl@0
|
21 |
*/
|
sl@0
|
22 |
|
sl@0
|
23 |
#include <e32test.h>
|
sl@0
|
24 |
#include <e32std.h>
|
sl@0
|
25 |
#include "t_testhandler.h"
|
sl@0
|
26 |
#include "tscriptandhardcoded.h"
|
sl@0
|
27 |
#include "t_certapps_defs.h"
|
sl@0
|
28 |
|
sl@0
|
29 |
#include "t_certapps_actions.h"
|
sl@0
|
30 |
|
sl@0
|
31 |
|
sl@0
|
32 |
LOCAL_D void DoTests()
|
sl@0
|
33 |
{
|
sl@0
|
34 |
START_SCRIPT_LIST
|
sl@0
|
35 |
SCRIPT_ITEM(CTestWrapper<CInitManager>, KInitManager),
|
sl@0
|
36 |
SCRIPT_ITEM(CTestWrapper<CDestroyManager>, KDestroyManager),
|
sl@0
|
37 |
SCRIPT_ITEM(CTestWrapper<CClearAllApps>, KClearAllApps),
|
sl@0
|
38 |
SCRIPT_ITEM(CTestWrapper<CAddApp>, KAddApp),
|
sl@0
|
39 |
SCRIPT_ITEM(CTestWrapper<CRemoveApp>, KRemoveApp),
|
sl@0
|
40 |
SCRIPT_ITEM(CTestWrapper<CAppCount>, KAppCount),
|
sl@0
|
41 |
SCRIPT_ITEM(CTestWrapper<CGetApplications>, KGetApplications),
|
sl@0
|
42 |
SCRIPT_ITEM(CTestWrapper<CGetApp>, KGetApp)
|
sl@0
|
43 |
END_SCRIPT_LIST
|
sl@0
|
44 |
|
sl@0
|
45 |
|
sl@0
|
46 |
TDriveUnit sysDrive (RFs::GetSystemDrive());
|
sl@0
|
47 |
TBuf<64> scriptFile (sysDrive.Name());
|
sl@0
|
48 |
scriptFile.Append(_L("\\tcertapps\\scripts\\script1.txt"));
|
sl@0
|
49 |
|
sl@0
|
50 |
_LIT(KLog, "tcertapps.log");
|
sl@0
|
51 |
CScriptSetup::CreateAndRunTestsL(theTestTypes, scriptFile, KLog);
|
sl@0
|
52 |
}
|
sl@0
|
53 |
|
sl@0
|
54 |
GLDEF_C TInt E32Main() // main function called by E32
|
sl@0
|
55 |
{
|
sl@0
|
56 |
RProcess().DataCaging(RProcess::EDataCagingOn);
|
sl@0
|
57 |
__UHEAP_MARK;
|
sl@0
|
58 |
CTrapCleanup* cleanup=CTrapCleanup::New(); // get clean-up stack
|
sl@0
|
59 |
TRAP_IGNORE(DoTests());
|
sl@0
|
60 |
delete cleanup; // destroy clean-up stack
|
sl@0
|
61 |
__UHEAP_MARKEND;
|
sl@0
|
62 |
return 0; // and return
|
sl@0
|
63 |
}
|