3 # This program tests that tab characters can be used in string input
5 TEMPDIR=/tmp/pspp-tst-$$
6 TESTFILE=$TEMPDIR/`basename $0`.sps
10 # ensure that top_srcdir is absolute
11 cd $top_srcdir; top_srcdir=`pwd`
13 STAT_CONFIG_PATH=$top_srcdir/config
14 export STAT_CONFIG_PATH
51 activity="create program 1"
52 cat > $TEMPDIR/tabs.stat <<EOF
53 data list /X 1-80 (a).
56 if [ $? -ne 0 ] ; then no_result ; fi
58 activity="create program 2"
59 printf "\t1\t12\t123\t1234\t12345\n" >> $TEMPDIR/tabs.stat
60 if [ $? -ne 0 ] ; then no_result ; fi
63 activity="create program 3"
64 cat >> $TEMPDIR/tabs.stat <<EOF
69 if [ $? -ne 0 ] ; then no_result ; fi
72 activity="run program"
73 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/tabs.stat
74 if [ $? -ne 0 ] ; then no_result ; fi
77 perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
78 diff -b $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
79 1.1 DATA LIST. Reading 1 record from INLINE.
80 +--------+------+-------+------+
81 |Variable|Record|Columns|Format|
82 #========#======#=======#======#
84 +--------+------+-------+------+
87 if [ $? -ne 0 ] ; then fail ; fi