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/>.
17 AT_BANNER([SPLIT FILE])
19 AT_SETUP([SPLIT FILE - basic test])
20 AT_DATA([split-file.sps], [dnl
21 title 'Test SPLIT FILE utility'.
23 data list notable /X 1 Y 2.
42 AT_CHECK([pspp -o pspp.csv split-file.sps])
43 AT_CHECK([cat pspp.csv], [0], [dnl
77 AT_SETUP([SPLIT FILE - vs procedures])
78 AT_DATA([split-file.sps], [dnl
80 * This test is a compendium of those procedures which might
81 * have problems when run in conjunction with SPLITS.
83 data list list /a b c q g *.
95 * The commented out lines are ones which currently fail.
97 AGGREGATE outfile='foo' /break=c /X=sum(a).
98 AUTORECODE variables = c into d .
99 COUNT e = c (1 2 3 4 5 6 7).
101 CORRELATIONS /VARIABLES = a b.
105 EXPORT outfile='xxx'.
106 FACTOR /VARIABLES = b c d.
110 GRAPH /HISTOGRAM = b .
111 GRAPH /SCATTERPLOT(BIVARIATE) = b with c by e .
112 GRAPH /BAR (GROUPED) = MEAN(b) by c by e.
113 GRAPH /BAR = COUNT BY b.
115 LOGISTIC REGRESSION q WITH b.
117 NPAR TESTS /MCNEMAR q.
121 REGRESSION /VARIABLES = c /DEPENDENT = q.
122 RELIABILITY /VARIABLES = c b d.
123 RENAME VARIABLES (b = bb).
126 SAVE outfile='xx.sav'.
128 T-TEST /GROUP=q(0,1) /VARIABLES=bb.
130 FLIP /VARIABLES = bb, c .
136 AT_CHECK([pspp -O format=csv split-file.sps], [0],[ignore])