os/security/cryptoservices/certificateandkeymgmt/twtlscert/twtlscert.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 * TX509MAIN.CPP
    16 * TX509 entry point code
    17 *
    18 */
    19 
    20 
    21 #include <e32std.h>
    22 #include "tScriptSetup.h"
    23 #include "ValidateTest.h"
    24 #include "SyntaxTest.h"
    25 #include "CorruptionTest.h"
    26 #include <ecom/ecom.h>
    27 
    28 LOCAL_C void callSetupAndRunL() // initialize and call example code under cleanup stack
    29     {
    30 	START_SCRIPT_LIST
    31 	SCRIPT_ITEM(CSyntaxTest, _L8("Syntax")),
    32 	SCRIPT_ITEM(CValidateTest, _L8("Validate")),
    33 	SCRIPT_ITEM(CCorruptionTest, _L8("Corruption"))
    34 	END_SCRIPT_LIST
    35 	
    36 	TDriveUnit sysDrive (RFs::GetSystemDrive());
    37 	TDriveName driveName(sysDrive.Name());	
    38 	TBuf<64> scriptFile (driveName);
    39 	scriptFile.Append(_L("\\twtlscert\\scripts\\twtlscert.txt"));
    40 	
    41 	User::After(9000000);
    42 	CTestSetup::CreateAndRunTestsL(theTestTypes, scriptFile, _L("twtlscert.log"));
    43     }
    44 
    45 GLDEF_C TInt E32Main() // main function called by E32
    46     {
    47 	__UHEAP_MARK;
    48 	CTrapCleanup* cleanup=CTrapCleanup::New(); // get clean-up stack
    49 	TRAP_IGNORE(callSetupAndRunL());
    50 	delete cleanup; // destroy clean-up stack
    51 	__UHEAP_MARKEND;
    52 	return 0; // and return
    53     }