1 AT_BANNER([SYSFILE INFO])
3 AT_SETUP([SYSFILE INFO])
4 AT_DATA([sysfile-info.sps], [dnl
5 DATA LIST LIST /x * name (a10) .
11 SAVE OUTFILE='pro.sav'.
13 sysfile info file='pro.sav'.
15 AT_CHECK([pspp -o pspp.csv sysfile-info.sps])
17 [sed -e '/^Created:,/d' \
19 -e '/^Integer Format:,/d' \
20 -e '/^Real Format:,/d' \
21 -e '/^Encoding:,/d' pspp.csv],
23 Table: Reading free-form data from INLINE.
32 Type:,SPSS System File
36 Variable,Description,Position
40 Display Alignment: Right
45 Display Alignment: Left
52 dnl DISPLAY DOCUMENTS is tested with commands for documents.
54 AT_SETUP([DISPLAY FILE LABEL])
55 AT_DATA([display.sps], [dnl
56 DATA LIST LIST NOTABLE /x * name (a10) .
60 FILE LABEL 'foo bar baz quux'.
63 AT_CHECK([pspp -O format=csv display.sps], [0], [dnl
64 The active dataset does not have a file label.
66 File label: foo bar baz quux
70 dnl DISPLAY VECTORS is tested with commands for vectors.
72 dnl DISPLAY ATTRIBUTES and @ATTRIBUTES are tested with commands for attributes.
74 AT_SETUP([DISPLAY SCRATCH])
75 AT_DATA([sysfile-info.sps], [dnl
76 DATA LIST LIST NOTABLE /x * name (a10) .
81 AT_CHECK([pspp -O format=csv sysfile-info.sps], [0], [dnl
82 sysfile-info.sps:2: warning: DISPLAY: No variables to display.
89 AT_SETUP([DISPLAY INDEX])
90 AT_DATA([sysfile-info.sps], [dnl
91 DATA LIST LIST NOTABLE /x * name (a10) .
94 AT_CHECK([pspp -O format=csv sysfile-info.sps], [0], [dnl
101 AT_SETUP([DISPLAY NAMES])
102 AT_DATA([sysfile-info.sps], [dnl
103 DATA LIST LIST NOTABLE /x * name (a10) .
106 AT_CHECK([pspp -O format=csv sysfile-info.sps], [0], [dnl
113 AT_SETUP([DISPLAY LABELS])
114 AT_DATA([sysfile-info.sps], [dnl
115 DATA LIST LIST NOTABLE /x * name (a10) .
116 VARIABLE LABEL x 'variable one' name 'variable two'.
117 VALUE LABEL x 1 'asdf' 2 'jkl;'.
120 AT_CHECK([pspp -O format=csv sysfile-info.sps], [0], [dnl
121 Variable,Label,Position
127 dnl DISPLAY VARIABLES Is tested in multiple places.