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.
15 * TX509 entry point code
21 #include "tScriptSetup.h"
22 #include "ValidateTest.h"
23 #include "SyntaxTest.h"
24 #include "CorruptionTest.h"
25 #include "extensiontest.h"
26 #include "comparisontest.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")),
34 SCRIPT_ITEM(CExtensionTest, _L8("Extension")),
35 SCRIPT_ITEM(CComparisonTest, _L8("Comparison"))
38 TDriveUnit sysDrive (RFs::GetSystemDrive());
39 TDriveName driveName(sysDrive.Name());
40 TBuf<64> scriptFile(driveName);
41 scriptFile.Append(_L("\\tx509\\scripts\\tx509.txt"));
43 CTestSetup::CreateAndRunTestsL(theTestTypes, scriptFile, _L("tx509.log"));
46 GLDEF_C TInt E32Main() // main function called by E32
49 CTrapCleanup* cleanup=CTrapCleanup::New(); // get clean-up stack
50 TRAP_IGNORE(callSetupAndRunL());
51 delete cleanup; // destroy clean-up stack
53 return 0; // and return