3 # This program tests ....
5 TEMPDIR=/tmp/pspp-tst-$$
9 # ensure that top_srcdir is absolute
10 cd $top_srcdir; top_srcdir=`pwd`
12 export STAT_CONFIG_PATH=$top_srcdir/config
48 activity="create program"
49 cat > $TEMPDIR/weight.stat <<EOF
50 data list file='$here/weighting.data'/AVAR 1-5 BVAR 6-10.
53 descriptives AVAR /statistics all /format serial.
54 frequencies AVAR /statistics all /format condensed.
57 if [ $? -ne 0 ] ; then no_result ; fi
60 activity="run program"
61 $here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/weight.stat
62 if [ $? -ne 0 ] ; then no_result ; fi
65 activity="compare results"
66 diff -B -b $TEMPDIR/pspp.list - <<EOF
67 1.1 DATA LIST. Reading 1 record from file "/tmp/pspp/tests/weighting.data".
68 +--------+------+-------+------+
69 |Variable|Record|Columns|Format|
70 #========#======#=======#======#
71 |AVAR | 1| 1- 5|F5.0 |
72 |BVAR | 1| 6- 10|F5.0 |
73 +--------+------+-------+------+
75 2.1(1) DESCRIPTIVES. Valid cases = 730; cases with missing value(s) = 0.
76 +--------#-------+---------+------+--------+-------+--------+--------+--------+
77 |Variable#Valid N|Missing N| Mean |S E Mean|Std Dev|Variance|Kurtosis|S E Kurt|
78 #========#=======#=========#======#========#=======#========#========#========#
79 |AVAR # 730| 0|31.515| .405| 10.937| 119.608|2548.162| .181|
80 +--------#-------+---------+------+--------+-------+--------+--------+--------+
82 2.1(2) DESCRIPTIVES. Valid cases = 730; cases with missing value(s) = 0.
83 +--------#--------+--------+------+-------+-------+---------+
84 |Variable#Skewness|S E Skew| Range|Minimum|Maximum| Sum |
85 #========#========#========#======#=======#=======#=========#
86 |AVAR # 1.345| .090|76.000| 18.000| 94.000|23006.000|
87 +--------#--------+--------+------+-------+-------+---------+
89 3.1 FREQUENCIES. AVAR:
90 +--------+--------+---+---+
92 | Value | Freq |Pct|Pct|
93 #========#========#===#===#
146 +--------+--------+---+---+
164 if [ $? -ne 0 ] ; then fail ; fi