projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replaced busted sed substitution with functioning perl substitutions
[pspp]
/
tests
/
command
/
list.sh
diff --git
a/tests/command/list.sh
b/tests/command/list.sh
index 3bc92aa67335ea22e186b46a86d989a3602a3185..13801abcbe42d256e2debfed94c8aad7151519ce 100755
(executable)
--- a/
tests/command/list.sh
+++ b/
tests/command/list.sh
@@
-10,11
+10,13
@@
here=`pwd`;
# ensure that top_srcdir is absolute
cd $top_srcdir; top_srcdir=`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
}
@@
-48,7
+50,7
@@
cd $TEMPDIR
activity="create program"
activity="create program"
-cat > $TE
MPDIR/list.stat << foobar
+cat > $TE
STFILE << EOF
*** Single lines.
data list file='$top_srcdir/tests/weighting.data'/AVAR 1-5 BVAR 6-10.
weight by BVAR.
*** Single lines.
data list file='$top_srcdir/tests/weighting.data'/AVAR 1-5 BVAR 6-10.
weight by BVAR.
@@
-62,11
+64,11
@@
data list file='$top_srcdir/tests/list.data' notable /X000 to X126 1-127.
list x000 to x030.
list /cases=from 1 to 25.
list x000 to x030.
list /cases=from 1 to 25.
-foobar
+EOF
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
-$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TE
MPDIR/list.stat
+$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TE
STFILE
if [ $? -ne 0 ] ; then no_result ; fi
if [ $? -ne 0 ] ; then no_result ; fi