3 m4_define([LOOP_DATA], [dnl
4 data list notable /x 1 y 2 z 3.
13 AT_SETUP([LOOP with index])
14 AT_DATA([loop.sps], [dnl
22 AT_CHECK([pspp -o pspp.csv loop.sps])
23 AT_CHECK([cat pspp.csv], [0], [dnl
48 AT_SETUP([LOOP with IF condition])
49 AT_DATA([loop.sps], [dnl
59 AT_CHECK([pspp -o pspp.csv loop.sps])
60 AT_CHECK([cat pspp.csv], [0], [dnl
85 AT_SETUP([LOOP with END IF condition])
86 AT_DATA([loop.sps], [dnl
96 AT_CHECK([pspp -o pspp.csv loop.sps])
97 AT_CHECK([cat pspp.csv], [0], [dnl
124 AT_SETUP([LOOP with index and IF based on index])
125 AT_DATA([loop.sps], [dnl
127 loop #m=x to y by z if #m < 4.
133 AT_CHECK([pspp -o pspp.csv loop.sps])
134 AT_CHECK([cat pspp.csv], [0], [dnl
153 AT_SETUP([LOOP with index and END IF based on index])
154 AT_DATA([loop.sps], [dnl
162 AT_CHECK([pspp -o pspp.csv loop.sps])
163 AT_CHECK([cat pspp.csv], [0], [dnl
186 AT_SETUP([LOOP with index and IF and END IF based on index])
187 AT_DATA([loop.sps], [dnl
189 loop #o=x to y by z if mod(#o,2) = 0.
195 AT_CHECK([pspp -o pspp.csv loop.sps])
196 AT_CHECK([cat pspp.csv], [0], [dnl
211 AT_SETUP([LOOP with no conditions])
212 AT_DATA([loop.sps], [dnl
226 AT_CHECK([pspp -o pspp.csv loop.sps])
227 AT_CHECK([cat pspp.csv], [0], [dnl