From: John Darrington Date: Tue, 17 Feb 2004 05:28:31 +0000 (+0000) Subject: Added test for T-TEST /GROUPS (Levene values come later). X-Git-Tag: v0.4.0~351 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c59c6fea2ea2d7b0d3aa5881b229421f0c70217;p=pspp-builds.git Added test for T-TEST /GROUPS (Levene values come later). --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 5d4e7cd7..b79cdbe0 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -23,6 +23,7 @@ TESTS = command/aggregate.sh \ command/split-file.sh \ command/t-test-1s.sh \ command/t-test-pairs.sh \ + command/t-test-groups.sh \ command/weight.sh \ bugs/alpha-freq.sh \ bugs/double-frequency.sh \ diff --git a/tests/command/t-test-groups.sh b/tests/command/t-test-groups.sh new file mode 100755 index 00000000..9c5d9108 --- /dev/null +++ b/tests/command/t-test-groups.sh @@ -0,0 +1,112 @@ +#!/bin/sh + +# This program tests that the T-TEST /GROUPS command works + +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 <