From 93d02d0e1501d20706bd914e358e114c985fc9a3 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Fri, 22 Oct 2004 08:00:39 +0000 Subject: [PATCH] Added infrastructure for the ONEWAY command. --- tests/Makefile.am | 1 + tests/command/oneway.sh | 71 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100755 tests/command/oneway.sh diff --git a/tests/Makefile.am b/tests/Makefile.am index ac622c1b..a9882067 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -15,6 +15,7 @@ TESTS = \ command/lag.sh \ command/list.sh \ command/loop.sh \ + command/oneway.sh \ command/print.sh \ command/sample.sh \ command/sort.sh \ diff --git a/tests/command/oneway.sh b/tests/command/oneway.sh new file mode 100755 index 00000000..193ab647 --- /dev/null +++ b/tests/command/oneway.sh @@ -0,0 +1,71 @@ +#!/bin/sh + +# This program tests that the ONEWAY anova command works OK + +TEMPDIR=/tmp/pspp-tst-$$ + +here=`pwd`; + +# ensure that top_srcdir is absolute +cd $top_srcdir; top_srcdir=`pwd` + +export STAT_CONFIG_PATH=$top_srcdir/config + + +cleanup() +{ + rm -rf $TEMPDIR +} + + +fail() +{ + echo $activity + echo FAILED + cleanup; + exit 1; +} + + +no_result() +{ + echo $activity + echo NO RESULT; + cleanup; + exit 2; +} + +pass() +{ + cleanup; + exit 0; +} + +mkdir -p $TEMPDIR + +cd $TEMPDIR + +activity="create program" +cat > $TEMPDIR/out.stat <