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/nrrd.h> |
25 |
|
|
|
26 |
|
|
/* |
27 |
|
|
** Tests: |
28 |
|
|
** nrrdSanity |
29 |
|
|
*/ |
30 |
|
|
|
31 |
|
|
int |
32 |
|
|
main(int argc, char *argv[]) { |
33 |
|
|
int ret; |
34 |
|
|
char *me, *err; |
35 |
|
|
|
36 |
|
|
AIR_UNUSED(argc); |
37 |
|
2 |
me = argv[0]; |
38 |
✗✓ |
1 |
if (!nrrdSanity()) { |
39 |
|
|
err = biffGetDone(NRRD); |
40 |
|
|
fprintf(stderr, "%s: nrrdSanity failed:\n%s", me, err); |
41 |
|
|
free(err); |
42 |
|
|
ret = 1; |
43 |
|
|
} else { |
44 |
|
1 |
fprintf(stderr, "%s: nrrdSanity passed\n", me); |
45 |
|
|
ret = 0; |
46 |
|
|
} |
47 |
|
|
|
48 |
|
1 |
return ret; |
49 |
|
|
} |