projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revise.
[pspp]
/
tests
/
command
/
t-test-1s.sh
diff --git
a/tests/command/t-test-1s.sh
b/tests/command/t-test-1s.sh
index b440d55561374fadfb5e50797256509bebb9d9f6..2e18365c8e3eaa67de064138fb747b83d02eef0b 100755
(executable)
--- a/
tests/command/t-test-1s.sh
+++ b/
tests/command/t-test-1s.sh
@@
-3,17
+3,20
@@
# This program tests that the T-TEST /TESTVAL command works OK
TEMPDIR=/tmp/pspp-tst-$$
# This program tests that the T-TEST /TESTVAL command works OK
TEMPDIR=/tmp/pspp-tst-$$
+TESTFILE=$TEMPDIR/`basename $0`.sps
here=`pwd`;
# ensure that top_srcdir is absolute
cd $top_srcdir; top_srcdir=`pwd`
here=`pwd`;
# ensure that top_srcdir is absolute
cd $top_srcdir; top_srcdir=`pwd`
-export STAT_CONFIG_PATH=$top_srcdir/config
+STAT_CONFIG_PATH=$top_srcdir/config
+export STAT_CONFIG_PATH
cleanup()
{
cleanup()
{
+ cd /
rm -rf $TEMPDIR
}
rm -rf $TEMPDIR
}
@@
-46,8
+49,8
@@
mkdir -p $TEMPDIR
cd $TEMPDIR
activity="create program"
cd $TEMPDIR
activity="create program"
-cat > $TE
MPDIR/out.stat
<<EOF
-data list list /
id * abc
*.
+cat > $TE
STFILE
<<EOF
+data list list /
ID * ABC
*.
begin data.
1 3.5
2 2.0
begin data.
1 3.5
2 2.0
@@
-63,7
+66,7
@@
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
activity="run program"
-$SUPERVISOR $here/../src/pspp -o raw-ascii $TE
MPDIR/out.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TE
STFILE
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output"
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output"