projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't append -ansi to AM_CFLAGS for GCC. Using -ansi changes the
[pspp]
/
tests
/
command
/
t-test-pairs.sh
diff --git
a/tests/command/t-test-pairs.sh
b/tests/command/t-test-pairs.sh
index 6f2c42a18059d0640edfcce66b0acb61a5b4899a..b3ef8415b03efd06a5ce76c5dfad37e5949f159d 100755
(executable)
--- a/
tests/command/t-test-pairs.sh
+++ b/
tests/command/t-test-pairs.sh
@@
-3,17
+3,20
@@
# This program tests that the T-TEST /PAIRS command works OK
TEMPDIR=/tmp/pspp-tst-$$
# This program tests that the T-TEST /PAIRS 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 * a * b
*.
+cat > $TE
STFILE
<<EOF
+data list list /
ID * A * B
*.
begin data.
1 2.0 3.0
2 1.0 2.0
begin data.
1 2.0 3.0
2 1.0 2.0
@@
-62,7
+65,7
@@
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
activity="run program"
-$
here/../src/pspp -o raw-ascii $TEMPDIR/out.stat
+$
SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output"
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output"