SYSFILE INFO: Improve output formatting by using nested tables.
[pspp] / 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 '/^Encoding:,/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 Compression:,SAV
35
36 Variable,Description,Position
37 x,"Format: F8.2
38 Measure: Scale
39 Role: Input
40 Display Alignment: Right
41 Display Width: 8",1
42 name,"Format: A10
43 Measure: Nominal
44 Role: Input
45 Display Alignment: Left
46 Display Width: 10",2
47 ])
48 AT_CLEANUP