projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revise.
[pspp]
/
tests
/
command
/
examine-percentiles.sh
diff --git
a/tests/command/examine-percentiles.sh
b/tests/command/examine-percentiles.sh
index b7982d3027b28b0cc2e55d071bffd69d86c3336c..0d23b41feb03334f7f7c6194c9f4eb09ac55d024 100755
(executable)
--- a/
tests/command/examine-percentiles.sh
+++ b/
tests/command/examine-percentiles.sh
@@
-5,17
+5,20
@@
# a few cases
TEMPDIR=/tmp/pspp-tst-$$
# a few cases
TEMPDIR=/tmp/pspp-tst-$$
+TESTFILE=$TEMPDIR/`basename $0`.sps
here=`pwd`;
# ensure that top_srcdir is absolute
cd $top_srcdir; top_srcdir=`pwd`
here=`pwd`;
# ensure that top_srcdir is absolute
cd $top_srcdir; top_srcdir=`pwd`
-export STAT_CONFIG_PATH=$top_srcdir/config
+STAT_CONFIG_PATH=$top_srcdir/config
+export STAT_CONFIG_PATH
cleanup()
{
cleanup()
{
+ cd /
rm -rf $TEMPDIR
}
rm -rf $TEMPDIR
}
@@
-48,8
+51,8
@@
mkdir -p $TEMPDIR
cd $TEMPDIR
activity="create program"
cd $TEMPDIR
activity="create program"
-cat > $TE
MPDIR/out.stat
<<EOF
-DATA LIST LIST /
x
*.
+cat > $TE
STFILE
<<EOF
+DATA LIST LIST /
X
*.
BEGIN DATA.
2.00
8.00
BEGIN DATA.
2.00
8.00
@@
-74,12
+77,12
@@
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 $TE
MPDIR/out.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TE
STFILE
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare results"
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare results"
-diff $TEMPDIR/pspp.list - << EOF
+diff
-b -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|