| 1 |
# This file is part of GNU Dico -*- Autotest -*- |
| 2 |
# Copyright (C) 2012-2024 Sergey Poznyakoff |
| 3 |
# |
| 4 |
# GNU Dico is free software; you can redistribute it and/or modify |
| 5 |
# it under the terms of the GNU General Public License as published by |
| 6 |
# the Free Software Foundation; either version 3, or (at your option) |
| 7 |
# any later version. |
| 8 |
# |
| 9 |
# GNU Dico is distributed in the hope that it will be useful, |
| 10 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
# GNU General Public License for more details. |
| 13 |
# |
| 14 |
# You should have received a copy of the GNU General Public License |
| 15 |
# along with GNU Dico. If not, see <http://www.gnu.org/licenses/>. |
| 16 |
|
| 17 |
m4_include(testsuite.inc) |
| 18 |
m4_pushdef([AT_DICOD],[ |
| 19 |
AT_DATA([input],dico_quote($1)) |
| 20 |
AT_CHECK([dnl |
| 21 |
dicod --no-preprocessor --config $abs_builddir/dicod.conf \ |
| 22 |
--stderr -i < input 2>err | \ |
| 23 |
tr -d '\r' | \ |
| 24 |
sed 's/^\(2[[25][0-9]]\) .*/\1/;s/ *$//' |
| 25 |
sed '/Notice: gcide_open_idx: creating index/d' err >&2], |
| 26 |
[0], |
| 27 |
[$2], |
| 28 |
[$3])]) |
| 29 |
|
| 30 |
AT_INIT |
| 31 |
|
| 32 |
AT_BANNER(General) |
| 33 |
m4_include(markup.at) |
| 34 |
m4_include(nopr.at) |
| 35 |
m4_include(greek.at) |
| 36 |
m4_include(idx.at) |
| 37 |
m4_include(autoidx.at) |
| 38 |
|
| 39 |
AT_BANNER([Dictionary info]) |
| 40 |
m4_include(descr.at) |
| 41 |
m4_include(info.at) |
| 42 |
|
| 43 |
AT_BANNER(Match) |
| 44 |
m4_include(exact.at) |
| 45 |
m4_include(prefix.at) |
| 46 |
m4_include(all.at) |
| 47 |
|
| 48 |
AT_BANNER(Define) |
| 49 |
m4_include(def00.at) |
| 50 |
m4_include(def01.at) |
| 51 |
m4_include(def02.at) |
| 52 |
m4_include(def04.at) |
| 53 |
m4_include(def05.at) |
| 54 |
m4_include(def06.at) |
| 55 |
|
| 56 |
m4_popdef([AT_DICOD]) |