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
49 activity="copy template 1"
50 cp $top_srcdir/tests/bugs/recode-copy-bug-1.stat $TEMPDIR
51 if [ $? -ne 0 ] ; then no_result ; fi
53 activity="copy template 2"
54 cp $top_srcdir/tests/bugs/recode-copy-bug-2.stat $TEMPDIR
55 if [ $? -ne 0 ] ; then no_result ; fi
59 if [ $? -ne 0 ] ; then no_result ; fi
62 activity="run program"
63 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/recode-copy-bug-1.stat
64 if [ $? -ne 0 ] ; then no_result ; fi
67 activity="compare output"
68 perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list $top_srcdir/tests/bugs/recode-copy-bug-1.out
69 diff -b -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/recode-copy-bug-1.out
70 if [ $? -ne 0 ] ; then fail ; fi
73 activity="run program"
74 $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/recode-copy-bug-2.stat
75 if [ $? -ne 0 ] ; then no_result ; fi
78 activity="compare output"
79 perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list $top_srcdir/tests/bugs/recode-copy-bug-2.out
80 diff -b -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/recode-copy-bug-2.out
81 if [ $? -ne 0 ] ; then fail ; fi