2 # Copyright (C) 2006-2012 Free Software Foundation, Inc.
4 # This program 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 2, or (at your option)
9 # This program 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.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Test how well 'missing' finds output file names of various tools.
20 am_create_testdir=empty
23 get_shell_script missing
25 # These programs may be invoked by 'missing'.
26 needed_tools='chmod find sed test touch'
27 needed_tools_csep=$(echo $needed_tools | sed 's/ /, /g')
29 cat >configure.ac <<EOF
30 AC_INIT([missing4], [1.0])
31 m4_foreach([tool], [$needed_tools_csep],
32 [AC_PATH_PROG(tool, tool, [false])
33 AC_CONFIG_FILES(tool, chmod +x tool)
38 for tool in $needed_tools; do
39 unindent >$tool.in <<EOF
48 echo output-file > output-file
49 cp output-file my--output--file-o
56 for tool in autom4te help2man makeinfo; do
57 missing --run $tool -o my--output--file-o input
58 missing --run $tool --output my--output--file-o input
62 diff output-file my--output--file-o