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
46 activity="copy template 1"
47 cp $top_srcdir/tests/bugs/recode-copy-bug-1.stat $TEMPDIR
48 if [ $? -ne 0 ] ; then no_result ; fi
50 activity="copy template 2"
51 cp $top_srcdir/tests/bugs/recode-copy-bug-2.stat $TEMPDIR
52 if [ $? -ne 0 ] ; then no_result ; fi
56 if [ $? -ne 0 ] ; then no_result ; fi
59 activity="run program"
60 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/recode-copy-bug-1.stat
61 if [ $? -ne 0 ] ; then no_result ; fi
64 activity="compare output"
65 diff -b -B -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/recode-copy-bug-1.out
66 if [ $? -ne 0 ] ; then fail ; fi
69 activity="run program"
70 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/recode-copy-bug-2.stat
71 if [ $? -ne 0 ] ; then no_result ; fi
74 activity="compare output"
75 diff -b -B -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/recode-copy-bug-2.out
76 if [ $? -ne 0 ] ; then fail ; fi