aboutsummaryrefslogtreecommitdiff
path: root/modules/dict.org/tests/testsuite.at
blob: 6ae7cf24e40843e689eae37d62f638190c0985f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# This file is part of GNU Dico. -*- Autotest -*-
# Copyright (C) 2018 Sergey Poznyakoff
#
# GNU Dico is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# GNU Dico is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Dico.  If not, see <http://www.gnu.org/licenses/>.

m4_include([testsuite.inc])

m4_define([DICTORG_CONFIG],[dnl
cat > dicod.conf <<__EOT__
prepend-load-path "$abs_top_builddir/modules/dict.org";
load-module dictorg {
    command "dictorg dbdir=$abs_srcdir/db";
}

$*
__EOT__
])

# DICTORG_TEST(config, command, result)
m4_define([DICTORG_TEST],
 [AT_CHECK([DICTORG_CONFIG($1)
AT_DATA([input],[$2
quit
])
DICOD_RUN
],
[0],
[220
$3[]221
])])

AT_INIT

# -----------------------------------------------------------------------
AT_BANNER([SHOW])
m4_include([showdb.at])
m4_include([showinfo.at])

AT_BANNER([MATCH])
m4_include([exact.at])
m4_include([alnum.at])
m4_include([allchars.at])
m4_include([prefix.at])
m4_include([suffix.at])
m4_include([word.at])

AT_BANNER([DEFINE])
m4_include([define.at])

AT_BANNER([Option-governed virtual databases])
m4_include([ovshowdb.at])
m4_include([ovexact.at])
m4_include([ovdefnomime.at])
m4_include([ovdefmime.at])

AT_BANNER([Virtual databases (collections)])
m4_include([vshowdb.at])
m4_include([vexact.at])
m4_include([vdefine.at])

Return to:

Send suggestions and report system problems to the System administrator.