First public contribution.
2 * Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
16 * TX509 entry point code
22 #include "tScriptSetup.h"
23 #include "ValidateTest.h"
24 #include "SyntaxTest.h"
25 #include "CorruptionTest.h"
26 #include <ecom/ecom.h>
28 LOCAL_C void callSetupAndRunL() // initialize and call example code under cleanup stack
31 SCRIPT_ITEM(CSyntaxTest, _L8("Syntax")),
32 SCRIPT_ITEM(CValidateTest, _L8("Validate")),
33 SCRIPT_ITEM(CCorruptionTest, _L8("Corruption"))
36 TDriveUnit sysDrive (RFs::GetSystemDrive());
37 TDriveName driveName(sysDrive.Name());
38 TBuf<64> scriptFile (driveName);
39 scriptFile.Append(_L("\\twtlscert\\scripts\\twtlscert.txt"));
42 CTestSetup::CreateAndRunTestsL(theTestTypes, scriptFile, _L("twtlscert.log"));
45 GLDEF_C TInt E32Main() // main function called by E32
48 CTrapCleanup* cleanup=CTrapCleanup::New(); // get clean-up stack
49 TRAP_IGNORE(callSetupAndRunL());
50 delete cleanup; // destroy clean-up stack
52 return 0; // and return