1 dnl PSPP - a program for statistical analysis.
2 dnl Copyright (C) 2020 Free Software Foundation, Inc.
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.
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.
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/>.
17 AT_BANNER([spreadsheet])
19 m4_define([SPREADSHEET_TEST],
21 AT_KEYWORDS([spreadsheet $4])
22 AT_CHECK([spreadsheet-test $2 $top_srcdir/tests/data/$1.gnumeric], [0], [$3], [ignore])
23 AT_CHECK([spreadsheet-test $2 $top_srcdir/tests/data/$1.ods], [0], [$3], [ignore])
26 SPREADSHEET_TEST([simple], [--sheet=0], [dnl
34 SPREADSHEET_TEST([simple], [--sheet=0 --reverse], [dnl
43 SPREADSHEET_TEST([multisheet], [--sheet=1], [dnl
52 SPREADSHEET_TEST([repeating], [], [dnl
55 two three three three four
56 four four five five five
59 SPREADSHEET_TEST([sparse], [], [dnl
62 the row above starts at D
65 SPREADSHEET_TEST([holey], [], [dnl
71 dnl If this test takes an unreasonably long time, then probably the caching
72 dnl code is not working.
73 dnl On my machine, this test takes about 7 seconds
74 SPREADSHEET_TEST([one-thousand-by-fifty-three], [--refcheck --reverse], [dnl
78 dnl Check that the worksheet metadata is retrieved correctly
79 SPREADSHEET_TEST([multisheet], [--metadata], [dnl
83 SPREADSHEET_TEST([simple], [--metadata], [dnl