1 dnl Copyright (C) 2020 Free Software Foundation
3 dnl This program is free software: you can redistribute it and/or modify
4 dnl it under the terms of the GNU General Public License as published by
5 dnl the Free Software Foundation, either version 3 of the License, or
6 dnl (at your option) any later version.
8 dnl This program is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 dnl GNU General Public License for more details.
13 dnl You should have received a copy of the GNU General Public License
14 dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
16 AT_BANNER([pspp-output])
18 AT_SETUP([pspp-output dir])
19 AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv], [0], [dnl
20 - group "Set" command "Set"
21 - group "Title" command "Title"
22 - text "Page Title" command "Title"
23 - group "Data List" command "Data List"
24 - table "Reading 1 record from INLINE." command "Data List" subtype "Fixed Data Records"
25 - group "Begin Data" command "Begin Data"
26 - group "List" command "List"
27 - table "Data List" command "List"
28 - group "Frequencies" command "Frequencies"
29 - table "Statistics" command "Frequencies"
30 - table "v0" command "Frequencies" subtype "Frequencies"
31 - table "v1" command "Frequencies" subtype "Frequencies"
32 - table "v2" command "Frequencies" subtype "Frequencies"
33 - group "Regression" command "Regression"
34 - table "Model Summary (v2)" command "Regression" subtype "Model Summary"
35 - table "ANOVA (v2)" command "Regression" subtype "ANOVA"
36 - table "Coefficients (v2)" command "Regression" subtype "Coefficients"
40 AT_SETUP([pspp-output --select equal])
41 AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --select=tables],
43 - table "Reading 1 record from INLINE." command "Data List" subtype "Fixed Data Records"
44 - table "Data List" command "List"
45 - table "Statistics" command "Frequencies"
46 - table "v0" command "Frequencies" subtype "Frequencies"
47 - table "v1" command "Frequencies" subtype "Frequencies"
48 - table "v2" command "Frequencies" subtype "Frequencies"
49 - table "Model Summary (v2)" command "Regression" subtype "Model Summary"
50 - table "ANOVA (v2)" command "Regression" subtype "ANOVA"
51 - table "Coefficients (v2)" command "Regression" subtype "Coefficients"
55 AT_SETUP([pspp-output --select unequal])
56 AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --select=^outlineheaders],
58 - text "Page Title" command "Title"
59 - table "Reading 1 record from INLINE." command "Data List" subtype "Fixed Data Records"
60 - table "Data List" command "List"
61 - table "Statistics" command "Frequencies"
62 - table "v0" command "Frequencies" subtype "Frequencies"
63 - table "v1" command "Frequencies" subtype "Frequencies"
64 - table "v2" command "Frequencies" subtype "Frequencies"
65 - table "Model Summary (v2)" command "Regression" subtype "Model Summary"
66 - table "ANOVA (v2)" command "Regression" subtype "ANOVA"
67 - table "Coefficients (v2)" command "Regression" subtype "Coefficients"
71 AT_SETUP([pspp-output --commands equal])
72 AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --commands='reg*'],
74 - group "Regression" command "Regression"
75 - table "Model Summary (v2)" command "Regression" subtype "Model Summary"
76 - table "ANOVA (v2)" command "Regression" subtype "ANOVA"
77 - table "Coefficients (v2)" command "Regression" subtype "Coefficients"
81 AT_SETUP([pspp-output --commands unequal])
82 AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --commands='^reg*'],
84 - group "Set" command "Set"
85 - group "Title" command "Title"
86 - text "Page Title" command "Title"
87 - group "Data List" command "Data List"
88 - table "Reading 1 record from INLINE." command "Data List" subtype "Fixed Data Records"
89 - group "Begin Data" command "Begin Data"
90 - group "List" command "List"
91 - table "Data List" command "List"
92 - group "Frequencies" command "Frequencies"
93 - table "Statistics" command "Frequencies"
94 - table "v0" command "Frequencies" subtype "Frequencies"
95 - table "v1" command "Frequencies" subtype "Frequencies"
96 - table "v2" command "Frequencies" subtype "Frequencies"
100 AT_SETUP([pspp-output --nth-commands])
101 AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --nth-commands=2,4,6],
103 - group "Title" command "Title"
104 - text "Page Title" command "Title"
105 - group "Begin Data" command "Begin Data"
106 - group "Frequencies" command "Frequencies"
107 - table "Statistics" command "Frequencies"
108 - table "v0" command "Frequencies" subtype "Frequencies"
109 - table "v1" command "Frequencies" subtype "Frequencies"
110 - table "v2" command "Frequencies" subtype "Frequencies"
114 AT_SETUP([pspp-output --subtypes equal])
115 AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --subtypes='freq*'],
117 - table "v0" command "Frequencies" subtype "Frequencies"
118 - table "v1" command "Frequencies" subtype "Frequencies"
119 - table "v2" command "Frequencies" subtype "Frequencies"
123 AT_SETUP([pspp-output --subtypes unequal])
124 AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --subtypes='^freq*'],
126 - group "Set" command "Set"
127 - group "Title" command "Title"
128 - text "Page Title" command "Title"
129 - group "Data List" command "Data List"
130 - table "Reading 1 record from INLINE." command "Data List" subtype "Fixed Data Records"
131 - group "Begin Data" command "Begin Data"
132 - group "List" command "List"
133 - table "Data List" command "List"
134 - group "Frequencies" command "Frequencies"
135 - table "Statistics" command "Frequencies"
136 - group "Regression" command "Regression"
137 - table "Model Summary (v2)" command "Regression" subtype "Model Summary"
138 - table "ANOVA (v2)" command "Regression" subtype "ANOVA"
139 - table "Coefficients (v2)" command "Regression" subtype "Coefficients"
143 AT_SETUP([pspp-output --labels equal])
144 AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --labels='v*'],
146 - table "v0" command "Frequencies" subtype "Frequencies"
147 - table "v1" command "Frequencies" subtype "Frequencies"
148 - table "v2" command "Frequencies" subtype "Frequencies"
152 AT_SETUP([pspp-output --labels unequal])
153 AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --labels='^data*'],
155 - group "Set" command "Set"
156 - group "Title" command "Title"
157 - text "Page Title" command "Title"
158 - table "Reading 1 record from INLINE." command "Data List" subtype "Fixed Data Records"
159 - group "Begin Data" command "Begin Data"
160 - group "List" command "List"
161 - group "Frequencies" command "Frequencies"
162 - table "Statistics" command "Frequencies"
163 - table "v0" command "Frequencies" subtype "Frequencies"
164 - table "v1" command "Frequencies" subtype "Frequencies"
165 - table "v2" command "Frequencies" subtype "Frequencies"
166 - group "Regression" command "Regression"
167 - table "Model Summary (v2)" command "Regression" subtype "Model Summary"
168 - table "ANOVA (v2)" command "Regression" subtype "ANOVA"
169 - table "Coefficients (v2)" command "Regression" subtype "Coefficients"
173 AT_SETUP([pspp-output --instances])
174 AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --instances=1],
176 - text "Page Title" command "Title"
177 - table "Reading 1 record from INLINE." command "Data List" subtype "Fixed Data Records"
178 - table "Data List" command "List"
179 - table "Statistics" command "Frequencies"
180 - table "Model Summary (v2)" command "Regression" subtype "Model Summary"
184 AT_SETUP([pspp-output --instances=last])
185 AT_KEYWORDS([--instances last])
186 AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --instances=last],
188 - text "Page Title" command "Title"
189 - table "Reading 1 record from INLINE." command "Data List" subtype "Fixed Data Records"
190 - table "Data List" command "List"
191 - table "v2" command "Frequencies" subtype "Frequencies"
192 - table "Coefficients (v2)" command "Regression" subtype "Coefficients"
196 dnl XXX Currently PSPP doesn't output hidden items so no tests
197 dnl XXX for --show-hidden.
199 AT_SETUP([pspp-output --or])
200 AT_CHECK([pspp-output dir $srcdir/utilities/regress.spv --select=outlineheaders --or --labels='v*'],
202 - group "Set" command "Set"
203 - group "Title" command "Title"
204 - group "Data List" command "Data List"
205 - group "Begin Data" command "Begin Data"
206 - group "List" command "List"
207 - group "Frequencies" command "Frequencies"
208 - table "v0" command "Frequencies" subtype "Frequencies"
209 - table "v1" command "Frequencies" subtype "Frequencies"
210 - table "v2" command "Frequencies" subtype "Frequencies"
211 - group "Regression" command "Regression"
215 AT_SETUP([pspp-output convert])
216 AT_CHECK([pspp-output convert $srcdir/utilities/regress.spv -O format=csv - --subtypes='model*'], [0], [dnl
217 Table: Model Summary (v2)
218 R,R Square,Adjusted R Square,Std. Error of the Estimate