First public contribution.
2 * Copyright (c) 1998-2009 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.
21 #include "t_testhandler.h"
22 #include "t_testsetup.h"
23 #include "tScriptTests.h"
24 #include "tactiondecodepkcs5.h"
25 #include "tactiontestpkcs8.h"
27 LOCAL_D void callExampleL() // initialize and call example code under cleanup stack
30 SCRIPT_ITEM(CActionDecodePKCS5,_L8("pkcs5")),
31 SCRIPT_ITEM(CActionTestPKCS8,_L8("testpkcs8"))
34 _LIT(KScript, "c\\tasnpkcs\\scripts\\tasnpkcstests.txt");
35 _LIT(KLog, "tasnpkcs.log");
36 CTestSetup::CreateAndRunTestsL(theTestTypes, KScript, KLog);
39 GLDEF_C TInt E32Main() // main function called by E32
42 CTrapCleanup* cleanup = CTrapCleanup::New(); // get clean-up stack
43 TRAPD(error, callExampleL());
44 __ASSERT_ALWAYS(!error,User::Panic(_L("tasnpkcs"),error));
45 delete cleanup; // destroy clean-up stack