sl@0: /* sl@0: * Copyright (c) 1998-2009 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: * tasnpkcs.cpp sl@0: * sl@0: */ sl@0: sl@0: sl@0: #include sl@0: #include "t_testhandler.h" sl@0: #include "t_testsetup.h" sl@0: #include "tScriptTests.h" sl@0: #include "tactiondecodepkcs5.h" sl@0: #include "tactiontestpkcs8.h" sl@0: sl@0: LOCAL_D void callExampleL() // initialize and call example code under cleanup stack sl@0: { sl@0: START_SCRIPT_LIST sl@0: SCRIPT_ITEM(CActionDecodePKCS5,_L8("pkcs5")), sl@0: SCRIPT_ITEM(CActionTestPKCS8,_L8("testpkcs8")) sl@0: END_SCRIPT_LIST sl@0: sl@0: _LIT(KScript, "c\\tasnpkcs\\scripts\\tasnpkcstests.txt"); sl@0: _LIT(KLog, "tasnpkcs.log"); sl@0: CTestSetup::CreateAndRunTestsL(theTestTypes, KScript, KLog); 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: TRAPD(error, callExampleL()); sl@0: __ASSERT_ALWAYS(!error,User::Panic(_L("tasnpkcs"),error)); sl@0: delete cleanup; // destroy clean-up stack sl@0: __UHEAP_MARKEND; sl@0: return 0; sl@0: }