aboutsummaryrefslogtreecommitdiff
path: root/testsuite/launcher.all/help.exp
blob: 34eb68d965e1268ccb05f0a2bd08c3a67065c767 (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
# Copyright (C) 2018 Free Software Foundation, Inc.
#
# This file is part of DejaGnu.
#
# DejaGnu 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 of the License, or
# (at your option) any later version.
#
# DejaGnu 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 DejaGnu; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.

# This file was written by Jacob Bachmeyer.

# each element: { name args envars exit_code output_re... }
set tests {
    { "dejagnu help selects dejagnu(1) manpage"
	{help -v} {MANPAGER=echo} 0
	"Forwarding to man \".*doc/dejagnu\\.1\"" }
    { "dejagnu help help selects dejagnu-help(1) manpage"
	{help -v help} {MANPAGER=echo} 0
	"Forwarding to man \".*doc/dejagnu-help\\.1\"" }
}

if { ![file isdirectory [file join [file dirname $LAUNCHER] commands]] } {
    skip_dejagnu_launcher_tests \
	"The 'commands' directory is not present in the source tree." \
	unsupported $tests
} else {
    run_dejagnu_launcher_tests $LAUNCHER $tests
}

#EOF