sl@0: /* sl@0: * Copyright (c) 1998-2010 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: * TX509MAIN.CPP sl@0: * TX509 entry point code sl@0: * sl@0: */ sl@0: sl@0: sl@0: #include sl@0: #include "tScriptSetup.h" sl@0: #include "ValidateTest.h" sl@0: #include "SyntaxTest.h" sl@0: #include "CorruptionTest.h" sl@0: #include sl@0: sl@0: LOCAL_C void callSetupAndRunL() // initialize and call example code under cleanup stack sl@0: { sl@0: START_SCRIPT_LIST sl@0: SCRIPT_ITEM(CSyntaxTest, _L8("Syntax")), sl@0: SCRIPT_ITEM(CValidateTest, _L8("Validate")), sl@0: SCRIPT_ITEM(CCorruptionTest, _L8("Corruption")) sl@0: END_SCRIPT_LIST sl@0: sl@0: TDriveUnit sysDrive (RFs::GetSystemDrive()); sl@0: TDriveName driveName(sysDrive.Name()); sl@0: TBuf<64> scriptFile (driveName); sl@0: scriptFile.Append(_L("\\twtlscert\\scripts\\twtlscert.txt")); sl@0: sl@0: User::After(9000000); sl@0: CTestSetup::CreateAndRunTestsL(theTestTypes, scriptFile, _L("twtlscert.log")); sl@0: } sl@0: sl@0: GLDEF_C TInt E32Main() // main function called by E32 sl@0: { sl@0: __UHEAP_MARK; sl@0: CTrapCleanup* cleanup=CTrapCleanup::New(); // get clean-up stack sl@0: TRAP_IGNORE(callSetupAndRunL()); sl@0: delete cleanup; // destroy clean-up stack sl@0: __UHEAP_MARKEND; sl@0: return 0; // and return sl@0: }