3 # This program tests ....
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
48 activity="copy template 1"
49 cp $top_srcdir/tests/bugs/recode-copy-bug-1.stat $TEMPDIR
50 if [ $? -ne 0 ] ; then no_result ; fi
52 activity="copy template 2"
53 cp $top_srcdir/tests/bugs/recode-copy-bug-2.stat $TEMPDIR
54 if [ $? -ne 0 ] ; then no_result ; fi
58 if [ $? -ne 0 ] ; then no_result ; fi
61 activity="run program"
62 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/recode-copy-bug-1.stat
63 if [ $? -ne 0 ] ; then no_result ; fi
66 activity="compare output"
67 diff -b -B -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/recode-copy-bug-1.out
68 if [ $? -ne 0 ] ; then fail ; fi
71 activity="run program"
72 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/recode-copy-bug-2.stat
73 if [ $? -ne 0 ] ; then no_result ; fi
76 activity="compare output"
77 diff -b -B -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/recode-copy-bug-2.out
78 if [ $? -ne 0 ] ; then fail ; fi