# BUG #11227
TEMPDIR=/tmp/pspp-tst-$$
+TESTFILE=$TEMPDIR/`basename $0`.sps
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()
{
+ cd /
rm -rf $TEMPDIR
}
cd $TEMPDIR
activity="create program"
-cat > $TEMPDIR/out.stat <<EOF
-data list list /id * indep (a1) dep1 * dep2 *.
+cat > $TESTFILE <<EOF
+data list list /ID * INDEP (a1) DEP1 * DEP2 *.
begin data.
1 'a' 1 3
2 'a' 2 4
activity="run program"
-$SUPERVISOR $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"
-diff -B -b $TEMPDIR/pspp.list - <<EOF
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - <<EOF
1.1 DATA LIST. Reading free-form data from the command file.
+--------+------+
|Variable|Format|
|DEP1 |F8.0 |
|DEP2 |F8.0 |
+--------+------+
-
2.1 T-TEST. Group Statistics
#==========#=#====#==============#========#
# INDEP|N|Mean|Std. Deviation|SE. Mean#
#DEP2 a |5|4.00| .707| .316#
# b |5|2.00| .707| .316#
#==========#=#====#==============#========#
-
2.2 T-TEST. Independent Samples Test
#===============================#==========#===============================================================================#
# # Levene's | t-test for Equality of Means #