projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revise.
[pspp]
/
tests
/
test_template
diff --git
a/tests/test_template
b/tests/test_template
index 664549cdf3b9cf1df9c6e04eb756b46e339f767e..a0f70b05405bc8bb7c591dd1f5ed9e11b2a208a7 100755
(executable)
--- a/
tests/test_template
+++ b/
tests/test_template
@@
-3,6
+3,7
@@
# This program tests ....
TEMPDIR=/tmp/pspp-tst-$$
# This program tests ....
TEMPDIR=/tmp/pspp-tst-$$
+TESTFILE=$TEMPDIR/`basename $0`.sps
here=`pwd`;
here=`pwd`;
@@
-14,6
+15,10
@@
export STAT_CONFIG_PATH=$top_srcdir/config
cleanup()
{
cleanup()
{
+ if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then
+ echo "NOT cleaning $TEMPDIR"
+ return ;
+ fi
rm -rf $TEMPDIR
}
rm -rf $TEMPDIR
}
@@
-46,10
+51,15
@@
mkdir -p $TEMPDIR
cd $TEMPDIR
put test set up here ...
cd $TEMPDIR
put test set up here ...
+if [ $? -ne 0 ] ; then no_result ; fi
+
+activity="run program"
+$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE
if [ $? -ne 0 ] ; then no_result ; fi
if [ $? -ne 0 ] ; then no_result ; fi
+
put test here
if [ $? -ne 0 ] ; then fail ; fi
put test here
if [ $? -ne 0 ] ; then fail ; fi