projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed blank replacement
[pspp]
/
tests
/
command
/
trimmed-mean.sh
diff --git
a/tests/command/trimmed-mean.sh
b/tests/command/trimmed-mean.sh
index 70b79918e0858873ecc4cbd44442d11368df0e0a..0d65db5ef03e81dda3f76b984f8224868fdee23b 100755
(executable)
--- a/
tests/command/trimmed-mean.sh
+++ b/
tests/command/trimmed-mean.sh
@@
-17,6
+17,7
@@
export STAT_CONFIG_PATH
cleanup()
{
cleanup()
{
+ cd /
rm -rf $TEMPDIR
}
rm -rf $TEMPDIR
}
@@
-74,7
+75,8
@@
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare results"
activity="compare results"
-diff -b -B $TEMPDIR/pspp.list - << EOF
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - << EOF
1.1 DATA LIST. Reading free-form data from the command file.
+--------+------+
|Variable|Format|
1.1 DATA LIST. Reading free-form data from the command file.
+--------+------+
|Variable|Format|
@@
-82,7
+84,6
@@
diff -b -B $TEMPDIR/pspp.list - << EOF
|X |F8.0 |
|C |F8.0 |
+--------+------+
|X |F8.0 |
|C |F8.0 |
+--------+------+
-
2.1 EXAMINE. Case Processing Summary
#=#===============================#
# # Cases #
2.1 EXAMINE. Case Processing Summary
#=#===============================#
# # Cases #
@@
-93,7
+94,6
@@
diff -b -B $TEMPDIR/pspp.list - << EOF
#=#==#=======#=#=======#==#=======#
#X#52| 100%|0| 0%|52| 100%#
#=#==#=======#=#=======#==#=======#
#=#==#=======#=#=======#==#=======#
#X#52| 100%|0| 0%|52| 100%#
#=#==#=======#=#=======#==#=======#
-
2.2 EXAMINE. Descriptives
#============================================#=========#==========#
# #Statistic|Std. Error#
2.2 EXAMINE. Descriptives
#============================================#=========#==========#
# #Statistic|Std. Error#
@@
-112,7
+112,6
@@
diff -b -B $TEMPDIR/pspp.list - << EOF
# Skewness # 1.194 | .330 #
# Kurtosis # 15.732 | .650 #
#============================================#=========#==========#
# Skewness # 1.194 | .330 #
# Kurtosis # 15.732 | .650 #
#============================================#=========#==========#
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
EOF
if [ $? -ne 0 ] ; then fail ; fi