Enable the show value labels feature
[pspp] / tests / data / encrypted-file.at
1 AT_BANNER([encrypted files])
2
3 AT_SETUP([decrypt an encrypted system file])
4 AT_KEYWORDS([system file decrypt pspp-convert])
5 AT_CHECK([pspp-convert $srcdir/data/hotel-encrypted.sav hotel.sav -p pspp])
6 AT_CHECK([pspp-convert hotel.sav hotel.csv])
7 AT_CHECK([cat hotel.csv], [0], [dnl
8 v1,v2,v3,v4,v5
9 4,2,3,4,1
10 1,1,3,1,1
11 5,2,2,3,4
12 3,1,3,1,2
13 5,3,1,5,3
14 1,2,5,4,2
15 3,2,4,3,1
16 1,4,5,2,1
17 3,2,3,1,2
18 2,5,4,2,1
19 4,2,2,3,5
20 2,1,4,1,1
21 1,2,5,5,2
22 2,3,3,3,1
23 4,1,1,1,3
24 1,1,5,1,2
25 2,5,5,2,2
26 ])
27 AT_CLEANUP
28
29 AT_SETUP([decrypt an encrypted syntax file])
30 AT_KEYWORDS([syntax file decrypt pspp-convert])
31 AT_CHECK([pspp-convert $srcdir/data/test-encrypted.sps test.sps -p password])
32
33 # The sample file is not ideal: lines end in CRLF and its last line
34 # lacks a new-line, so "sed" and "echo" make it easier to work with.
35 AT_CHECK([tr -d "\r" < test.sps; echo], [0], [dnl
36 * Encoding: windows-1252.
37 DATA LIST LIST /name (a25) quantity (f8).
38 BEGIN DATA.
39 widgets 10345
40 oojars 2345
41 dubreys 98
42 thingumies 518
43 END DATA.
44  @&t@
45 LIST.
46  @&t@
47 DESCRIPTIVES /quantity
48  /statistics ALL.
49 ])
50 AT_CLEANUP
51