changeset 2474:116f4de5bf18

Test that programs like mincheader and mincdiff work properly.
author stever <stever>
date Sat, 03 Jan 2009 21:41:28 +0000
parents a175020f8b47
children d975253b0d45
files ChangeLog testdir/Makefile.am testdir/run_test_progs.sh
diffstat 3 files changed, 17 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,14 +1,17 @@
 2009-01-03  Steve M. Robbins  <smr@sumost.ca>
 
+	* testdir/run_test_progs.sh: New.  Test that programs like
+	mincheader and mincdiff work properly.
+
 	* configure.in: Bump to version 2.0.17.
 
 	* libsrc/ParseArgv.c (ParseArgv): Change ARGV_CONSTANT to treat
 	src and dst and pointer to integer, as documented.  Reverts change
 	6.9 of this file.
 
-	* testdir/test_arg_parse.c: Test program for argument parsing
+	* testdir/test_arg_parse.c: New. Test program for argument parsing
 	(ParseArgv.[ch]).
-	* testdir/run_test_arg_parse.sh: Test driver for above.
+	* testdir/run_test_arg_parse.sh: New. Test driver for above.
 	* testdir/Makefile.am (TESTS): Add run_test_arg_parse.sh.
 
 	* libsrc2/Makefile.am: Remove; the only content was SUBDIRS = test.
--- a/testdir/Makefile.am
+++ b/testdir/Makefile.am
@@ -7,7 +7,8 @@
 	run_tests.sh \
 	run_test2.sh \
 	xfmconcat_01.sh \
-	xfmconcat_02.sh
+	xfmconcat_02.sh \
+	run_test_progs.sh
 
 all-local:
 	cd $(srcdir) && chmod +x $(script_tests)
@@ -18,7 +19,8 @@
 	run_test2.sh \
 	xfmconcat_01.sh \
 	xfmconcat_02.sh \
-	mincapi
+	mincapi \
+	run_test_progs.sh
 
 check_PROGRAMS = minc test_mconv minc_types icv icv_range \
 	icv_dim test_speed icv_dim1 icv_fillvalue \
new file mode 100755
--- /dev/null
+++ b/testdir/run_test_progs.sh
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+set -e
+
+mincheader icv.mnc > /dev/null
+mincdiff icv.mnc icv_dim.mnc > /dev/null
+
+