os/security/cryptoservices/certificateandkeymgmt/tx509/tx509main.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/cryptoservices/certificateandkeymgmt/tx509/tx509main.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,55 @@
     1.4 +/*
     1.5 +* Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of the License "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +* TX509 entry point code
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +#include <e32std.h>
    1.24 +#include "tScriptSetup.h"
    1.25 +#include "ValidateTest.h"
    1.26 +#include "SyntaxTest.h"
    1.27 +#include "CorruptionTest.h"
    1.28 +#include "extensiontest.h"
    1.29 +#include "comparisontest.h"
    1.30 +
    1.31 +LOCAL_C void callSetupAndRunL() // initialize and call example code under cleanup stack
    1.32 +    {
    1.33 +	START_SCRIPT_LIST
    1.34 +	SCRIPT_ITEM(CSyntaxTest, _L8("Syntax")),
    1.35 +	SCRIPT_ITEM(CValidateTest, _L8("Validate")),
    1.36 +	SCRIPT_ITEM(CCorruptionTest, _L8("Corruption")),	
    1.37 +	SCRIPT_ITEM(CExtensionTest, _L8("Extension")),
    1.38 +	SCRIPT_ITEM(CComparisonTest, _L8("Comparison"))
    1.39 +	END_SCRIPT_LIST
    1.40 +	
    1.41 +	TDriveUnit sysDrive (RFs::GetSystemDrive());
    1.42 +	TDriveName driveName(sysDrive.Name());
    1.43 +	TBuf<64> scriptFile(driveName);
    1.44 +	scriptFile.Append(_L("\\tx509\\scripts\\tx509.txt"));
    1.45 +	
    1.46 +	CTestSetup::CreateAndRunTestsL(theTestTypes, scriptFile, _L("tx509.log"));
    1.47 +    }
    1.48 +
    1.49 +GLDEF_C TInt E32Main() // main function called by E32
    1.50 +    {
    1.51 +	__UHEAP_MARK;
    1.52 +	CTrapCleanup* cleanup=CTrapCleanup::New(); // get clean-up stack
    1.53 +	TRAP_IGNORE(callSetupAndRunL());
    1.54 +	delete cleanup; // destroy clean-up stack
    1.55 +	__UHEAP_MARKEND;
    1.56 +	return 0; // and return
    1.57 +    }
    1.58 +