1 dnl PSPP - a program for statistical analysis.
2 dnl Copyright (C) 2017 Free Software Foundation, Inc.
4 dnl This program is free software: you can redistribute it and/or modify
5 dnl it under the terms of the GNU General Public License as published by
6 dnl the Free Software Foundation, either version 3 of the License, or
7 dnl (at your option) any later version.
9 dnl This program is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 dnl GNU General Public License for more details.
14 dnl You should have received a copy of the GNU General Public License
15 dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
16 dnl AT_BANNER([SPLIT FILE])
18 AT_SETUP([SPLIT FILE - basic test])
19 AT_DATA([split-file.sps], [dnl
20 title 'Test SPLIT FILE utility'.
22 data list notable /X 1 Y 2.
41 AT_CHECK([pspp -o pspp.csv split-file.sps])
42 AT_CHECK([cat pspp.csv], [0], [dnl
43 Title: Test SPLIT FILE utility
76 AT_SETUP([SPLIT FILE - vs procedures])
77 AT_DATA([split-file.sps], [dnl
79 * This test is a compendium of those procedures which might
80 * have problems when run in conjunction with SPLITS.
82 data list list /a b c q g *.
94 * The commented out lines are ones which currently fail.
96 AGGREGATE outfile='foo' /break=c /X=sum(a).
97 AUTORECODE variables = c into d .
98 COUNT e = c (1 2 3 4 5 6 7).
100 CORRELATIONS /VARIABLES = a b.
104 EXPORT outfile='xxx'.
105 FACTOR /VARIABLES = b c d.
109 GRAPH /HISTOGRAM = b .
110 GRAPH /SCATTERPLOT(BIVARIATE) = b with c by e .
111 GRAPH /BAR (GROUPED) = MEAN(b) by c by e.
112 GRAPH /BAR = COUNT BY b.
114 LOGISTIC REGRESSION q WITH b.
116 NPAR TESTS /MCNEMAR q.
120 REGRESSION /VARIABLES = c /DEPENDENT = q.
121 RELIABILITY /VARIABLES = c b d.
122 RENAME VARIABLES (b = bb).
125 SAVE outfile='xx.sav'.
127 T-TEST /GROUP=q(0,1) /VARIABLES=bb.
129 FLIP /VARIABLES = bb, c .
135 AT_CHECK([pspp -O format=csv split-file.sps], [0],[ignore])