Merge remote-tracking branch 'origin/master' into sheet
[pspp] / tests / output / paper-size.at
1 dnl PSPP - a program for statistical analysis.
2 dnl Copyright (C) 2017 Free Software Foundation, Inc.
3 dnl 
4 dnl This program is free software: you can redistribute it and/or modify
5 dnl it under the terms of the GNU General Public License as published by
6 dnl the Free Software Foundation, either version 3 of the License, or
7 dnl (at your option) any later version.
8 dnl 
9 dnl This program is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 dnl GNU General Public License for more details.
13 dnl 
14 dnl You should have received a copy of the GNU General Public License
15 dnl along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 dnl
17 AT_BANNER([output -- paper sizes])
18
19 AT_SETUP([letter default paper size])
20 AT_DATA([paper-size.sps], [dnl
21 debug paper size ''.
22 ])
23 AT_CHECK([PAPERSIZE=letter pspp --testing-mode -O format=csv paper-size.sps],
24   [0], ["" => 8.5 x 11.0 in, 216 x 279 mm
25 ])
26 AT_CLEANUP
27
28 AT_SETUP([a4 default paper size])
29 AT_DATA([paper-size.sps], [dnl
30 debug paper size ''.
31 ])
32 AT_CHECK([PAPERSIZE=a4 pspp --testing-mode -O format=csv paper-size.sps],
33   [0], ["" => 8.3 x 11.7 in, 210 x 297 mm
34 ])
35 AT_CLEANUP
36
37 AT_SETUP([specific paper sizes])
38 AT_KEYWORDS([paper size])
39 AT_DATA([paper-size.sps], [dnl
40 debug paper size 'a4'.
41 debug paper size 'letter'.
42 debug paper size '10x14in'.
43 debug paper size '210x297mm'.
44 ])
45 AT_CHECK([PAPERSIZE=a4 pspp --testing-mode -O format=csv paper-size.sps],
46   [0], [dnl
47 "a4" => 8.3 x 11.7 in, 210 x 297 mm
48 "letter" => 8.5 x 11.0 in, 216 x 279 mm
49 "10x14in" => 10.0 x 14.0 in, 254 x 356 mm
50 "210x297mm" => 8.3 x 11.7 in, 210 x 297 mm
51 ])
52 AT_CLEANUP
53