From 3c59c6fea2ea2d7b0d3aa5881b229421f0c70217 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Tue, 17 Feb 2004 05:28:31 +0000 Subject: [PATCH] Added test for T-TEST /GROUPS (Levene values come later). --- tests/Makefile.am | 1 + tests/command/t-test-groups.sh | 112 +++++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100755 tests/command/t-test-groups.sh diff --git a/tests/Makefile.am b/tests/Makefile.am index 5d4e7cd704..b79cdbe025 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 0000000000..9c5d9108df --- /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 <