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
/
oneway.sh
diff --git
a/tests/command/oneway.sh
b/tests/command/oneway.sh
index e81d8032910a25b7223853e10561b97e4dda2be6..91a72af6a7556f5277901ca247ee68f8832cee53 100755
(executable)
--- a/
tests/command/oneway.sh
+++ b/
tests/command/oneway.sh
@@
-3,18
+3,25
@@
# This program tests that the ONEWAY anova command works OK
TEMPDIR=/tmp/pspp-tst-$$
# This program tests that the ONEWAY anova 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()
{
- rm -rf $TEMPDIR
+ if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then
+ echo Not cleaning $TEMPDIR;
+ return ;
+ fi
+ cd /
+ rm -rf $TEMPDIR
}
}
@@
-46,8
+53,8
@@
mkdir -p $TEMPDIR
cd $TEMPDIR
activity="create program"
cd $TEMPDIR
activity="create program"
-cat > $TE
MPDIR/out.stat
<<EOF
-DATA LIST LIST /
quality * brand
* .
+cat > $TE
STFILE
<<EOF
+DATA LIST LIST /
QUALITY * BRAND
* .
BEGIN DATA
3 1
2 1
BEGIN DATA
3 1
2 1
@@
-74,18
+81,18
@@
VALUE LABELS /brand 1 'Aspeger' 2 'Bloggs' 3 'Charlies'.
ONEWAY
quality BY brand
/STATISTICS descriptives homogeneity
ONEWAY
quality BY brand
/STATISTICS descriptives homogeneity
- /CONTRAST
S
= -2 1 1
- /CONTRAST
S
= 0 -1 1
+ /CONTRAST = -2 1 1
+ /CONTRAST = 0 -1 1
.
EOF
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
.
EOF
if [ $? -ne 0 ] ; then no_result ; fi
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
if [ $? -ne 0 ] ; then no_result ; fi
-diff $TEMPDIR/pspp.list - << EOF
+diff
-b -B
$TEMPDIR/pspp.list - << EOF
1.1 DATA LIST. Reading free-form data from the command file.
+--------+------+
|Variable|Format|
1.1 DATA LIST. Reading free-form data from the command file.
+--------+------+
|Variable|Format|