sl@0: /* sl@0: * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: */ sl@0: sl@0: #include sl@0: #include sl@0: #include "t_testhandler.h" sl@0: #include "tscriptandhardcoded.h" sl@0: #include "t_certapps_defs.h" sl@0: sl@0: #include "t_certapps_actions.h" sl@0: sl@0: sl@0: LOCAL_D void DoTests() sl@0: { sl@0: START_SCRIPT_LIST sl@0: SCRIPT_ITEM(CTestWrapper, KInitManager), sl@0: SCRIPT_ITEM(CTestWrapper, KDestroyManager), sl@0: SCRIPT_ITEM(CTestWrapper, KClearAllApps), sl@0: SCRIPT_ITEM(CTestWrapper, KAddApp), sl@0: SCRIPT_ITEM(CTestWrapper, KRemoveApp), sl@0: SCRIPT_ITEM(CTestWrapper, KAppCount), sl@0: SCRIPT_ITEM(CTestWrapper, KGetApplications), sl@0: SCRIPT_ITEM(CTestWrapper, KGetApp) sl@0: END_SCRIPT_LIST sl@0: sl@0: sl@0: TDriveUnit sysDrive (RFs::GetSystemDrive()); sl@0: TBuf<64> scriptFile (sysDrive.Name()); sl@0: scriptFile.Append(_L("\\tcertapps\\scripts\\script1.txt")); sl@0: sl@0: _LIT(KLog, "tcertapps.log"); sl@0: CScriptSetup::CreateAndRunTestsL(theTestTypes, scriptFile, KLog); sl@0: } sl@0: sl@0: GLDEF_C TInt E32Main() // main function called by E32 sl@0: { sl@0: RProcess().DataCaging(RProcess::EDataCagingOn); sl@0: __UHEAP_MARK; sl@0: CTrapCleanup* cleanup=CTrapCleanup::New(); // get clean-up stack sl@0: TRAP_IGNORE(DoTests()); sl@0: delete cleanup; // destroy clean-up stack sl@0: __UHEAP_MARKEND; sl@0: return 0; // and return sl@0: }