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
/
bugs
/
t-test-with-temp.sh
diff --git
a/tests/bugs/t-test-with-temp.sh
b/tests/bugs/t-test-with-temp.sh
index e77ca799ea7ce0d3dca1570b12dd1ae4d0b21b89..65b669e11720e3d4662745b9334431d74ba8a68d 100755
(executable)
--- a/
tests/bugs/t-test-with-temp.sh
+++ b/
tests/bugs/t-test-with-temp.sh
@@
-4,17
+4,20
@@
# works ok with a TEMPORARY transformation
TEMPDIR=/tmp/pspp-tst-$$
# works ok with a TEMPORARY transformation
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
}
@@
-47,7
+50,7
@@
mkdir -p $TEMPDIR
cd $TEMPDIR
activity="create program"
cd $TEMPDIR
activity="create program"
-cat > $TE
MPDIR/out.stat
<<EOF
+cat > $TE
STFILE
<<EOF
data list list /ind * x * .
begin data.
1 3.5
data list list /ind * x * .
begin data.
1 3.5
@@
-64,7
+67,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="copy output"
if [ $? -ne 0 ] ; then no_result ; fi
activity="copy output"
@@
-72,7
+75,7
@@
cp $TEMPDIR/pspp.list $TEMPDIR/first.list
if [ $? -ne 0 ] ; then no_result ; fi
activity="create program 2"
if [ $? -ne 0 ] ; then no_result ; fi
activity="create program 2"
-cat > $TE
MPDIR/out.stat
<<EOF
+cat > $TE
STFILE
<<EOF
data list list /ind * x * .
begin data.
1 3.5
data list list /ind * x * .
begin data.
1 3.5