Update contrib.
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.
20 #include "t_testhandler.h"
21 #include "t_testsetup.h"
22 #include "tscripttests.h"
23 #include "tactionelement.h"
24 #include "tactionset.h"
25 #include "tactionsetreadpfs.h"
26 #include "tactionsetwritepfs.h"
27 #include "texternpbeparams.h"
29 LOCAL_D void callExampleL() // initialize and call example code under cleanup stack
32 SCRIPT_ITEM(CActionElement,_L8("Element")),
33 SCRIPT_ITEM(CActionSet,_L8("Set")),
34 SCRIPT_ITEM(CActionSetReadPFS,_L8("ReadPFS")),
35 SCRIPT_ITEM(CActionSetWritePFS,_L8("WritePFS")),
36 SCRIPT_ITEM(CExternPbeParams, _L8("ExternPbeParams"))
39 TDriveUnit sysDrive (RFs::GetSystemDrive());
41 TDriveName driveName(sysDrive.Name());
43 TBuf<24> scriptFile (driveName);
44 scriptFile.Append(_L("\\tpbe\\tpbetests_v2.txt"));
46 TBuf<24> logFile (driveName);
47 logFile.Append(_L("\\tpbetestsv2.log"));
49 CTestSetup::CreateAndRunTestsL(theTestTypes, scriptFile, logFile);
52 GLDEF_C TInt E32Main() // main function called by E32
55 CTrapCleanup* cleanup = CTrapCleanup::New(); // get clean-up stack
56 TRAPD(error, callExampleL());
57 __ASSERT_ALWAYS(!error,User::Panic(_L("tpbe"),error));
58 delete cleanup; // destroy clean-up stack