Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
FWCore
Utilities
interface
TestHelper.h
Go to the documentation of this file.
1
#ifndef Utilities_TestHelper
2
#define Utilities_TestHelper
3
// -*- C++ -*-
4
5
//------------------------------------------------------------
6
//
7
// Function to drive test programs and scripts.
8
//
9
// Write your test program with whatever name you want; the
10
// implementation should be:
11
//
12
// int main(int argc, char* argv[]) { return ptomaine(argc, argv); }
13
//
14
//
15
// Asumming you call your program RunThis, invocation of this program
16
// should look like:
17
//
18
// RunThis <shell name> <command> [args ...]
19
// e.g.
20
// RunThis /bin/bash ls
21
// RunThis /bin/bash cmsRun -p somefile.cfg
22
// RunThis /bin/bash some_script.sh a b c
23
//
24
//
25
// $Id: TestHelper.h,v 1.2 2008/11/11 15:57:35 dsr Exp $
26
//------------------------------------------------------------
27
28
int
ptomaine
(
int
argc
,
char
*
argv
[],
char
**
env
);
29
30
#define RUNTEST() extern "C" char** environ; int main(int argc, char* argv[]) { return ptomaine(argc, argv, environ); }
31
32
#endif
dirstructure.argv
argv
Definition:
dirstructure.py:20
dir2webdir.argc
tuple argc
Definition:
dir2webdir.py:41
web.browse_db.env
tuple env
Definition:
browse_db.py:17
ptomaine
int ptomaine(int argc, char *argv[], char **env)
Definition:
TestHelper.cc:177
Generated for CMSSW Reference Manual by
1.8.5