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 export STAT_CONFIG_PATH=$top_srcdir/config
47 activity="copy template 1"
48 cp $top_srcdir/tests/bugs/recode-copy-bug-1.stat $TEMPDIR
49 if [ $? -ne 0 ] ; then no_result ; fi
51 activity="copy template 2"
52 cp $top_srcdir/tests/bugs/recode-copy-bug-2.stat $TEMPDIR
53 if [ $? -ne 0 ] ; then no_result ; fi
57 if [ $? -ne 0 ] ; then no_result ; fi
60 activity="run program"
61 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/recode-copy-bug-1.stat
62 if [ $? -ne 0 ] ; then no_result ; fi
65 activity="compare output"
66 diff -b -B -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/recode-copy-bug-1.out
67 if [ $? -ne 0 ] ; then fail ; fi
70 activity="run program"
71 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/recode-copy-bug-2.stat
72 if [ $? -ne 0 ] ; then no_result ; fi
75 activity="compare output"
76 diff -b -B -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/recode-copy-bug-2.out
77 if [ $? -ne 0 ] ; then fail ; fi