summaryrefslogtreecommitdiffabout
path: root/tests/testsuite.at
blob: cbe990646aca0677ba1c5e5cae9adedc130862ad (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
# This file is part of Direvent testsuite. -*- Autotest -*-
# Copyright (C) 2013, 2014, 2016 Sergey Poznyakoff
#
# Direvent 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.
#
# Direvent 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 Direvent.  If not, see <http://www.gnu.org/licenses/>.

m4_version_prereq([2.52g])

m4_define([AT_SKIP_TEST],[exit 77])

dnl AT_DIREVENT_TEST([CONFIG],[SELFTEST],[PROLOGUE],[EPILOGUE],[CODE],[STDOUT],
dnl                  [STDERR])                 
m4_define([AT_DIREVENT_TEST],[
AT_CHECK([
cwd=`pwd -P`
$3
cat > test.conf <<EOT
[$1]
EOT
cat > selftest.sh <<EOT
#!/bin/sh
[$2]
sleep 10
exit 21
EOT
chmod +x selftest.sh
direvent -lnotice -f --self-test $cwd/selftest.sh test.conf || exit $?
$4
],
[$5],
[$6],
[$7])])

AT_INIT
AT_TESTED([direvent])

m4_include([create.at])
m4_include([createrec.at])
m4_include([delete.at])
m4_include([write.at])
m4_include([attrib.at])
m4_include([cmdexp.at])
m4_include([samepath.at])
m4_include([shell.at])

AT_BANNER([Environment modifications])
m4_include([env00.at])
m4_include([env01.at])
m4_include([env02.at])
m4_include([env03.at])

AT_BANNER([Filename selection])
m4_include([glob01.at])
m4_include([glob02.at])
m4_include([re01.at])
m4_include([re02.at])
m4_include([re03.at])
m4_include([re04.at])
m4_include([re05.at])

Return to:

Send suggestions and report system problems to the System administrator.