activity="test output"
perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - <<EOF |perl -e 's/^\s*$//g'
+diff -b $TEMPDIR/pspp.list - <<EOF
1.1 DATA LIST. Reading 1 record from the command file.
+--------+------+-------+------+
|Variable|Record|Columns|Format|
|X | 1| 1- 5|A5 |
|Y | 1| 7- 7|F1.0 |
+--------+------+-------+------+
-
X Y A B
----- - -------- --------
lasdj 1 1.00 3.00
lajks 9 2.00 1.00
asdfk 0 3.00 4.00
asdfk 1 3.00 3.00
-
X Y A B Z W
----- - -------- -------- -------- --------
lasdj 1 1.00 3.00 .00 1.00
activity="compare data"
perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - << foobar |perl -e 's/^\s*$//g'
+diff -b $TEMPDIR/pspp.list - << foobar
1.1 DATA LIST. Reading 1 record from the command file.
+--------+------+-------+------+
|Variable|Record|Columns|Format|
|A | 1| 1- 1|F1.0 |
|B | 1| 2- 2|F1.0 |
+--------+------+-------+------+
-
A B
- -
1 2
5 6
7 8
9 0
-
2.1 DATA LIST. Reading 1 record from the command file.
+--------+------+-------+------+
|Variable|Record|Columns|Format|
|A | 1| 1- 1|F1.0 |
|B | 1| 2- 2|F1.0 |
+--------+------+-------+------+
-
A B
- -
0 9
activity="compare results"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - <<EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - <<EOF
1.1 DATA LIST. Reading 1 record from the command file.
+--------+------+-------+------+
|Variable|Record|Columns|Format|
|V1 | 1| 1- 2|A2 |
|V2 | 1| 3- 4|A2 |
+--------+------+-------+------+
-
V1 V2 C
-- -- --------
12 34 .00
if [ $? -ne 0 ] ; then fail ; fi
activity="compare output"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+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|
|C |F8.0 |
|D |F8.0 |
+--------+------+
-
A B C D
-------- -------- -------- --------
1.00 23.00 45.00 2.03
2.00 22.00 34.00 23.00
3.00 34.00 34.00 34.00
-
A B C D
-------- -------- -------- --------
. 1.00 2.00 3.00
.00 1.00 . .
. . . .
2.00 3.00 4.00 5.00
-
A B C D
-------- -------- -------- --------
1.00 2.00 3.00 4.00
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare results"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - << EOF
1.1 EXAMINE. Case Processing Summary
#==#===============================#
# # Cases #
#==#==#=======#=#=======#==#=======#
#V1#23| 100%|0| 0%|23| 100%#
#==#==#=======#=#=======#==#=======#
-
1.2 EXAMINE. Extreme Values
#==========#===========#=====#
# #Case Number|Value#
# 5# 3| 3.00#
# 6# 5| 4.00#
#==========#===========#=====#
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
activity="compare results"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+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|
#========#======#
|X |F8.0 |
+--------+------+
-
2.1 EXAMINE. Case Processing Summary
#=#=============================#
# # Cases #
#=#=#=======#=#=======#=#=======#
#X#3| 100%|0| 0%|3| 100%#
#=#=#=======#=#=======#=#=======#
-
2.2 EXAMINE. Percentiles
#================#================================#
# # Percentiles #
#X|HAverage #.40|.80|2.00|5.00|8.00|8.00|8.00#
# |Tukey's Hinges# | |3.50|5.00|6.50| | #
#=#==============#===#===#====#====#====#====#====#
-
3.1 EXAMINE. Case Processing Summary
#=#=============================#
# # Cases #
#=#=#=======#=#=======#=#=======#
#X#3| 100%|0| 0%|3| 100%#
#=#=#=======#=#=======#=#=======#
-
3.2 EXAMINE. Percentiles
#==================#================================#
# # Percentiles #
#X|Weighted Average#.30|.60|1.50|3.50|5.75|7.10|7.55#
# |Tukey's Hinges # | |3.50|5.00|6.50| | #
#=#================#===#===#====#====#====#====#====#
-
4.1 EXAMINE. Case Processing Summary
#=#=============================#
# # Cases #
#=#=#=======#=#=======#=#=======#
#X#3| 100%|0| 0%|3| 100%#
#=#=#=======#=#=======#=#=======#
-
4.2 EXAMINE. Percentiles
#================#================================#
# # Percentiles #
#X|Rounded #.00|.00|2.00|5.00|5.00|8.00|8.00#
# |Tukey's Hinges# | |3.50|5.00|6.50| | #
#=#==============#===#===#====#====#====#====#====#
-
5.1 EXAMINE. Case Processing Summary
#=#=============================#
# # Cases #
#=#=#=======#=#=======#=#=======#
#X#3| 100%|0| 0%|3| 100%#
#=#=#=======#=#=======#=#=======#
-
5.2 EXAMINE. Percentiles
#================#==================================#
# # Percentiles #
#X|Empirical #2.00|2.00|2.00|5.00|8.00|8.00|8.00#
# |Tukey's Hinges# | |3.50|5.00|6.50| | #
#=#==============#====#====#====#====#====#====#====#
-
6.1 EXAMINE. Case Processing Summary
#=#=============================#
# # Cases #
#=#=#=======#=#=======#=#=======#
#X#3| 100%|0| 0%|3| 100%#
#=#=#=======#=#=======#=#=======#
-
6.2 EXAMINE. Percentiles
#==========================#==================================#
# # Percentiles #
#X|Empirical with averaging#2.00|2.00|2.00|5.00|8.00|8.00|8.00#
# |Tukey's Hinges # | |3.50|5.00|6.50| | #
#=#========================#====#====#====#====#====#====#====#
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
# NOTE: In the following data: Only the extreme values have been checked
# The descriptives have been blindly pasted.
activity="compare results"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+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|
|W |F8.0 |
|BRAND |F8.0 |
+--------+------+
-
Case# QUALITY W BRAND
----- -------- -------- --------
1 3.00 1.00 1.00
14 5.00 3.00 3.00
15 3.00 1.00 3.00
16 6.00 1.00 3.00
-
2.1 EXAMINE. Case Processing Summary
#===============#===============================#
# # Cases #
#===============#==#=======#=#=======#==#=======#
#Breaking Strain#24| 100%|0| 0%|24| 100%#
#===============#==#=======#=#=======#==#=======#
-
2.2 EXAMINE. Extreme Values
#=======================#===========#=====#
# #Case Number|Value#
# 2# 3| 1.00#
# 3# 3| 1.00#
#=======================#===========#=====#
-
2.3 EXAMINE. Descriptives
#==========================================================#=========#==========#
# #Statistic|Std. Error#
# Skewness # .059 | .472 #
# Kurtosis # -.358 | .918 #
#==========================================================#=========#==========#
-
2.4 EXAMINE. Case Processing Summary
#===========================#=============================#
# # Cases #
# Bloggs #8| 100%|0| 0%|8| 100%#
# Charlies #8| 100%|0| 0%|8| 100%#
#===========================#=#=======#=#=======#=#=======#
-
2.5 EXAMINE. Extreme Values
#===================================#===========#=====#
# Manufacturer #Case Number|Value#
# 2# 13| 4.00#
# 3# 13| 4.00#
#===================================#===========#=====#
-
2.6 EXAMINE. Descriptives
#======================================================================#=========#==========#
# Manufacturer #Statistic|Std. Error#
# Skewness # .304 | .752 #
# Kurtosis # .146 | 1.481 #
#======================================================================#=========#==========#
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
activity="compare results"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.filtered - <<EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.filtered
+diff -b $TEMPDIR/pspp.filtered - <<EOF
1.1 DATA LIST. Reading 1 record from the command file.
+--------+------+-------+------+
|Variable|Record|Columns|Format|
|X | 1| 1- 1|F1.0 |
|Y | 1| 2- 2|F1.0 |
+--------+------+-------+------+
-
Documents in the active file:
-
First line of a document
This is the second very long line of a document in an attempt to overflow the
Note that the last line should end with a period: .
-
File label:
This is a test file label
-
Documents in the active file:
-
First line of a document
This is the second very long line of a document in an attempt to overflow the
Note that the last line should end with a period: .
-
File label:
This is a test file label
-
Documents in the active file:
-
First line of a document
This is the second very long line of a document in an attempt to overflow the
Note that the last line should end with a period: .
-
There should be another document now.
-
Documents in the active file:
-
First line of a document
This is the second very long line of a document in an attempt to overflow the
Note that the last line should end with a period: .
-
There should be another document now.
-
File label:
This is a test file label
EOF
activity="check results"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - << EOF
X FILTER_$
-- --------
1 1.00
5 1.00
7 1.00
9 1.00
-
X FILTER_$
-- --------
1 1.00
8 .00
9 1.00
10 .00
-
X FILTER_$
-- --------
2 1.00
6 1.00
8 1.00
10 1.00
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
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'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - << EOF
1.1 DATA LIST. Reading 1 record from the command file.
+--------+------+-------+------+
|Variable|Record|Columns|Format|
|C | 1| 6- 7|F2.0 |
|D | 1| 8- 9|F2.0 |
+--------+------+-------+------+
-
N A B C D
- -- -- -- --
v 1 2 3 4
x 11 12 13 14
y 16 17 18 19
z 21 22 23 24
-
CASE_LBL V W X Y Z
-------- -------- -------- -------- -------- --------
A 1.00 6.00 11.00 16.00 21.00
B 2.00 7.00 12.00 17.00 22.00
C 3.00 8.00 13.00 18.00 23.00
D 4.00 9.00 14.00 19.00 24.00
-
CASE_LBL A B C D
-------- -------- -------- -------- --------
V 1.00 2.00 3.00 4.00
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'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - << EOF
X Y
-------- --------
1.00 2.00
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare result"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - <<EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - <<EOF
1.1 DATA LIST. Reading 1 record from the command file.
+--------+------+-------+------+
|Variable|Record|Columns|Format|
#========#======#=======#======#
|W | 1| 1- 1|F1.0 |
+--------+------+-------+------+
-
W X Y Z
- -------- -------- --------
1 . . .
activity="compare results"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - <<EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - <<EOF
1.1 DATA LIST. Reading 1 record from file $top_srcdir/tests/weighting.data.
+--------+------+-------+------+
|Variable|Record|Columns|Format|
|AVAR | 1| 1- 5|F5.0 |
|BVAR | 1| 6- 10|F5.0 |
+--------+------+-------+------+
-
AVAR BVAR
----- -----
18 1
79 1
80 1
94 1
-
Case# AVAR BVAR
----- ----- -----
1 18 1
50 79 1
51 80 1
52 94 1
-
X000 X001 X002 X003 X004 X005 X006 X007 X008 X009 X010 X011 X012 X013 X014 X015 X016 X017 X018 X019 X020 X021 X022 X023 X024 X025 X026 X027 X028 X029 X030
---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
7 6 7 5 3 2 4 6 6 3 4 8 5 1 3 7 8 9 0 7 3 4 8 3 1 0 6 4 0 9 1
6 9 4 9 9 7 3 7 9 7 9 9 0 9 5 6 2 9 1 0 7 2 1 5 8 1 2 3 8 8 7
1 3 9 6 2 8 5 9 9 6 5 3 5 4 8 9 4 4 0 8 1 6 1 2 4 7 0 0 6 8 2
0 7 0 0 4 8 9 5 2 4 3 5 8 2 0 8 3 5 8 6 9 7 3 4 9 4 5 0 0 3 6
-
X000 X001 X002 X003 X004 X005 X006 X007 X008 X009 X010 X011 X012 X013 X014 X015 X016 X017 X018 X019 X020 X021 X022 X023 X024 X025 X026 X027 X028 X029 X030 X031 X032 X033 X034 X035 X036 X037 X038 X039 X040 X041 X042 X043 X044 X045 X046 X047 X048 X049 X050 X051 X052 X053 X054 X055 X056 X057 X058 X059 X060 X061 X062 X063 X064 X065 X066 X067 X068 X069 X070 X071 X072 X073 X074 X075 X076 X077 X078 X079 X080 X081 X082 X083 X084 X085 X086 X087 X088 X089 X090 X091 X092 X093 X094 X095 X096 X097 X098 X099 X100 X101 X102 X103 X104 X105 X106 X107 X108 X109 X110 X111 X112 X113 X114 X115 X116 X117 X118 X119 X120 X121 X122 X123 X124 X125 X126
---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
7 6 7 5 3 2 4 6 6 3 4 8 5 1 3 7 8 9 0 7 3 4 8 3 1 0 6 4 0 9 1 7 5 8 5 9 2 9 5 8 4 2 8 1 5 2 9 5 1 1 3 7 5 3 2 6 5 9 4 1 8 7 5 2 3 3 8 1 5 7 6 7 5 3 2 4 6 6 3 4 8 5 1 3 7 8 9 0 7 3 4 8 3 1 0 6 4 0 9 1 7 5 8 5 9 2 9 5 8 4 2 8 1 5 2 9 5 1 1 3 7 5 3 2 6 5 8
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'
+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|
|X |F8.0 |
|Yabbadabbadoo |F8.0 |
+--------------+------+
-
AlphaBetaGamma B X Yabbadabbadoo
-------------- -------- -------- -------------
2.00 3.00 4.00 5.00
-
2.1 CROSSTABS. Summary.
#===============#=====================================================#
# # Cases #
#X * # 1| 100.0%| 0| 0.0%| 1| 100.0%#
#Yabbadabbadoo # | | | | | #
#===============#========#========#========#========#========#========#
-
2.2 CROSSTABS. X by Yabbadabbadoo [count].
#===============#==============================================================#========#
# # Yabbadabbadoo | #
# 7.00# .0| .0| .0| .0| .0| .0| .0| .0#
#Total # .0%| .0%| .0%| .0%| 1.0%| .0%| .0%| 1.0%#
#===============#========#========#========#========#========#========#========#========#
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
activity="compare stdout"
perl -pi -e 's/^\s*$//g' $TEMPDIR/stdout
-diff -b $TEMPDIR/stdout - <<EOF |perl -e 's/^\s*$//g'
+diff -b $TEMPDIR/stdout - <<EOF
$TEMPDIR/loop.stat:10: warning: BREAK: BREAK not enclosed in DO IF structure.
EOF
if [ $? -ne 0 ] ; then fail ; fi
activity="compare results"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - <<EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - <<EOF
1.1 DATA LIST. Reading 1 record from the command file.
+----------+------+-------+------+
| Variable |Record|Columns|Format|
activity="check $name output"
perl -pi -e 's/^\s*$//g' pspp.list
-diff -b -w - pspp.list <<EOF |perl -e 's/^\s*$//g'
+diff -b -w - pspp.list <<EOF
A B C D E F
- - - - - -
0 a A 1 b N
activity="compare output"
perl -pi -e 's/^\s*$//g' pspp.list
-diff -b -w pspp.list - <<EOF |perl -e 's/^\s*$//g'
+diff -b -w pspp.list - <<EOF
1.1 DISPLAY.
+--------+-------------------------------------------+--------+
|Variable|Description |Position|
|COUNT |number of countries | 4|
| |Format: F8.2 | |
+--------+-------------------------------------------+--------+
-
CONT SIZE POP COUNT
-------------------------------- -------- -------- --------
Asia 44579000 3.67E+09 44.00
Antarctica 13209000 .00 .00
Europe 9938000 7.32E+08 46.00
Australia/Oceania 7687000 31000000 14.00
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
if [ $? -ne 0 ] ; then no_result ; fi
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+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|
|QUALITY |F8.0 |
|BRAND |F8.0 |
+--------+------+
-
2.1 ONEWAY. Descriptives
#===============#========#==#====#==============#==========#=======================#=======#=======#
# | # | | | | 95% Confidence | | #
# |Charlies# 5|5.00| 1.58| .71| 3.04| 6.96| 3.00| 7.00#
# |Total #15|3.47| 1.77| .46| 2.49| 4.45| 1.00| 7.00#
#===============#========#==#====#==============#==========#===========#===========#=======#=======#
-
2.2 ONEWAY. Test of Homogeneity of Variances
#===============#================#===#===#============#
# #Levene Statistic|df1|df2|Significance#
#===============#================#===#===#============#
#Breaking Strain# .092| 2| 12| .913#
#===============#================#===#===#============#
-
2.3 ONEWAY. ANOVA
#==============================#==============#==#===========#=====#============#
# #Sum of Squares|df|Mean Square| F |Significance#
# |Within Groups # 23.60|12| 1.967| | #
# |Total # 43.73|14| | | #
#===============#==============#==============#==#===========#=====#============#
-
2.4 ONEWAY. Contrast Coefficients
#==========#=======================#
# # Manufacturer #
#Contrast|1# -2| 1| 1#
# |2# 0| -1| 1#
#========#=#=======#======#========#
-
2.5 ONEWAY. Contrast Tests
#===============================================#=================#==========#=====#=====#===============#
# Contrast#Value of Contrast|Std. Error| t | df |Sig. (2-tailed)#
# |Does not assume equal | 1 # 3.80| 1.483|2.562|8.740| .031#
# | | 2 # 1.80| .917|1.964|7.720| .086#
#===============#======================#========#=================#==========#=====#=====#===============#
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
activity="compare output"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - << EOF
1.1 DATA LIST. Reading free-form data from file $TEMPDIR/data-list.data.
+--------+------+
|Variable|Format|
|C |F8.0 |
|D |F8.0 |
+--------+------+
-
2.1 PRINT. Writing 1 record(s) to file foo.
+--------+------+-------+------+
|Variable|Record|Columns|Format|
|C | 1| 19- 28|N10.0 |
|"/" | 1| 29- 29|A1 |
+--------+------+-------+------+
-
-
A B C D
-------- -------- -------- --------
. 2.00 3.00 4.00
-
. 6.00 7.00 8.00
-
. 10.00 11.00 12.00
-
3.1 DATA LIST. Reading free-form data from file $TEMPDIR/data-list.data.
+--------+------+
|Variable|Format|
|C |F8.0 |
|D |F8.0 |
+--------+------+
-
4.1 PRINT. Writing 1 record(s) to the listing file.
+--------+------+-------+------+
|Variable|Record|Columns|Format|
|D | 1| 28- 35|F8.2 |
+--------+------+-------+------+
. 2.00 3.00 4.00
-
A B C D
-------- -------- -------- --------
. 2.00 3.00 4.00
10.00 11.00 . .
12.00 . . .
12.00 . . .
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
if [ $? -eq 0 ] ; then fail ; fi
activity="compare output"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - <<EOF | perl -e 's/^\s*$//g'
+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|
|brakeFluid|F8.0 |
|y |F8.0 |
+----------+------+
-
brakeFluid y
---------- --------
1.00 3.00
2.00 3.00
3.00 3.00
4.00 3.00
-
applecarts y
---------- --------
1.00 3.00
2.00 3.00
3.00 3.00
4.00 3.00
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
activity="compare head"
perl -pi -e 's/^\s*$//g' $TEMPDIR/head
-diff -b $TEMPDIR/head - << EOF |perl -e 's/^\s*$//g'
+diff -b $TEMPDIR/head - << EOF
A
--
EOF
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare results"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - <<EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - <<EOF
Variable Value Label
X 1
-
X Y
- -
1 2
1 9
1 5
1 4
-
Variable Value Label
X 2
-
X Y
- -
2 7
activity="compare output"
perl -pi -e 's/^\s*$//g' $TEMPDIR/out-filtered
-diff -b -w $TEMPDIR/out-filtered - << EOF |perl -e 's/^\s*$//g'
+diff -b -w $TEMPDIR/out-filtered - << EOF
1.1 DATA LIST. Reading free-form data from the command file.
+--------+------+
|Variable|Format|
|x |F8.0 |
|name |A10 |
+--------+------+
-
2.1 SYSFILE INFO.
File: pro.sav
Label: No label.
Type: System File.
Weight: Not weighted.
Mode: Compression off.
-
+--------+-------------+---+
|Variable|Description |Pos|
| | |iti|
+--------+-------------+---+
|name |Format: A10 | 2|
+--------+-------------+---+
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
if [ $? -eq 0 ] ; then fail ; fi
activity="compare output"
-perl -pi -e 's/^\s*\$//g' $TEMPDIR/pspp.list
-diff -b -w $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b -w $TEMPDIR/pspp.list - << EOF
X VARIABLE VARIAB_A VARIAB_B
-------- -------- -------- --------
1.00 1.00 1.00 2.00
2.00 1.00 2.00 22.00
2.00 2.00 1.00 1.00
2.00 2.00 2.00 3.00
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output"
-perl -pi -e 's/^\s*\$//g' $TEMPDIR/pspp.list
-diff -b -w $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b -w $TEMPDIR/pspp.list - << EOF
variable001 variable002 variable003 variable004
----------- ----------- ----------- -----------
1.00 1.00 1.00 2.00
2.00 1.00 2.00 22.00
2.00 2.00 1.00 1.00
2.00 2.00 2.00 3.00
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
activity="compare output"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - <<EOF | perl -e 's/^\s*$//g'
+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|
|INDEP |F8.0 |
|DEP |F8.0 |
+--------+------+
-
2.1 T-TEST. Group Statistics
#===========#==#====#==============#========#
# INDEP | N|Mean|Std. Deviation|SE. Mean#
#DEP < 1.514|11|8.00| 2.864| .863#
# >=1.514|11|9.00| 3.821| 1.152#
#===========#==#====#==============#========#
-
2.2 T-TEST. Independent Samples Test
#==============================#=========#===============================================================================#
# #Levene's | t-test for Equality of Means #
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'
+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|
|ID |F8.0 |
|ABC |F8.0 |
+--------+------+
-
2.1 T-TEST. One-Sample Statistics
#===#=#====#==============#========#
# #N|Mean|Std. Deviation|SE. Mean#
#===#=#====#==============#========#
#ABC#6|3.00| .84| .342#
#===#=#====#==============#========#
-
2.2 T-TEST. One-Sample Test
#===#=====================================================#
# # Test Value = 2.000000 #
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'
+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|
|A |F8.0 |
|B |F8.0 |
+--------+------+
-
2.1 T-TEST. Paired Sample Statistics
#========#====#=#==============#========#
# #Mean|N|Std. Deviation|SE. Mean#
#Pair 0 A#2.00|5| .707| .316#
# B#4.00|5| 1.541| .689#
#========#====#=#==============#========#
-
2.2 T-TEST. Paired Samples Correlations
#======#=====#=#===========#====#
# | #N|Correlation|Sig.#
#======#=====#=#===========#====#
#Pair 0|A & B#5| .918|.028#
#======#=====#=#===========#====#
-
2.3 T-TEST. Paired Samples Test
#===========#=====================================================#======#==#===============#
# # Paired Differences | | | #
activity="compare results"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+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|
|X |F8.0 |
|C |F8.0 |
+--------+------+
-
2.1 EXAMINE. Case Processing Summary
#=#===============================#
# # Cases #
#=#==#=======#=#=======#==#=======#
#X#52| 100%|0| 0%|52| 100%#
#=#==#=======#=#=======#==#=======#
-
2.2 EXAMINE. Descriptives
#============================================#=========#==========#
# #Statistic|Std. Error#
# Skewness # 1.194 | .330 #
# Kurtosis # 15.732 | .650 #
#============================================#=========#==========#
-
EOF
if [ $? -ne 0 ] ; then fail ; fi
activity="check results"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - << EOF
X
--
1
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare results"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b $TEMPDIR/pspp.list - <<EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - <<EOF
1.1 DATA LIST. Reading 1 record from file $top_srcdir/tests/weighting.data.
+--------+------+-------+------+
|Variable|Record|Columns|Format|
|AVAR | 1| 1- 5|F5.0 |
|BVAR | 1| 6- 10|F5.0 |
+--------+------+-------+------+
-
2.1 DESCRIPTIVES. Valid cases = 730; 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 |
#========#=======#=========#======#========#=======#========#========#========#========#========#======#=======#=======#=========#
|AVAR # 730| 0|31.515| .405| 10.937| 119.608| 2.411| .181| 1.345| .090|76.000| 18.000| 94.000|23006.000|
+--------#-------+---------+------+--------+-------+--------+--------+--------+--------+--------+------+-------+-------+---------+
-
3.1 FREQUENCIES. AVAR:
+--------+--------+---+---+
| | | |Cum|
| 80| 1| 0|100|
| 94| 1| 0|100|
+--------+--------+---+---+
-
+-----------------+---------+
|N Valid | 730|
| Missing| 0|