aboutsummaryrefslogtreecommitdiff
path: root/tests/cfhelp.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cfhelp.at')
-rw-r--r--tests/cfhelp.at76
1 files changed, 76 insertions, 0 deletions
diff --git a/tests/cfhelp.at b/tests/cfhelp.at
new file mode 100644
index 0000000..cab6624
--- /dev/null
+++ b/tests/cfhelp.at
@@ -0,0 +1,76 @@
1# This file is part of grecs -*- Autotest -*-
2# Copyright (C) 2007, 2009-2011 Sergey Poznyakoff
3#
4# Grecs 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# Grecs 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 Grecs. If not, see <http://www.gnu.org/licenses/>.
16
17AT_SETUP(Help)
18AT_KEYWORDS([help])
19
20AT_CHECK([gcfset -cfhelp],
21[0],
22[# Sample configuration file structure.
23
24# Scalar string
25scalar <label: string>;
26
27# Configure logging logging
28logging {
29 # Send to syslog
30 syslog <arg: boolean>;
31
32 # Set logging facility
33 facility <name: string>;
34
35 # Tag logging messages with this string
36 tag <label: string>;
37
38 # Prefix each message with its priority
39 print-priority <arg: boolean>;
40}
41
42# Mailbox configuration
43mailbox {
44 # Default mailbox pattern
45 mailbox-pattern <arg: string>;
46
47 # Default mailbox type
48 mailbox-type <arg: string>;
49}
50
51# Subprogram configuration
52program <name: string> {
53 # Scalar string
54 scalar <label: string>;
55
56 # Configure logging logging
57 logging {
58 # Send to syslog
59 syslog <arg: boolean>;
60
61 # Set logging facility
62 facility <name: string>;
63
64 # Tag logging messages with this string
65 tag <label: string>;
66
67 # Prefix each message with its priority
68 print-priority <arg: boolean>;
69 }
70}
71
72# list variable
73listvar <arg: list of string>;
74])
75
76AT_CLEANUP

Return to:

Send suggestions and report system problems to the System administrator.