X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fbugs%2Fdouble-frequency.sh;h=b6e6a50f9ac347759c4dfaf06c38df0c994a4736;hb=92d30146a06e46dd0074565cdca54b3dd2028c1a;hp=7509efa0f309fb49ea4d9d63202608e136a12ad5;hpb=c1edead52e3b254bc305afd1d647b94bd10ca5d4;p=pspp-builds.git diff --git a/tests/bugs/double-frequency.sh b/tests/bugs/double-frequency.sh index 7509efa0..b6e6a50f 100755 --- a/tests/bugs/double-frequency.sh +++ b/tests/bugs/double-frequency.sh @@ -4,18 +4,25 @@ # Commands existed in a input file TEMPDIR=/tmp/pspp-tst-$$ +TESTFILE=$TEMPDIR/`basename $0`.sps -here=`pwd`; +# ensure that top_builddir are absolute +if [ -z "$top_builddir" ] ; then top_builddir=. ; fi +if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi +top_builddir=`cd $top_builddir; pwd` +PSPP=$top_builddir/src/ui/terminal/pspp # ensure that top_srcdir is absolute -cd $top_srcdir; top_srcdir=`pwd` +top_srcdir=`cd $top_srcdir; pwd` -export STAT_CONFIG_PATH=$top_srcdir/config +STAT_CONFIG_PATH=$top_srcdir/config +export STAT_CONFIG_PATH cleanup() { + cd / rm -rf $TEMPDIR } @@ -66,7 +73,7 @@ if [ $? -ne 0 ] ; then no_result ; fi cd $TEMPDIR activity="run data" -$here/../src/pspp $TEMPDIR/ff.stat +$SUPERVISOR $PSPP $TEMPDIR/ff.stat if [ $? -ne 0 ] ; then fail ; fi