aboutsummaryrefslogtreecommitdiff
path: root/tests/testsuite.at
blob: 91d7630da4b28edf2d30a678dad927bda24ea810 (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
72
73
# This file is part of GNU Anubis.   -*- autotest -*-
# Copyright (C) 2020 The Anubis Team.
#
# Anubis 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.
#
# Anubis 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 anubis.  If not, see <http://www.gnu.org/licenses/>.

m4_version_prereq([2.52g])
m4_define([AT_SKIP_TEST],[exit 77])
m4_define([ANUBIS_PREREQ_CAPA],
 [anubis --show-config-options|fgrep -q $1||AT_SKIP_TEST])
m4_define([ANUBIS_PREREQ_GPG],
 [ANUBIS_PREREQ_CAPA(GPG)
  test -n "$GPG" || AT_SKIP_TEST]) 
m4_define([ANUBIS_PREREQ_TLS],
 [ANUBIS_PREREQ_CAPA(GNUTLS)
  test -n "$CERTTOOL" || AT_SKIP_TEST])
m4_define([AT_ANUBIS_CONFIG],
[test -d etc || mkdir etc
cat > etc/$1 <<__EOT__
$2
__EOT__
])
AT_INIT
AT_TESTED([anubis])
AT_BANNER([Basic tests])
m4_include([parse.at])
m4_include([empty.at])
m4_include([mult.at])
m4_include([hadd00.at])
m4_include([hadd01.at])
m4_include([hadd02.at])
m4_include([badd.at])
m4_include([fadd.at])
m4_include([cond.at])
m4_include([hmod.at])
m4_include([bmod.at])
m4_include([hdel00.at])
m4_include([hdel01.at])
m4_include([hdel02.at])
m4_include([hdel03.at])
m4_include([trigger.at])
AT_BANNER([GPG])
m4_include([gpgcrypt.at])
m4_include([gpgsign.at])
m4_include([gpgse.at])

AT_BANNER([MIME])
m4_include([mime00.at])
m4_include([mime01.at])

AT_BANNER([TLS])
m4_include([tlsoneway.at])

AT_BANNER([Guile])
m4_include([rot-13.at])
m4_include([remailer.at])

AT_BANNER([anubisusr])
m4_include([anubisusr.at])

AT_BANNER([Other tests])
m4_include([paolo.at])
m4_include([no-backref.at])

Return to:

Send suggestions and report system problems to the System administrator.