projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed intialization of coefficients
[pspp]
/
tests
/
command
/
examine-percentiles.sh
diff --git
a/tests/command/examine-percentiles.sh
b/tests/command/examine-percentiles.sh
index 40490448d3e4e2b8948239690466077410dc0f81..a1bb62ef496c6d288870d89584d3423b2ac6d8d7 100755
(executable)
--- a/
tests/command/examine-percentiles.sh
+++ b/
tests/command/examine-percentiles.sh
@@
-7,16
+7,25
@@
TEMPDIR=/tmp/pspp-tst-$$
TESTFILE=$TEMPDIR/`basename $0`.sps
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
# 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
+
+LANG=C
+export LANG
cleanup()
{
cleanup()
{
+ cd /
rm -rf $TEMPDIR
}
rm -rf $TEMPDIR
}
@@
-50,7
+59,7
@@
cd $TEMPDIR
activity="create program"
cat > $TESTFILE <<EOF
activity="create program"
cat > $TESTFILE <<EOF
-DATA LIST LIST /
x
*.
+DATA LIST LIST /
X
*.
BEGIN DATA.
2.00
8.00
BEGIN DATA.
2.00
8.00
@@
-75,19
+84,19
@@
EOF
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
-$SUPERVISOR $
here/../src/pspp
-o raw-ascii $TESTFILE
+$SUPERVISOR $
PSPP
-o raw-ascii $TESTFILE
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare results"
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare results"
-diff -b -B $TEMPDIR/pspp.list - << EOF
-1.1 DATA LIST. Reading free-form data from the command file.
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - << EOF
+1.1 DATA LIST. Reading free-form data from INLINE.
+--------+------+
|Variable|Format|
#========#======#
|X |F8.0 |
+--------+------+
+--------+------+
|Variable|Format|
#========#======#
|X |F8.0 |
+--------+------+
-
2.1 EXAMINE. Case Processing Summary
#=#=============================#
# # Cases #
2.1 EXAMINE. Case Processing Summary
#=#=============================#
# # Cases #
@@
-98,7
+107,6
@@
diff -b -B $TEMPDIR/pspp.list - << EOF
#=#=#=======#=#=======#=#=======#
#X#3| 100%|0| 0%|3| 100%#
#=#=#=======#=#=======#=#=======#
#=#=#=======#=#=======#=#=======#
#X#3| 100%|0| 0%|3| 100%#
#=#=#=======#=#=======#=#=======#
-
2.2 EXAMINE. Percentiles
#================#================================#
# # Percentiles #
2.2 EXAMINE. Percentiles
#================#================================#
# # Percentiles #
@@
-108,7
+116,6
@@
diff -b -B $TEMPDIR/pspp.list - << EOF
#X|HAverage #.40|.80|2.00|5.00|8.00|8.00|8.00#
# |Tukey's Hinges# | |3.50|5.00|6.50| | #
#=#==============#===#===#====#====#====#====#====#
#X|HAverage #.40|.80|2.00|5.00|8.00|8.00|8.00#
# |Tukey's Hinges# | |3.50|5.00|6.50| | #
#=#==============#===#===#====#====#====#====#====#
-
3.1 EXAMINE. Case Processing Summary
#=#=============================#
# # Cases #
3.1 EXAMINE. Case Processing Summary
#=#=============================#
# # Cases #
@@
-119,7
+126,6
@@
diff -b -B $TEMPDIR/pspp.list - << EOF
#=#=#=======#=#=======#=#=======#
#X#3| 100%|0| 0%|3| 100%#
#=#=#=======#=#=======#=#=======#
#=#=#=======#=#=======#=#=======#
#X#3| 100%|0| 0%|3| 100%#
#=#=#=======#=#=======#=#=======#
-
3.2 EXAMINE. Percentiles
#==================#================================#
# # Percentiles #
3.2 EXAMINE. Percentiles
#==================#================================#
# # Percentiles #
@@
-129,7
+135,6
@@
diff -b -B $TEMPDIR/pspp.list - << EOF
#X|Weighted Average#.30|.60|1.50|3.50|5.75|7.10|7.55#
# |Tukey's Hinges # | |3.50|5.00|6.50| | #
#=#================#===#===#====#====#====#====#====#
#X|Weighted Average#.30|.60|1.50|3.50|5.75|7.10|7.55#
# |Tukey's Hinges # | |3.50|5.00|6.50| | #
#=#================#===#===#====#====#====#====#====#
-
4.1 EXAMINE. Case Processing Summary
#=#=============================#
# # Cases #
4.1 EXAMINE. Case Processing Summary
#=#=============================#
# # Cases #
@@
-140,7
+145,6
@@
diff -b -B $TEMPDIR/pspp.list - << EOF
#=#=#=======#=#=======#=#=======#
#X#3| 100%|0| 0%|3| 100%#
#=#=#=======#=#=======#=#=======#
#=#=#=======#=#=======#=#=======#
#X#3| 100%|0| 0%|3| 100%#
#=#=#=======#=#=======#=#=======#
-
4.2 EXAMINE. Percentiles
#================#================================#
# # Percentiles #
4.2 EXAMINE. Percentiles
#================#================================#
# # Percentiles #
@@
-150,7
+154,6
@@
diff -b -B $TEMPDIR/pspp.list - << EOF
#X|Rounded #.00|.00|2.00|5.00|5.00|8.00|8.00#
# |Tukey's Hinges# | |3.50|5.00|6.50| | #
#=#==============#===#===#====#====#====#====#====#
#X|Rounded #.00|.00|2.00|5.00|5.00|8.00|8.00#
# |Tukey's Hinges# | |3.50|5.00|6.50| | #
#=#==============#===#===#====#====#====#====#====#
-
5.1 EXAMINE. Case Processing Summary
#=#=============================#
# # Cases #
5.1 EXAMINE. Case Processing Summary
#=#=============================#
# # Cases #
@@
-161,7
+164,6
@@
diff -b -B $TEMPDIR/pspp.list - << EOF
#=#=#=======#=#=======#=#=======#
#X#3| 100%|0| 0%|3| 100%#
#=#=#=======#=#=======#=#=======#
#=#=#=======#=#=======#=#=======#
#X#3| 100%|0| 0%|3| 100%#
#=#=#=======#=#=======#=#=======#
-
5.2 EXAMINE. Percentiles
#================#==================================#
# # Percentiles #
5.2 EXAMINE. Percentiles
#================#==================================#
# # Percentiles #
@@
-171,7
+173,6
@@
diff -b -B $TEMPDIR/pspp.list - << EOF
#X|Empirical #2.00|2.00|2.00|5.00|8.00|8.00|8.00#
# |Tukey's Hinges# | |3.50|5.00|6.50| | #
#=#==============#====#====#====#====#====#====#====#
#X|Empirical #2.00|2.00|2.00|5.00|8.00|8.00|8.00#
# |Tukey's Hinges# | |3.50|5.00|6.50| | #
#=#==============#====#====#====#====#====#====#====#
-
6.1 EXAMINE. Case Processing Summary
#=#=============================#
# # Cases #
6.1 EXAMINE. Case Processing Summary
#=#=============================#
# # Cases #
@@
-182,7
+183,6
@@
diff -b -B $TEMPDIR/pspp.list - << EOF
#=#=#=======#=#=======#=#=======#
#X#3| 100%|0| 0%|3| 100%#
#=#=#=======#=#=======#=#=======#
#=#=#=======#=#=======#=#=======#
#X#3| 100%|0| 0%|3| 100%#
#=#=#=======#=#=======#=#=======#
-
6.2 EXAMINE. Percentiles
#==========================#==================================#
# # Percentiles #
6.2 EXAMINE. Percentiles
#==========================#==================================#
# # Percentiles #
@@
-192,7
+192,6
@@
diff -b -B $TEMPDIR/pspp.list - << EOF
#X|Empirical with averaging#2.00|2.00|2.00|5.00|8.00|8.00|8.00#
# |Tukey's Hinges # | |3.50|5.00|6.50| | #
#=#========================#====#====#====#====#====#====#====#
#X|Empirical with averaging#2.00|2.00|2.00|5.00|8.00|8.00|8.00#
# |Tukey's Hinges # | |3.50|5.00|6.50| | #
#=#========================#====#====#====#====#====#====#====#
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
EOF
if [ $? -ne 0 ] ; then fail ; fi