3 # This program tests ....
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
45 cp $top_srcdir/tests/bugs/recode-copy-bug-1.stat $TEMPDIR
46 cp $top_srcdir/tests/bugs/recode-copy-bug-2.stat $TEMPDIR
50 if [ $? -ne 0 ] ; then no_result ; fi
53 activity="run program"
54 $SUPERVISOR $top_srcdir/src/pspp -o raw-ascii $TEMPDIR/recode-copy-bug-1.stat
55 if [ $? -ne 0 ] ; then no_result ; fi
58 activity="compare output"
59 diff -b -B -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/recode-copy-bug-1.out
61 if [ $? -ne 0 ] ; then fail ; fi
64 activity="run program"
65 $SUPERVISOR $top_srcdir/src/pspp -o raw-ascii $TEMPDIR/recode-copy-bug-2.stat
66 if [ $? -ne 0 ] ; then no_result ; fi
69 activity="compare output"
70 diff -b -B -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/recode-copy-bug-2.out
72 if [ $? -ne 0 ] ; then fail ; fi