3 # This program tests the SAMPLE function
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
49 activity="create program"
50 cat > $TEMPDIR/sample.stat <<EOF
69 if [ $? -ne 0 ] ; then no_result ; fi
72 activity="run program"
73 $here/../src/pspp -o raw-ascii --testing-mode $TEMPDIR/sample.stat
74 if [ $? -ne 0 ] ; then no_result ; fi
76 activity="compare results"
77 diff -B -b $TEMPDIR/pspp.list - << EOF
78 1.1 DATA LIST. Reading 1 record from the command file.
79 +--------+------+-------+------+
80 |Variable|Record|Columns|Format|
81 #========#======#=======#======#
83 +--------+------+-------+------+
92 if [ $? -ne 0 ] ; then fail ; fi