sys-file-reader: Refactor to clean up character encoding support.
[pspp-builds.git] / tests / language / dictionary / sys-file-info.at
1 AT_BANNER([SYSFILE INFO])
2
3 AT_SETUP([SYSFILE INFO])
4 AT_DATA([sysfile-info.sps], [dnl
5 DATA LIST LIST /x * name (a10) .
6 BEGIN DATA
7 1 one
8 2 two
9 3 three
10 END DATA.
11 SAVE OUTFILE='pro.sav'.
12
13 sysfile info file='pro.sav'.
14 ])
15 AT_CHECK([pspp -o pspp.csv sysfile-info.sps])
16 AT_CHECK(
17   [sed -e '/^Created:,/d' \
18        -e '/^Endian:,/d' \
19        -e '/^Integer Format:,/d' \
20        -e '/^Real Format:,/d' \
21        -e '/^Charset:,/d' pspp.csv],
22   [0], [dnl
23 Table: Reading free-form data from INLINE.
24 Variable,Format
25 x,F8.0
26 name,A10
27
28 File:,pro.sav
29 Label:,No label.
30 Variables:,2
31 Cases:,3
32 Type:,System File
33 Weight:,Not weighted.
34 Mode:,Compression on.
35
36 Variable,Description,,Position
37 x,Format: F8.2,,1
38 ,Measure: Scale,,
39 ,Display Alignment: Right,,
40 ,Display Width: 8,,
41 name,Format: A10,,2
42 ,Measure: Nominal,,
43 ,Display Alignment: Left,,
44 ,Display Width: 10,,
45 ])
46 AT_CLEANUP