$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
if [ $? -ne 0 ] ; then no_result ; fi
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b -w $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b -w $TEMPDIR/pspp.list - << EOF
1.1 DATA LIST. Reading free-form data from the command file.
+--------+------+
|Variable|Format|
|X |F8.2 |
|Y |A25 |
+--------+------+
-
X Y
--------- -------------------------
87.34 bar
activity="compare output"
perl -pi -e 's/^\s*$//g' pspp.list
-diff -b pspp.list - << EOF |perl -e 's/^\s*$//g'
+diff -b pspp.list - << EOF
1.1 DATA LIST. Reading free-form data from the command file.
+----------------+------+
| Variable |Format|
|longVariablename|F8.0 |
|x |F8.0 |
+----------------+------+
-
longVariablename x
---------------- --------
99.00 2.00
if [ $? -ne 0 ] ; then no_result ; fi
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b -w $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b -w $TEMPDIR/pspp.list - << EOF
1.1 DATA LIST. Reading free-form data from the command file.
+--------+------+
|Variable|Format|
|X |F8.0 |
|Y |F8.0 |
+--------+------+
-
2.1 CROSSTABS. Summary.
#===============#=====================================================#
# # Cases #
#---------------#--------+--------+--------+--------+--------+--------#
#X * Y # 1| 100.0%| 0| 0.0%| 1| 100.0%#
#===============#========#========#========#========#========#========#
-
2.2 CROSSTABS. X by Y [count].
#===============#==============================================================#========#
# # Y | #
# 7.00# .0| .0| .0| .0| .0| .0| .0| .0#
#Total # .0%| .0%| .0%| .0%| 1.0%| .0%| .0%| 1.0%#
#===============#========#========#========#========#========#========#========#========#
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
activity="compare output"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b -w $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b -w $TEMPDIR/pspp.list - << EOF
LOCATION EDITOR SHELL FREQ
-------- -------- -------- --------
1.00 1.00 1.00 2.00
2.00 1.00 2.00 22.00
2.00 2.00 1.00 1.00
2.00 2.00 2.00 3.00
-
-
LOCATION EDITOR SHELL FREQ
-------- -------- -------- --------
1.00 1.00 1.00 2.00
2.00 1.00 2.00 22.00
2.00 2.00 1.00 1.00
2.00 2.00 2.00 3.00
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
if [ $? -ne 0 ] ; then no_result ; fi
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b -w $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b -w $TEMPDIR/pspp.list - << EOF
1.1 DATA LIST. Reading free-form data from the command file.
+--------+------+
|Variable|Format|
|x |F8.0 |
|y |F8.0 |
+--------+------+
-
x y j
-------- -------- --------
5.00 6.00 55.00
if [ $? -ne 0 ] ; then no_result ; fi
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b -w $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b -w $TEMPDIR/pspp.list - << EOF
1.1 DATA LIST. Reading free-form data from the command file.
+--------+------+
|Variable|Format|
|ID |F8.0 |
|ABC |F8.0 |
+--------+------+
-
2.1 DESCRIPTIVES. Valid cases = 6; cases with missing value(s) = 0.
+--------#-+-----+-------+-------+-------+
|Variable#N| Mean|Std Dev|Minimum|Maximum|
activity="compare output"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b -w $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b -w $TEMPDIR/pspp.list - << EOF
R1
--------
7.71
2.64
.88
1.50
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - <<EOF | perl -e 's/^\s*$//g'
+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 #
$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
if [ $? -ne 0 ] ; then no_result ; fi
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b -w $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b -w $TEMPDIR/pspp.list - << EOF
1.1 DATA LIST. Reading free-form data from the command file.
+--------+------+
|Variable|Format|
|SEX |A1 |
|X |F8.0 |
+--------+------+
-
2.1 FREQUENCIES. X:
+-----------+--------+---------+--------+--------+--------+
| | | | | Valid | Cum |
#===========#========#=========#========#========#========#
| Total| 4| 100.0| 100.0| |
+--------------------+---------+--------+--------+--------+
-
+---------------+------+
|N Valid | 4|
| Missing| 0|
|Minimum |12.000|
|Maximum |31.000|
+---------------+------+
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
if [ $? -ne 0 ] ; then no_result ; fi
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b -w $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b -w $TEMPDIR/pspp.list - << EOF
X
--------
6.00
7.00
8.00
9.00
-
X
--------
1.00
activity="compare results"
perl -pi -e 's/^\s*$//g' $TEMPDIR/casefile.out
-diff -b $TEMPDIR/casefile.out - <<EOF |perl -e 's/^\s*$//g'
+diff -b $TEMPDIR/casefile.out - <<EOF
Casefile tests succeeded.
EOF