3 TEMPDIR=/tmp/pspp-tst-$$
5 trap 'cd /; rm -rf $TEMPDIR' 0
7 # ensure that top_builddir are absolute
8 if [ -z "$top_builddir" ] ; then top_builddir=. ; fi
9 if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi
10 top_builddir=`cd $top_builddir; pwd`
11 PSPP=$top_builddir/src/ui/terminal/pspp
13 # ensure that top_srcdir is absolute
14 top_srcdir=`cd $top_srcdir; pwd`
16 STAT_CONFIG_PATH=$top_srcdir/config
17 export STAT_CONFIG_PATH
41 activity="write pspp syntax"
42 cat > time-out.pspp <<EOF
44 data list /x 1-30 (dtime).
247 print outfile='time-out.out'/x(time5).
248 print outfile='time-out.out'/x(time6).
249 print outfile='time-out.out'/x(time7).
250 print outfile='time-out.out'/x(time8).
251 print outfile='time-out.out'/x(time9).
252 print outfile='time-out.out'/x(time10).
253 print outfile='time-out.out'/x(time10.1).
254 print outfile='time-out.out'/x(time11).
255 print outfile='time-out.out'/x(time11.1).
256 print outfile='time-out.out'/x(time11.2).
257 print outfile='time-out.out'/x(time12).
258 print outfile='time-out.out'/x(time12.1).
259 print outfile='time-out.out'/x(time12.2).
260 print outfile='time-out.out'/x(time12.3).
261 print outfile='time-out.out'/x(time13).
262 print outfile='time-out.out'/x(time13.1).
263 print outfile='time-out.out'/x(time13.2).
264 print outfile='time-out.out'/x(time13.3).
265 print outfile='time-out.out'/x(time13.4).
266 print outfile='time-out.out'/x(time14).
267 print outfile='time-out.out'/x(time14.1).
268 print outfile='time-out.out'/x(time14.2).
269 print outfile='time-out.out'/x(time14.3).
270 print outfile='time-out.out'/x(time14.4).
271 print outfile='time-out.out'/x(time14.5).
272 print outfile='time-out.out'/x(time15).
273 print outfile='time-out.out'/x(time15.1).
274 print outfile='time-out.out'/x(time15.2).
275 print outfile='time-out.out'/x(time15.3).
276 print outfile='time-out.out'/x(time15.4).
277 print outfile='time-out.out'/x(time15.5).
278 print outfile='time-out.out'/x(time15.6).
279 print outfile='time-out.out'/x(dtime8).
280 print outfile='time-out.out'/x(dtime9).
281 print outfile='time-out.out'/x(dtime10).
282 print outfile='time-out.out'/x(dtime11).
283 print outfile='time-out.out'/x(dtime12).
284 print outfile='time-out.out'/x(dtime13).
285 print outfile='time-out.out'/x(dtime13.1).
286 print outfile='time-out.out'/x(dtime14).
287 print outfile='time-out.out'/x(dtime14.1).
288 print outfile='time-out.out'/x(dtime14.2).
289 print outfile='time-out.out'/x(dtime15).
290 print outfile='time-out.out'/x(dtime15.1).
291 print outfile='time-out.out'/x(dtime15.2).
292 print outfile='time-out.out'/x(dtime15.3).
293 print outfile='time-out.out'/x(dtime16).
294 print outfile='time-out.out'/x(dtime16.1).
295 print outfile='time-out.out'/x(dtime16.2).
296 print outfile='time-out.out'/x(dtime16.3).
297 print outfile='time-out.out'/x(dtime16.4).
298 print outfile='time-out.out'/x(dtime17).
299 print outfile='time-out.out'/x(dtime17.1).
300 print outfile='time-out.out'/x(dtime17.2).
301 print outfile='time-out.out'/x(dtime17.3).
302 print outfile='time-out.out'/x(dtime17.4).
303 print outfile='time-out.out'/x(dtime17.5).
304 print outfile='time-out.out'/x(dtime18).
305 print outfile='time-out.out'/x(dtime18.1).
306 print outfile='time-out.out'/x(dtime18.2).
307 print outfile='time-out.out'/x(dtime18.3).
308 print outfile='time-out.out'/x(dtime18.4).
309 print outfile='time-out.out'/x(dtime18.5).
310 print outfile='time-out.out'/x(dtime18.6).
313 if [ $? -ne 0 ] ; then no_result ; fi
315 activity="run program"
316 $SUPERVISOR $PSPP --testing-mode time-out.pspp
317 if [ $? -ne 0 ] ; then no_result ; fi
319 activity="compare output"
320 diff -u time-out.out - <<EOF
13122 if [ $? -ne 0 ] ; then fail ; fi