projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove obsolete note about Gnulib.
[pspp-builds.git]
/
tests
/
stats
/
descript-basic.sh
diff --git
a/tests/stats/descript-basic.sh
b/tests/stats/descript-basic.sh
index c9e07f2cf5833fa7a5d0454b68533d9cbcd9bea8..0a8dc114a29c2f342c245c0b4ca287aa1270517f 100755
(executable)
--- a/
tests/stats/descript-basic.sh
+++ b/
tests/stats/descript-basic.sh
@@
-4,10
+4,14
@@
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`
STAT_CONFIG_PATH=$top_srcdir/config
export STAT_CONFIG_PATH
STAT_CONFIG_PATH=$top_srcdir/config
export STAT_CONFIG_PATH
@@
-16,7
+20,7
@@
export STAT_CONFIG_PATH
cleanup()
{
cd /
cleanup()
{
cd /
- rm -rf $TEMPDIR
+
#
rm -rf $TEMPDIR
}
}
@@
-72,13
+76,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
-o raw-ascii $TEMPDIR/descript.stat
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output"
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output"
-perl -pi -e
s/^\s*\$//g
$TEMPDIR/pspp.list
-diff
-b $TEMPDIR/pspp.list - <<EOF | perl -e 's/^\s*$//g'
-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|
#========#======#=======#======#
@@
-100,7
+104,6
@@
diff -b $TEMPDIR/pspp.list - <<EOF | perl -e 's/^\s*$//g'
|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 |