3 AT_SETUP([LIST plain cases])
4 AT_DATA([data.txt], [dnl
17 AT_DATA([list.sps], [dnl
18 DATA LIST FILE='data.txt'/avar 1-5 bvar 6-10.
22 AT_CHECK([pspp -o pspp.csv list.sps])
23 AT_CHECK([cat pspp.csv], [0], [dnl
24 Table: Reading 1 record from `data.txt'.
25 Variable,Record,Columns,Format
45 AT_SETUP([LIST numbered cases])
46 AT_DATA([data.txt], [dnl
59 AT_DATA([list.sps], [dnl
60 DATA LIST FILE='data.txt'/avar 1-5 bvar 6-10.
64 AT_CHECK([pspp -o pspp.csv list.sps])
65 AT_CHECK([cat pspp.csv], [0], [dnl
66 Table: Reading 1 record from `data.txt'.
67 Variable,Record,Columns,Format
87 # Checks for a crash when LIST did not include the variables from SPLIT
88 # FILE in the same positions (bug #30684).
89 AT_SETUP([LIST with split file])
90 AT_DATA([data.txt], [dnl
98 AT_DATA([list.sps], [dnl
99 DATA LIST LIST NOTABLE FILE='data.txt'/s (a1) n.
103 AT_CHECK([pspp -o pspp.csv list.sps])
104 AT_CHECK([cat pspp.csv], [0], [dnl
131 AT_SETUP([LIST lots of variables])
132 AT_DATA([data.txt], [dnl
133 767532466348513789073483106409
134 888693089424177542378334186760
135 492611507909187152726427852242
136 819848892023195875879332001491
137 452777898709563729845541516650
138 239961967077732760663525115073
140 AT_DATA([list.sps], [dnl
141 DATA LIST FILE='data.txt' NOTABLE/x01 to x30 1-30.
144 AT_CHECK([pspp -o pspp.csv list.sps])
145 AT_CHECK([cat pspp.csv], [0], [dnl
147 x01,x02,x03,x04,x05,x06,x07,x08,x09,x10,x11,x12,x13,x14,x15,x16,x17,x18,x19,x20,x21,x22,x23,x24,x25,x26,x27,x28,x29,x30
148 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
149 8,8,8,6,9,3,0,8,9,4,2,4,1,7,7,5,4,2,3,7,8,3,3,4,1,8,6,7,6,0
150 4,9,2,6,1,1,5,0,7,9,0,9,1,8,7,1,5,2,7,2,6,4,2,7,8,5,2,2,4,2
151 8,1,9,8,4,8,8,9,2,0,2,3,1,9,5,8,7,5,8,7,9,3,3,2,0,0,1,4,9,1
152 4,5,2,7,7,7,8,9,8,7,0,9,5,6,3,7,2,9,8,4,5,5,4,1,5,1,6,6,5,0
153 2,3,9,9,6,1,9,6,7,0,7,7,7,3,2,7,6,0,6,6,3,5,2,5,1,1,5,0,7,3
157 AT_SETUP([LIST selected cases])
158 AT_DATA([data.txt], [dnl
185 AT_DATA([list.sps], [dnl
186 DATA LIST FILE='data.txt' NOTABLE/x0 to x9 1-10.
187 LIST /CASES=FROM 6 TO 20 BY 5.
189 AT_CHECK([pspp -o pspp.csv list.sps])
190 AT_CHECK([cat pspp.csv], [0], [dnl
192 x0,x1,x2,x3,x4,x5,x6,x7,x8,x9
199 dnl This program tests for a bug which caused a buffer overflow
200 dnl when the list command attempted to write very long strings.
201 AT_SETUP([LIST very long string])
202 AT_DATA([list.sps], [dnl
205 + COMPUTE foo=CONCAT(RPAD('A',1999, 'x'), 'Z').
216 AT_CHECK([pspp -o pspp.csv list.sps])
217 AT_CHECK([cat pspp.csv], [0], [dnl
218 Variable,Description,,Position
221 ,Display Alignment: Left,,
226 Axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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