3 # This program tests that the T-TEST /TESTVAL command works OK
5 TEMPDIR=/tmp/pspp-tst-$$
9 # ensure that top_srcdir is absolute
10 cd $top_srcdir; top_srcdir=`pwd`
12 export STAT_CONFIG_PATH=$top_srcdir/config
48 activity="create program"
49 cat > $TEMPDIR/out.stat <<EOF
50 data list list /id * abc *.
60 t-test /testval=2.0 /var=abc.
62 if [ $? -ne 0 ] ; then no_result ; fi
65 activity="run program"
66 $here/../src/pspp -o raw-ascii $TEMPDIR/out.stat
67 if [ $? -ne 0 ] ; then no_result ; fi
69 activity="compare output"
70 diff -B -b $TEMPDIR/pspp.list - <<EOF
71 1.1 DATA LIST. Reading free-form data from the command file.
79 2.1 T-TEST. One-Sample Statistics
80 #===#=#====#==============#========#
81 # #N|Mean|Std. Deviation|SE. Mean#
82 #===#=#====#==============#========#
83 #ABC#6|3.00| .84| .342#
84 #===#=#====#==============#========#
86 2.2 T-TEST. One-Sample Test
87 #===#=====================================================#
88 # # Test Value = 2.000000 #
89 # #-----+--+---------------+---------------+------------#
91 # # | | | +-----+------#
92 # # t |df|Sig. (2-tailed)|Mean Difference|Lower| Upper#
93 #===#=====#==#===============#===============#=====#======#
94 #ABC#2.928| 5| .033| 1.000|.1220|1.8780#
95 #===#=====#==#===============#===============#=====#======#
97 if [ $? -ne 0 ] ; then fail ; fi