projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix corrupted .sav files on w32 builds
[pspp-builds.git]
/
tests
/
stats
/
descript-basic.sh
diff --git
a/tests/stats/descript-basic.sh
b/tests/stats/descript-basic.sh
index eaa39fcc9b44ac5ecb1aa4e15686e09cea9a6c5a..82b8cdaa24b2ab1d60641a2a6e18d760f94b7055 100755
(executable)
--- a/
tests/stats/descript-basic.sh
+++ b/
tests/stats/descript-basic.sh
@@
-4,16
+4,28
@@
TEMPDIR=/tmp/pspp-tst-$$
TEMPDIR=/tmp/pspp-tst-$$
-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()
{
+ if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then
+ echo "NOT cleaning $TEMPDIR"
+ return ;
+ fi
+ cd /
rm -rf $TEMPDIR
}
rm -rf $TEMPDIR
}
@@
-49,7
+61,7
@@
activity="create program"
cat > $TEMPDIR/descript.stat <<EOF
title 'Test DESCRIPTIVES procedure'.
cat > $TEMPDIR/descript.stat <<EOF
title 'Test DESCRIPTIVES procedure'.
-data list /
v0 to v
16 1-17.
+data list /
V0 to V
16 1-17.
begin data.
12128989012389023
34128080123890128
begin data.
12128989012389023
34128080123890128
@@
-70,12
+82,13
@@
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
activity="run program"
-$SUPERVISOR $
here/../src/pspp -o raw-ascii
$TEMPDIR/descript.stat
+$SUPERVISOR $
PSPP --testing-mode
$TEMPDIR/descript.stat
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output"
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output"
-diff -B -b $TEMPDIR/pspp.list - <<EOF
-1.1 DATA LIST. Reading 1 record from the command file.
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - <<EOF
+1.1 DATA LIST. Reading 1 record from INLINE.
+--------+------+-------+------+
|Variable|Record|Columns|Format|
#========#======#=======#======#
+--------+------+-------+------+
|Variable|Record|Columns|Format|
#========#======#=======#======#
@@
-97,7
+110,6
@@
diff -B -b $TEMPDIR/pspp.list - <<EOF
|V15 | 1| 16- 16|F1.0 |
|V16 | 1| 17- 17|F1.0 |
+--------+------+-------+------+
|V15 | 1| 16- 16|F1.0 |
|V16 | 1| 17- 17|F1.0 |
+--------+------+-------+------+
-
2.1 DESCRIPTIVES. Valid cases = 10; cases with missing value(s) = 0.
+--------#-------+---------+-----+--------+-------+--------+--------+--------+--------+--------+-----+-------+-------+------+
|Variable#Valid N|Missing N| Mean|S E Mean|Std Dev|Variance|Kurtosis|S E Kurt|Skewness|S E Skew|Range|Minimum|Maximum| Sum |
2.1 DESCRIPTIVES. Valid cases = 10; cases with missing value(s) = 0.
+--------#-------+---------+-----+--------+-------+--------+--------+--------+--------+--------+-----+-------+-------+------+
|Variable#Valid N|Missing N| Mean|S E Mean|Std Dev|Variance|Kurtosis|S E Kurt|Skewness|S E Skew|Range|Minimum|Maximum| Sum |