1 |
|
|
/* |
2 |
|
|
Teem: Tools to process and visualize scientific data and images . |
3 |
|
|
Copyright (C) 2013, 2012, 2011, 2010, 2009 University of Chicago |
4 |
|
|
Copyright (C) 2008, 2007, 2006, 2005 Gordon Kindlmann |
5 |
|
|
Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah |
6 |
|
|
|
7 |
|
|
This library is free software; you can redistribute it and/or |
8 |
|
|
modify it under the terms of the GNU Lesser General Public License |
9 |
|
|
(LGPL) as published by the Free Software Foundation; either |
10 |
|
|
version 2.1 of the License, or (at your option) any later version. |
11 |
|
|
The terms of redistributing and/or modifying this software also |
12 |
|
|
include exceptions to the LGPL that facilitate static linking. |
13 |
|
|
|
14 |
|
|
This library is distributed in the hope that it will be useful, |
15 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 |
|
|
Lesser General Public License for more details. |
18 |
|
|
|
19 |
|
|
You should have received a copy of the GNU Lesser General Public License |
20 |
|
|
along with this library; if not, write to Free Software Foundation, Inc., |
21 |
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
22 |
|
|
*/ |
23 |
|
|
|
24 |
|
|
#include "teem/ten.h" |
25 |
|
|
|
26 |
|
|
/* |
27 |
|
|
** Tests: |
28 |
|
|
*/ |
29 |
|
|
|
30 |
|
|
int |
31 |
|
|
main(int argc, const char **argv) { |
32 |
|
|
const char *me; |
33 |
|
|
airArray *mop; |
34 |
|
|
|
35 |
|
|
hestParm *hparm; |
36 |
|
|
unsigned int tci; |
37 |
|
|
FILE *out; |
38 |
|
|
int ret; |
39 |
|
|
|
40 |
|
|
AIR_UNUSED(argc); |
41 |
|
2 |
out = stdout; |
42 |
|
1 |
me = argv[0]; |
43 |
|
1 |
mop = airMopNew(); |
44 |
|
1 |
hparm = hestParmNew(); |
45 |
|
1 |
airMopAdd(mop, hparm, (airMopper)hestParmFree, airMopAlways); |
46 |
|
|
|
47 |
|
|
/* (same purpose as Testing/unrrdu/unulist.c) */ |
48 |
|
|
|
49 |
|
1 |
fprintf(out, "%s: ################### BEGIN tend\n", me); |
50 |
|
1 |
ret = unrrduUsage("tend", hparm, tendTitle, tendCmdList); |
51 |
|
1 |
fprintf(out, "%s: ################### END tend (ret=%d)\n", me, ret); |
52 |
|
|
|
53 |
|
|
tci = 0; |
54 |
|
1 |
do { |
55 |
|
40 |
fprintf(out, "%s: ################### BEGIN tend %s\n", |
56 |
|
40 |
me, tendCmdList[tci]->name); |
57 |
|
40 |
ret = tendCmdList[tci]->main(0, NULL, tendCmdList[tci]->name, hparm); |
58 |
|
40 |
fprintf(out, "%s: ################### END tend %s (ret=%d)\n", |
59 |
|
40 |
me, tendCmdList[tci]->name, ret); |
60 |
|
40 |
tci++; |
61 |
✓✓ |
40 |
} while (tendCmdList[tci]); |
62 |
|
|
|
63 |
|
1 |
airMopOkay(mop); |
64 |
|
1 |
return 0; |
65 |
|
|
} |