1 m4_define([CHECK_UPDATE],
2 [AT_SETUP([UPDATE $1 with $2])
18 AT_DATA([b.data], [dnl
27 [AT_DATA([save-a.sps], [dnl
28 DATA LIST NOTABLE FILE='a.data' /a b c 1-3 (A).
31 AT_CHECK([pspp -O format=csv save-a.sps])])
33 [AT_DATA([save-b.sps], [dnl
34 DATA LIST NOTABLE FILE='b.data' /a b c 1-3 (A).
37 AT_CHECK([pspp -O format=csv save-b.sps])])
38 AT_DATA([update.sps], [dnl
39 m4_if([$1], [sav], [], [DATA LIST NOTABLE FILE='a.data' /a b c 1-3 (A).])
40 m4_if([$2], [sav], [], [DATA LIST NOTABLE FILE='b.data' /a b c 1-3 (A).])
42 m4_if([$1], [sav], [FILE='a.sav'], [FILE=*]) /IN=InA /SORT
43 m4_if([$2], [sav], [FILE='b.sav'], [FILE=*]) /IN=InB /RENAME c=d
48 AT_CHECK([pspp -O format=csv update.sps], [0], [dnl
49 update.sps:6: warning: UPDATE: Encountered 3 sets of duplicate cases in the master file.
73 CHECK_UPDATE([sav], [sav])
74 CHECK_UPDATE([sav], [inline])
75 CHECK_UPDATE([inline], [sav])