## along with this program. If not, see <http://www.gnu.org/licenses/>.
##
-## Temporary files used in the `check-list-of-tests' target.
+## Temporary files used in the 'check-list-of-tests' recipe.
am__tmk = tests-in-makefile-list.tmp
am__tfs = tests-on-filesystem-list.tmp
am__tdf = diff-in-tests-lists.tmp
; do \
eval test x"\$${$$v}" = x || unset $$v; \
done;
-# The `AM_TESTS_REEXEC=no' setting tells the tests not to needlessly
+# The 'AM_TESTS_REEXEC=no' setting tells the tests not to needlessly
# re-execute themselves with the shell detected at configure time, since
# we are already running them under it explicitly in our setup (see e.g.
# the definition of TEST_LOG_COMPILER above).
AM_TESTS_ENVIRONMENT += AM_TESTS_REEXEC=no; export AM_TESTS_REEXEC;
# We want warning messages and explanations for skipped tests to go to
-# the console if possible, so set up `stderr_fileno_' properly.
+# the console if possible, so set up 'stderr_fileno_' properly.
AM_TESTS_FD_REDIRECT = 9>&2
AM_TESTS_ENVIRONMENT += stderr_fileno_=9; export stderr_fileno_;
rm -rf "$$@"; \
fi;
-## Run the testsuite through the `prove' utility. Mostly for maintainers,
-## and to find out possible incompatibilities between `prove' and the
+## Run the testsuite through the 'prove' utility. Mostly for maintainers,
+## and to find out possible incompatibilities between 'prove' and the
## Automake own TAP driver.
PROVE = prove
echo $(srcdir)/$$t; \
fi; \
done`; \
-## Extra environment, mostly for use by `prove-runner'.
+## Extra environment, mostly for use by 'prove-runner'.
## XFAIL_TESTS gets normalized to play nicer with VPATH builds.
XFAIL_TESTS=`\
for t in $(XFAIL_TESTS); do \
make -k check
- You can use `-jN' for faster completion (it even helps on a
+ You can use '-jN' for faster completion (it even helps on a
uniprocessor system, due to unavoidable sleep delays, as
noted below).
./configure --host i586-mingw32msvc --build i686-pc-linux-gnu
To avoid possible spurious error, you really have to *explicitly* specify
- `--build' in addition to `--host'; the `lib/config.guess' script can help
- determine the correct value to pass to `--build'.
+ '--build' in addition to '--host'; the 'lib/config.guess' script can help
+ determine the correct value to pass to '--build'.
Then you can just run the testsuite in the usual way, and the test cases
using a compiler should automatically use a cross-compilation setup.
Getting details from failures
-----------------------------
- By default, verbose output of a test `foo.test' or `foo.tap' is
- retained in the log file `foo.log'. A summary log is created in
- the file `test-suite.log'.
+ By default, verbose output of a test 'foo.test' or 'foo.tap' is
+ retained in the log file 'foo.log'. A summary log is created in
+ the file 'test-suite.log'.
You can limit the set of files using the TESTS variable, and enable
detailed test output at the end of the test run with the VERBOSE
---------------
There are two kinds of tests in the Automake testsuite (both implemented
- as shell scripts). The scripts with the `.test' suffix are "simple"
+ as shell scripts). The scripts with the '.test' suffix are "simple"
tests, their outcome completely determined by their exit status. Those
- with the `.tap' suffix use the TAP protocol. If you want to run a test
+ with the '.tap' suffix use the TAP protocol. If you want to run a test
by hand, you can do so directly if it is a simple test:
./nogzip.test
By default, the tests are run by the $SHELL detected at configure
time. They also take care to re-execute themselves with that shell,
unless told not to. So, to run the tests with a different shell, say
- `/path/to/another/sh', the user must use:
+ '/path/to/another/sh', the user must use:
AM_TESTS_REEXEC=no /path/to/another/sh ./foo.test
AM_TESTS_REEXEC=no prove -v -e /path/to/another/sh ./bar.tap
However, some care must be used with Zsh, since, when not directly
started in Bourne-compatibility mode, it has some incompatibilities
- in the handling of `$0' which conflict with our usage. Our testsuite
+ in the handling of $0 which conflict with our usage. Our testsuite
can automatically work around these incompatibilities when a version
4.3 or later of Zsh is used, but unfortunately not when an older
version of Zsh is used. Thus, if you want to run a test script, say
- foo.test, with Zsh 4.2, you *can't* simply do `zsh foo.test', but
+ foo.test, with Zsh 4.2, you *can't* simply do "zsh foo.test", but
you *must* resort to:
+
AM_TESTS_REEXEC=no zsh -o no_function_argzero foo.test
Note that this problem does not occur if Zsh is executed through
- a symlink with a basename of `sh', since in that case Zsh starts
+ a symlink with a basename of 'sh', since in that case Zsh starts
in Bourne compatibility mode. So you should be perfectly safe
when /bin/sh is Zsh, even a it's version < 4.3.
...
@end example
- Use `required=...' for required tools. Do not explicitly require
+ Use "required=..." for required tools. Do not explicitly require
tools which can be taken for granted because they're listed in the
- GNU Coding Standards (for example, `gzip').
+ GNU Coding Standards (for example, 'gzip').
Include ./defs in every test script (see existing tests for examples
of how to do this).
- Use the `skip_' function to skip tests, with a meaningful message if
- possible. Where convenient, use the `warn_' function to print generic
- warnings, the `fail_' function for test failures, and the `fatal_'
+ Use the 'skip_' function to skip tests, with a meaningful message if
+ possible. Where convenient, use the 'warn_' function to print generic
+ warnings, the 'fail_' function for test failures, and the 'fatal_'
function for hard errors. In case a hard error is due to a failed
- set-up of a test scenario, you can use the `framework_fail_' function
+ set-up of a test scenario, you can use the 'framework_fail_' function
instead.
- For tests that use the `parallel-tests' Automake option, set the shell
- variable `am_parallel_tests' to "yes" before including ./defs. For tests
- that are *not* meant to work with the `parallel-tests' Automake option
- (these should be very very few), set the shell variable `am_parallel_tests'
- to "no" before including ./defs.
+ For tests that use the 'parallel-tests' Automake option, set the shell
+ variable 'am_parallel_tests' to "yes" before including ./defs. For
+ tests that are *not* meant to work with the 'parallel-tests' Automake
+ option (these should be very very few), set the shell variable
+ 'am_parallel_tests' to "no" before including ./defs.
Some tests in the Automake testsuite are auto-generated; those tests
might have custom extensions, but their basename (that is, with such
extension stripped) is expected to end with "-w" string, optionally
followed by decimal digits. For example, the name of a valid
- auto-generated test can be `color-w.test' or `tap-signal-w09.tap'.
+ auto-generated test can be 'color-w.test' or 'tap-signal-w09.tap'.
Please don't name hand-written tests in a way that could cause them
- to be confused with auto-generated tests; for example, `u-v-w.test'
- or `option-w0.tap' are *not* valid name for hand-written tests.
+ to be confused with auto-generated tests; for example, 'u-v-w.test'
+ or 'option-w0.tap' are *not* valid name for hand-written tests.
./defs brings in some commonly required files, and sets a skeleton
configure.ac. If possible, append to this file. In some cases
that configure.ac registers Makefile.in but do not output anything by
default. If you need ./configure to create Makefile, append AC_OUTPUT
to configure.ac. In case you don't want ./defs to pre-populate your
- test directory (which is a rare occurrence), set `$am_create_testdir'
- to "empty" before sourcing ./defs.
+ test directory (which is a rare occurrence), set the 'am_create_testdir'
+ shell variable to "empty" before sourcing ./defs.
- By default, the testcases are run with the `errexit' shell flag on,
+ By default, the testcases are run with the errexit shell flag on,
to make it easier to catch failures you might not have thought of.
- If this is undesirable in some testcase, you can use `set +e' to
- disable the `errexit' flag (but please do so only if you have a
- very good reason).
+ If this is undesirable in some testcase, you can use "set +e" to
+ disable the errexit flag (but please do so only if you have a very
+ good reason).
- End the test script with a `:' or `Exit 0'. Otherwise, when somebody
+ End the test script with a ":" or "Exit 0". Otherwise, when somebody
changes the test by adding a failing command after the last command,
the test will spuriously fail because $? is nonzero at the end. Note
- that this is relevant even if the `errexit' shell flag is on, in case
+ that this is relevant even if the errexit shell flag is on, in case
the test contains commands like "grep ... Makefile.in && Exit 1" (and
there are indeed a lot of such tests).
Use $sleep when you have to make sure that some file is newer
than another.
- Use `cat' or `grep' to display (part of) files that may be interesting
- for debugging, so that when a user send a verbose output we don't have
- to ask him for more details. Display stderr output on the stderr file
- descriptor. If some redirected command is likely to fail, display its
- output even in the failure case, before exiting.
+ Use cat or grep or similar commands to display (part of) files that
+ may be interesting for debugging, so that when a user send a verbose
+ output we don't have to ask him for more details. Display stderr
+ output on the stderr file descriptor. If some redirected command is
+ likely to fail, display its output even in the failure case, before
+ exiting.
- Use `Exit' rather than `exit' to abort a test.
+ Use 'Exit' rather than 'exit' to abort for leave early from a test
+ case.
- Use `$PATH_SEPARATOR', not hard-coded `:', as the separator of
+ Use '$PATH_SEPARATOR', not hard-coded ':', as the separator of
PATH's entries.
- It's more important to make sure that a feature works, than
- make sure that Automake's output looks correct. It might look
- correct and still fail to work. In other words, prefer
- running `make' over grepping `Makefile.in' (or do both).
+ It's more important to make sure that a feature works, than make
+ sure that Automake's output looks correct. It might look correct
+ and still fail to work. In other words, prefer running 'make' over
+ grepping Makefile.in (or do both).
- If you run $AUTOMAKE or $AUTOCONF several times in the same test
- and change `configure.ac' by the meantime, do
- rm -rf autom4te.cache
- before the following runs. On fast machines the new `configure.ac'
- could otherwise have the same timestamp as the old `autom4te.cache'.
- Alternatively, use `--force' for subsequent runs of the tools.
+ If you run $ACLOCAL, $AUTOMAKE or $AUTOCONF several times in the
+ same test and change configure.ac by the meantime, do
+ rm -rf autom4te*.cache
+ before the following runs. On fast machines the new configure.ac
+ could otherwise have the same timestamp as the old autom4te.cache.
Use filenames with two consecutive spaces when testing that some
code preserves filenames with spaces. This will catch errors like
Make sure your test script can be used to faithfully check an
installed version of automake (as with "make installcheck"). For
example, if you need to copy or grep an automake-provided script,
- do not assume that they can be found in the `$top_srcdir/lib'
- directory, but use `$am_scriptdir' instead. The complete list of
- such `$am_..dir' variables can be found in tests/defs-static.in.
+ do not assume that they can be found in the '$top_srcdir/lib'
+ directory, but use '$am_scriptdir' instead. The complete list of
+ such "$am_...dir" variables can be found in tests/defs-static.in.
Before commit: make sure the test is executable, add the tests to
TESTS in Makefile.am, add it to XFAIL_TESTS in addition if needed,
Do not
------
- Do not test an Automake error with `$AUTOMAKE && Exit 1', or in three
+ Do not test an Automake error with "$AUTOMAKE && Exit 1", or in three
years we'll discover that this test failed for some other bogus reason.
This happened many times. Better use something like
AUTOMAKE_fails
grep 'expected diagnostic' stderr
- (Note this doesn't prevent the test from failing for another
- reason, but at least it makes sure the original error is still
- here.)
+ (Note this doesn't prevent the test from failing for another reason,
+ but at least it makes sure the original error is still here).
Do not override Makefile variables using make arguments, as in e.g.:
$MAKE prefix=/opt install
This is not portable for recursive targets (targets that call a
- sub-make may not pass `prefix=/opt' along). Use the following
+ sub-make may not pass "prefix=/opt" along). Use the following
instead:
prefix=/opt $MAKE -e install
# Test for bug reported by François Pinard.
# If \ is in AC_OUTPUT, automake barfs.
-# This was the old test `acoutbs.test'.
+# This was the old test 'acoutbs.test'.
# Also test for bug reported by David A. Swierczek.
# Another bug with \ in AC_OUTPUT (this time with whitespace).
-# This was the old test `acoutbs2.test'.
+# This was the old test 'acoutbs2.test'.
acoutbs_check ()
{
# AC_OUTPUT(Makefile src/Makefile tests/Makefile, echo timestamp > stamp-h)dnl
# automake is not happy:
# [ ... ]
-# This was the old test `acoutnoq.test'.
+# This was the old test 'acoutnoq.test'.
mkdir acoutnoq
cd acoutnoq
# Test for bug when AC_OUTPUT has 2 args on the same line, eg:
# AC_OUTPUT([Makefile automake tests/Makefile],[chmod +x automake])
-# This was the old test `acoutpt.test'.
+# This was the old test 'acoutpt.test'.
mkdir acoutpt
cd acoutpt
# -----------------------------------------------------------------------
# Test for bug reported by Eric Magnien.
-# This was the old test `acoutpt2.test'.
+# This was the old test 'acoutpt2.test'.
mkdir acoutpt2
cd acoutpt2
# -----------------------------------------------------------------------
# Test for bug reported by François Pinard.
-# This was the old test `acoutqnl.test'.
+# This was the old test 'acoutqnl.test'.
mkdir acoutqnl
cd acoutqnl
#
# Also check for --install.
-# TODO: write a sister test that doesn't use a `dirlist' file, but
-# TODO: puts third-party macros directly into `acdir'.
+# TODO: write a sister test that doesn't use a 'dirlist' file, but
+# TODO: puts third-party macros directly into 'acdir'.
am_create_testdir=empty
. ./defs || Exit 1
$FGREP defs/f.m4 aclocal.m4
$MAKE testdist2
-# Make sure aclocal diagnose missing included files with correct `file:line:'.
+# Make sure aclocal diagnose missing included files with correct 'file:line:'.
rm -f b.m4
$ACLOCAL 2>stderr && { cat stderr >&2; Exit 1; }
cat stderr >&2
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure the "deleted header file" issue is fixed w.r.t. aclocal.m4
-# dependencies. See also related the tests `remake-deleted-m4-file.test'
+# dependencies. See also related the tests 'remake-deleted-m4-file.test'
# and 'remake-renamed-m4-macro-and-file.test'.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test aclocal's `--acdir', `--automake-acdir' and `--system-acdir'
+# Test aclocal's '--acdir', '--automake-acdir' and '--system-acdir'
# options. Also check that stuff in the automake acdir takes precedence
# over stuff in the system acdir.
rm -rf autom4te*.cache
-# Obsolescent `--acdir' option.
+# Obsolescent '--acdir' option.
$ACLOCAL -Wobsolete --acdir am 2>stderr && { cat stderr >&2; Exit 1; }
cat stderr >&2
grep '.*--acdir.*deprecated' stderr
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure "aclocal --install" install files also in directories
-# passed to `-I' as absolute paths. Now that we support the
+# passed to '-I' as absolute paths. Now that we support the
# ACLOCAL_PATH variable, it is clear that this is the right thing
# to do. See also automake bug#8407.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# ACLOCAL_PATH, acdir and `--install' interactions when serial number
+# ACLOCAL_PATH, acdir and '--install' interactions when serial number
# are involved.
am_create_testdir=empty
case $1 in
sdir) ok=sdir ko=pdir;;
pdir) ok=pdir ko=sdir;;
- *) fatal_ "win(): invalud argument \`$1'";;
+ *) fatal_ "win(): invalid argument '$1'";;
esac
# This is required on fast machine, to avoid caching and timestamp
# issues with the autotools (already happened in practice).
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# ACLOCAL_PATH and `--install' interactions.
+# ACLOCAL_PATH and '--install' interactions.
am_create_testdir=empty
. ./defs || Exit 1
AC_DEFUN([AM_BAR], [:])
END
-# The `--install' option should never cause anything to be installed
+# The '--install' option should never cause anything to be installed
# in a directory specified in ACLOCAL_PATH.
$ACLOCAL --install 2>stderr && { cat stderr >&2; Exit 1; }
cat stderr >&2
grep ' no -I was supplied' stderr
test ! -f pdir/foo.m4
-# The `--install' option should cause a required macro found in a
+# The '--install' option should cause a required macro found in a
# directory specified in ACLOCAL_PATH to be installed locally.
echo AM_BAR >> configure.ac
$ACLOCAL --install -I ldir
# over those coming later.
$FGREP '::pass-foo::' configure
-# Directories from `-I' options should take precedence over directories
+# Directories from '-I' options should take precedence over directories
# in ACLOCAL_PATH.
$FGREP '::pass-bar::' configure
# Directories in ACLOCAL_PATH should take precedence over system acdir
-# (typically `${prefix}/share/aclocal'), and any directory added through
-# the `dirlist' special file.
+# (typically '${prefix}/share/aclocal'), and any directory added through
+# the 'dirlist' special file.
$FGREP '::pass-gettext::' configure
$FGREP '::pass-libtool::' configure
# Directories in ACLOCAL_PATH shouldn't take precedence over the internal
-# automake acdir (typically `${prefix}/share/aclocal-${APIVERSION}').
+# automake acdir (typically '${prefix}/share/aclocal-${APIVERSION}').
$FGREP 'am__api_version' configure
# A final sanity check.
$AUTOCONF
# there should be no m4_include in aclocal.m4, even though ACLOCAL_PATH
-# contains `mdir1' and `./mdir2' as relative directories. Only -I
+# contains 'mdir1' and './mdir2' as relative directories. Only -I
# directories should be subject to file inclusion.
$FGREP m4_include aclocal.m4 && Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test on aclocal's `--print-ac-dir' option.
+# Test on aclocal's '--print-ac-dir' option.
am_create_testdir=empty
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure that aclocal.m4's dependencies are honored in
-# sub-directories. See also related tests `remake-subdir*.test'.
+# sub-directories. See also related tests 'remake-subdir*.test'.
. ./defs || Exit 1
$ACLOCAL -I m4
$AUTOMAKE --no-force
-# aclocal.m4 and Makefile.in should not have been updated, so `foo'
+# aclocal.m4 and Makefile.in should not have been updated, so 'foo'
# should be younger
test `ls -1t aclocal.m4 Makefile.in sub/Makefile.in foo | sed 1q` = foo
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test that automake complains when required auxiliary files are not
-# found, and that `automake --add-missing' installs the files (and only
+# found, and that 'automake --add-missing' installs the files (and only
# the files) it's supposed to, and that these files are symlinked by
-# default, but copied if the `--copy' option is used.
+# default, but copied if the '--copy' option is used.
am_create_testdir=empty
. ./defs || Exit 1
# shared by its "subtests").
mkdir generic
cd generic
- # Use `echo > ...', not `: > ...', here and below, as Solaris 10 /bin/sh
+ # Use 'echo > ...', not ': > ...', here and below, as Solaris 10 /bin/sh
# might not execute the latter (the Autoconf manual gives more details).
echo > Makefile.am
if test $override = yes; then
set -x # Re-enable shell traces.
pwd
ls -l generic
- # Test once with `--copy', once without.
+ # Test once with '--copy', once without.
for action in link copy; do
case $action in
link) opts='--add-missing';;
command_ok_ \
"$pfx warn about missing file $f" \
grep "required file ['\`]$build_aux/$f' not found" stderr
- # Suggest the user to use `--add-missing'.
+ # Suggest the user to use '--add-missing'.
command_ok_ \
"$pfx suggest --add-missing for $f" \
grep ".*--add-missing.* install .*$f" stderr
grep ": installing ['\`]$build_aux/$f'$" stderr
done
# Only the expected files should be installed. But automake always
- # require `missing' and `install-sh', so account for them.
+ # require 'missing' and 'install-sh', so account for them.
all_files="install-sh missing $files"
for f in $all_files; do echo $f; done | sort | uniq > files.exp
(cd $build_aux && ls) | sort > files.got
command_ok_ \
"$pfx all and only expected files installed" \
$am_diff files.exp files.got
- # The files should be copied by `--copy' and symlinked otherwise.
+ # The files should be copied by '--copy' and symlinked otherwise.
# But these checks make no sense on systems like MSYS/MinGW where
# there are no true symlinks ('ln -s' behaves like 'cp -p'), so be
# ready to skip the checks in that case. See automake bug#10441.
fi
done
# Now that the required auxiliary files have been installed, automake
- # should not complain anymore even if the `--add-missing' option is
+ # should not complain anymore even if the '--add-missing' option is
# not used.
AUTOMAKE_run -d "$pfx automake finds all added files"
cd ..
cd "$ocwd" || fatal_ "cannot chdir back to top-level test directory"
}
-# Automake should always and unconditionally require the `missing'
-# and `install-sh' scripts.
+# Automake should always and unconditionally require the 'missing'
+# and 'install-sh' scripts.
check_ <<'END'
== Name ==
minimal
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test an example from the manual about the `amhello' package:
+# Test an example from the manual about the 'amhello' package:
# using DESTDIR to build simple, no-frills binary packages.
am_create_testdir=empty
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test an example from the manual about the `amhello' package:
+# Test an example from the manual about the 'amhello' package:
# using VPATH builds to configure the same package with different
# options.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test an example from the manual about the `amhello' package:
+# Test an example from the manual about the 'amhello' package:
# cross-compiling a package from Linux/Unix to MinGW.
am_create_testdir=empty
END
cat > Makefile.am <<'END'
-# The following should expand to `-Wnone -Wno-error foreign -Wportability'.
+# The following should expand to '-Wnone -Wno-error foreign -Wportability'.
AUTOMAKE_OPTIONS = $(foo) foreign
AUTOMAKE_OPTIONS += ${bar}
foo = $(foo1)
foo2 += $(foo3)
foo3 = -Wno-error
bar = -Wportability
-# This will give a warning with `-Wportability'.
+# This will give a warning with '-Wportability'.
zardoz :=
-# This would give a warning with `-Woverride'.
+# This would give a warning with '-Woverride'.
install:
END
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure `ar-lib' wraps the Microsoft Library Manager (lib) correctly.
+# Make sure 'ar-lib' wraps the Microsoft Library Manager (lib) correctly.
am_create_testdir=empty
required=xsi-lib-shell
# Test if AM_PROG_AR triggers the use of the ar-lib script.
# This test requires Microsoft lib.
-# Keep this test in sync with sister test `ar-lib5b.test'.
+# Keep this test in sync with sister test 'ar-lib5b.test'.
required=lib
. ./defs || Exit 1
$AUTOCONF
$AUTOMAKE --add-missing
-# Sanity check: test that it is ok to use `am_cv_ar_interface' as we do.
+# Sanity check: test that it is ok to use 'am_cv_ar_interface' as we do.
$FGREP 'am_cv_ar_interface=' configure
./configure AR=lib RANLIB=:
# Test if AM_PROG_AR triggers the use of the ar-lib script.
# This test does not require Microsoft lib.
-# Keep this test in sync with sister test `ar-lib5a.test'.
+# Keep this test in sync with sister test 'ar-lib5a.test'.
. ./defs || Exit 1
#! /bin/sh
echo lib command line: $* >&2 # For debugging.
case " $* " in
- # The `-OUT:' option is used by tests in configure. So don't create
- # the `ar-lib-worked' file here, as that might cause spurious passes
+ # The '-OUT:' option is used by tests in configure. So don't create
+ # the 'ar-lib-worked' file here, as that might cause spurious passes
# of this test; but don't fail either, as that would confuse said
# configure tests.
*' -OUT:'*) exit 0;;
- # This means that $* looks like a command-line for `ar'. We have to
+ # This means that $* looks like a command-line for 'ar'. We have to
# exit with failure here, to accommodate the two following ortoghonal
# scenarios:
- # 1. when `lib' is tested by configure, this will tell that it does
- # not use the ar(1) interface, so that the `ar-lib' script will
+ # 1. when 'lib' is tested by configure, this will tell that it does
+ # not use the ar(1) interface, so that the 'ar-lib' script will
# get involved;
- # 2. when `lib' is called by the Makefile, an ar-style command line
- # passed to it would mean that the `ar-lib' script has failed to
+ # 2. when 'lib' is called by the Makefile, an ar-style command line
+ # passed to it would mean that the 'ar-lib' script has failed to
# properly munge the command line, or hasn't been invoked to do so.
*\ c*) exit 1;;
# Assume everything else is OK.
$AUTOCONF
$AUTOMAKE --add-missing
-# Sanity check: test that it is ok to use `am_cv_ar_interface' as we do.
+# Sanity check: test that it is ok to use 'am_cv_ar_interface' as we do.
$FGREP 'am_cv_ar_interface=' configure
./configure AR=lib RANLIB=:
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test AM_PROG_AR ordering requirements
-# Keep this test in sync with sister test `ar-lib6b.test'.
+# Keep this test in sync with sister test 'ar-lib6b.test'.
required=libtoolize
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test AM_PROG_AR ordering requirements for older Libtools
-# Keep this test in sync with sister test `ar-lib6a.test'.
+# Keep this test in sync with sister test 'ar-lib6a.test'.
required=libtoolize
. ./defs || Exit 1
# On fast machines the autom4te.cache created during the above run of
# $AUTOMAKE is likely to have the same time stamp as the configure.ac
# created below; thus causing traces for the old configure.ac to be
-# used. We could do `$sleep', but it's faster to erase the
+# used. We could do '$sleep', but it's faster to erase the
# directory. (Erase autom4te*.cache, not autom4te.cache, because some
# bogus installations of Autoconf use a versioned cache.)
rm -rf autom4te*.cache
# On fast machines the autom4te.cache created during the above run of
# $AUTOMAKE is likely to have the same time stamp as the configure.ac
# created below; thus causing traces for the old configure.ac to be
-# used. We could do `$sleep', but it's faster to erase the
+# used. We could do '$sleep', but it's faster to erase the
# directory. (Erase autom4te*.cache, not autom4te.cache, because some
# bogus installations of Autoconf use a versioned cache.)
rm -rf autom4te*.cache
# On fast machines the autom4te.cache created during the above run of
# $AUTOMAKE is likely to have the same time stamp as the configure.ac
# created below; thus causing traces for the old configure.ac to be
-# used. We could do `$sleep', but it's faster to erase the
+# used. We could do '$sleep', but it's faster to erase the
# directory. (Erase autom4te*.cache, not autom4te.cache, because some
# bogus installations of Autoconf use a versioned cache.)
rm -rf autom4te*.cache
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that `acconfig.h' is *not* automatically distributed when
+# Check that 'acconfig.h' is *not* automatically distributed when
# placed in a subdirectory.
# Related to automake bug#7819.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that `acconfig.h' is automatically distributed if it exists
+# Check that 'acconfig.h' is automatically distributed if it exists
# (at automake runtime).
# Related to automake bug#7819.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that `aclocal.m4' is not automatically distributed if not
-# required to build `configure'. This is *really* a corner-case
+# Check that 'aclocal.m4' is not automatically distributed if not
+# required to build 'configure'. This is *really* a corner-case
# check, and the behaviour it checks is not documented either, so
# if that behaviour is deliberately changed in the future, just
# remove this test.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that `configure', `configure.ac' and `configure.in' are *not*
+# Check that 'configure', 'configure.ac' and 'configure.in' are *not*
# automatically distributed when placed in a subdirectory.
# Related to automake bug#7819.
re='Files .*automatically distributed.*if found'
# The automake manual states that the list of automatically-distributed
-# files should be given by `automake --help'.
+# files should be given by 'automake --help'.
list1=`$AUTOMAKE --help \
| sed -n "/^$re.*always/,/^ *$/p" \
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that `stamp-vti' is automatically distributed when info_TEXINFOS
+# Check that 'stamp-vti' is automatically distributed when info_TEXINFOS
# and version.texi are involved.
# Related to automake bug#7819.
# discussion of automake bug#7819:
# <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7819>
#
-# Keep this test in sync with sister test `autodist.test'.
+# Keep this test in sync with sister test 'autodist.test'.
. ./defs || Exit 1
$AUTOCONF
# The automake manual states that the list of automatically-distributed
-# files should be given by `automake --help'.
+# files should be given by 'automake --help'.
list=`$AUTOMAKE --help \
| sed -n '/^Files.*automatically distributed.*if found.*always/,/^ *$/p' \
| sed 1d`
# Check that automake really automatically distributes all the files
# it advertises to do.
# Related to automake bug#7819.
-# Keep this test in sync with sister test `autodist-subdir.test'.
+# Keep this test in sync with sister test 'autodist-subdir.test'.
am_create_testdir=empty
. ./defs || Exit 1
$AUTOCONF
# The automake manual states that the list of automatically-distributed
-# files should be given by `automake --help'.
+# files should be given by 'automake --help'.
list=`$AUTOMAKE --help \
| sed -n '/^Files.*automatically distributed.*if found.*always/,/^ *$/p' \
| sed 1d`
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Removal recovery rules for AC_CONFIG_HEADERS should not remove files
-# with `make -n'.
+# with 'make -n'.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure that, if AC_CONFIG_AUX_DIR is not specified, Automake tries
-# to use `.', `..' and `../..', in precisely that order.
+# to use '.', '..' and '../..', in precisely that order.
. ./defs || Exit 1
: We must end up with AC_CONFIG_AUX_DIR = .. #
# -------------------------------------------- #
-# Automake finds `install-sh' in `.', so it assumes that auxdir is `.';
-# but it won't find `missing' in `.', so it will fail.
+# Automake finds 'install-sh' in '.', so it assumes that auxdir is '.';
+# but it won't find 'missing' in '.', so it will fail.
: > install-sh
AUTOMAKE_fails
grep 'required file.*[^.]\./missing.*not found' stderr
: We must end up with AC_CONFIG_AUX_DIR = ../.. #
# ----------------------------------------------- #
-# Automake finds `install-sh' in `.', so it assumes that auxdir is `.';
-# but it won't find `missing' in `.', so it will fail.
+# Automake finds 'install-sh' in '.', so it assumes that auxdir is '.';
+# but it won't find 'missing' in '.', so it will fail.
: > install-sh
AUTOMAKE_fails
grep 'required file.*[^.]\./missing.*not found' stderr
rm -f install-sh
-# Automake finds `install-sh' in `..', so it assumes that auxdir is `..';
-# but it won't find `missing' in `.', so it will fail.
+# Automake finds 'install-sh' in '..', so it assumes that auxdir is '..';
+# but it won't find 'missing' in '.', so it will fail.
: > ../install-sh
AUTOMAKE_fails
grep 'required file.*[^.]\.\./missing.*not found' stderr
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure AC_CONFIG_AUX_DIR works correctly.
-# This test calls AC_CONFIG_AUX_DIR with a `.' argument, thus explicitly
+# This test calls AC_CONFIG_AUX_DIR with a '.' argument, thus explicitly
# making the top-level directory the config auxdir.
# Keep this in sync with sister tests auxdir6.test and auxdir8.test.
# Test to make sure AC_CONFIG_AUX_DIR works correctly.
# This test tries without an explicit call to AC_CONFIG_AUX_DIR;
-# the config auxdir should be implicitly defined to `.' since
+# the config auxdir should be implicitly defined to '.' since
# the install-sh, mkinstalldirs, etc., scripts are in the top-level
# directory.
# Keep this in sync with sister tests auxdir6.test and auxdir7.test.
# from being AC_DEFINE'd.
$EGREP 'pkg(name|version)' config.h && Exit 1
# This is required because even relatively-recent versions of the
- # BSD shell wrongly exit when the `errexit' shell flag is active if
+ # BSD shell wrongly exit when the 'errexit' shell flag is active if
# the last command of a compound statement fails, even if it should
# be protected by the use of "&&".
:
empty=''
cat > Makefile.am <<'END'
-## Leading `:;' here required to work around bugs of (at least) bash 3.2
+## Leading ':;' here required to work around bugs of (at least) bash 3.2
got: Makefile
@:; { \
echo 'PACKAGE = $(PACKAGE)'; \
### Run 2 ###
cat > configure.in <<'END'
-dnl: `AC_INIT' in Autoconf <= 2.63 doesn't have an URL argument.
-dnl: Luckily, `AC_AUTOCONF_VERSION' and `m4_version_prereq' are
+dnl: 'AC_INIT' in Autoconf <= 2.63 doesn't have an URL argument.
+dnl: Luckily, 'AC_AUTOCONF_VERSION' and 'm4_version_prereq' are
dnl: both present in autoconf 2.62, which we require; so that we
dnl: can at least use the following workaround.
m4_version_prereq([2.64],
# Backward-compatibility test: try to build and distribute a package
# using obsoleted forms of AC_INIT, AM_INIT_AUTOMAKE and AC_OUTPUT.
# This script can also serve as mild stress-testing for Automake.
-# See also the similar test `backcompat6.test'.
+# See also the similar test 'backcompat6.test'.
am_parallel_tests=no
am_create_testdir=empty
# Backward-compatibility test: try to build and distribute a package
# using obsoleted forms of AC_INIT, AM_INIT_AUTOMAKE and AC_OUTPUT.
# This script can also serve as mild stress-testing for Automake.
-# See also the similar test `backcompat5.test'.
+# See also the similar test 'backcompat5.test'.
required=cc
am_create_testdir=empty
./foo
## Do not anchor the regexps w.r.t. the end of line, because on
## MinGW/MSYS, grep may assume LF line endings only, while our
-## `foo' program may generate CRLF line endings.
+## 'foo' program may generate CRLF line endings.
./foo | grep '^PACKAGE = nonesuch-zardoz!'
./foo | echo '^VERSION = nonesuch-0\.1!'
endif
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# We must skip the backslash, not complain about `./\' not existing.
+# We must skip the backslash, not complain about './\' not existing.
# Reported by Rick Scott <rwscott@omnisig.com>
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# PR 511: Make sure we warn about e.g. AC_CONFIG_FILES([./gmakefile]),
-# as not all make implementations treat `file' and `./file' equally.
+# as not all make implementations treat 'file' and './file' equally.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure name canonicalization happens for static libraries.
-# Keep this in sync with sister test `canon6.test'.
+# Keep this in sync with sister test 'canon6.test'.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure name canonicalization happens for libtool libraries.
-# Keep this in sync with sister test `canon4.test'.
+# Keep this in sync with sister test 'canon4.test'.
required='libtoolize'
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that canonicalization does not transliterate the `@' charactrer.
+# Check that canonicalization does not transliterate the '@' charactrer.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure we can compile when the compiler doesn't
-# understand `-c -o'.
+# understand '-c -o'.
required=gcc
. ./defs || Exit 1
chmod +x Mycomp
-# Make sure the compiler doesn't understand `-c -o'
+# Make sure the compiler doesn't understand '-c -o'
CC=`pwd`/Mycomp
export CC
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test to make sure `compile' doesn't call 'mv SRC SRC'.
+# Test to make sure 'compile' doesn't call 'mv SRC SRC'.
required=gcc
. ./defs || Exit 1
mkdir build
cd build
-# Make sure the compiler doesn't understand `-c -o'
+# Make sure the compiler doesn't understand '-c -o'
CC=`pwd`/../Mycomp
export CC
./configure
-# Some make implementations don't grok the `-j' option.
+# Some make implementations don't grok the '-j' option.
$MAKE -j1 || Exit 77
for j in '' -j1 -j2; do
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check that the testsuite driver (either with or without the
-# parallel-tests option enabled) exports the `srcdir' value in the
+# parallel-tests option enabled) exports the 'srcdir' value in the
# environment of the tests. This is documented in the manual.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check @substituted@ TESTS, some of which are also PROGRAMS.
-# See also sister test `check-subst.test'.
+# See also sister test 'check-subst.test'.
required='cc native'
. ./defs || Exit 1
# Check @substituted@ TESTS.
# Note that in this test, we rely on the .test extension for the
# substituted names: this is necessary for parallel-tests.
-# See also sister test `check-subst-prog.test'.
+# See also sister test 'check-subst-prog.test'.
. ./defs || Exit 1
test -f hammer.sum
test -f spanner.log
test -f spanner.sum
- # This checks will be run only by the autogenerated `check12-p.test'.
+ # This checks will be run only by the autogenerated 'check12-p.test'.
if test x"$am_parallel_tests" = x"yes"; then
test -f test-suite.log
test -f a.log
grep 'FAIL:' spanner.sum && Exit 1
B_EXIT_STATUS=1 $MAKE check && Exit 1
- # This checks will be run only by the autogenerated `check12-p.test'.
+ # This checks will be run only by the autogenerated 'check12-p.test'.
if test x"$am_parallel_tests" = x"yes"; then
cat test-suite.log
cat a.log
CHECKLOCAL_EXIT_STATUS=1 $MAKE check && Exit 1
grep 'check-local failed :-(' local.log
- # Do not trust the exit status of `make -k'.
+ # Do not trust the exit status of 'make -k'.
NAIL=screw B_EXIT_STATUS=23 CHECKLOCAL_EXIT_STATUS=1 $MAKE -k check || :
test -f hammer.log
test -f hammer.sum
test -f spanner.sum
grep 'FAIL: test_hammer' hammer.sum
grep 'FAIL:' spanner.sum && Exit 1
- # This checks will be run only by the autogenerated `check12-p.test'.
+ # This checks will be run only by the autogenerated 'check12-p.test'.
if test x"$am_parallel_tests" = x"yes"; then
cat test-suite.log
cat a.log
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure `check:' and `install:' honor $(BUILT_SOURCES).
+# Make sure 'check:' and 'install:' honor $(BUILT_SOURCES).
# PR/359.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure `make -k check' processes all directories.
+# Make sure 'make -k check' processes all directories.
. ./defs || Exit 1
grep '^FAIL: fail\.sh *$' stdout
grep '^PASS: ok\.sh *$' stdout && Exit 1
-# The exit status of `make -k' can be anything
+# The exit status of 'make -k' can be anything
# (depending on the Make implementation)
$MAKE -k check >stdout || :
cat stdout
grep '^[^X]*PASS.* sub/bar' stdout
grep '^[^X]*FAIL.* baz' stdout
grep 'XFAIL.* sub/baz' stdout
-# `parallel-tests' should not add circular dependencies.
-# Look for known warnings from a couple of `make' implementations.
+# 'parallel-tests' should not add circular dependencies.
+# Look for known warnings from a couple of 'make' implementations.
grep -i 'circular.*dependency' stderr && Exit 1
grep -i 'graph cycles' stderr && Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure ":" works with files automake generates.
-# See also sister test `colon3.test'.
+# See also sister test 'colon3.test'.
. ./defs || Exit 1
$MAKE dummy
# Again, make sure that the generated Makefile do not unduly
-# refer to `zardoz' .
+# refer to 'zardoz' .
$MAKE -n zardoz && Exit 1
$sleep
# Make sure ":" works with files automake generates.
# This test is for multiple ":"s.
-# See also sister test `colon2.test'.
+# See also sister test 'colon2.test'.
. ./defs || Exit 1
$MAKE dummy
# Again, make sure that the generated Makefile do not unduly
-# refer to `zardoz' .
+# refer to 'zardoz' .
$MAKE -n zardoz && Exit 1
$sleep
: > Makefile.am
: > subdir/foo
cat > subdir/Makefile.am << 'END'
-# DIST_COMMON should contain `foo', not `subdir/foo'.
+# DIST_COMMON should contain 'foo', not 'subdir/foo'.
test:
case '$(DIST_COMMON)' in *subdir/foo*) exit 1;; *) exit 0;; esac
echo ' ' $(DIST_COMMON) ' ' | grep '[ /]foo '
$ACLOCAL
$AUTOMAKE
-# Should nowhere refer to `bar.in'.
+# Should nowhere refer to 'bar.in'.
$FGREP 'bar.in' Makefile.in subdir/Makefile.in && Exit 1
$AUTOCONF
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test Automake TESTS color output, by forcing it.
-# Keep this in sync with the sister test `color2.test'.
+# Keep this in sync with the sister test 'color2.test'.
. ./defs || Exit 1
export TERM
esc='\e'
-# Escape `[' for grep, below.
+# Escape '[' for grep, below.
red="$esc\[0;31m"
grn="$esc\[0;32m"
lgn="$esc\[1;32m"
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test Automake TESTS color output, using the expect(1) program.
-# Keep this in sync with the sister test `color.test'.
+# Keep this in sync with the sister test 'color.test'.
. ./defs || Exit 1
export TERM
esc='\e'
-# Escape `[' for grep, below.
+# Escape '[' for grep, below.
red="$esc\[0;31m"
grn="$esc\[0;32m"
lgn="$esc\[1;32m"
*) skip_ "grep can't parse nonprinting characters";;
esac
-# This test requires a working a working `expect' program.
+# This test requires a working a working 'expect' program.
# Creative quoting required to avoid spurious maintainer-check failure.
(set +e; expect -c 'exit ''77'; test $? -eq 77) \
|| skip_ "requires a working expect program"
# in proceeding.
cat > Makefile <<'END'
all:
-## Creative quoting in the `echo' below to avoid risk of spurious output
-## matches by `expect', below.
+## Creative quoting in the 'echo' below to avoid risk of spurious output
+## matches by 'expect', below.
@test -t 1 && echo "stdout" "is" "a" "tty"
END
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure that `#' as start of word in AUTOMAKE_OPTIONS means
+# Make sure that '#' as start of word in AUTOMAKE_OPTIONS means
# comment.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure that `#' after a tab is a failure.
+# Make sure that '#' after a tab is a failure.
# The Tru64 Unix V5.1 system make will pass these to the
-# shell, which in turn can't find `#' as a command.
+# shell, which in turn can't find '#' as a command.
# Sigh. Some vendors must be destroyed.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure `compile' preserves spaces in its arguments.
+# Make sure 'compile' preserves spaces in its arguments.
am_create_testdir=empty
. ./defs || Exit 1
test ! -f a.o
test -f a.c
-# Make sure `compile' works for .obj too.
+# Make sure 'compile' works for .obj too.
./compile touch a.obj -- -o ac.obj a.c
test ! -f a.obj
test ac.obj
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure `compile' deals correctly with Windows-style paths.
+# Make sure 'compile' deals correctly with Windows-style paths.
am_create_testdir=empty
. ./defs || Exit 1
# Backslashes in the input and the output name should be accepted.
# Since this test might run on non-w32 systems, we need to be careful not
-# to use any backslash sequences which might be interpreted by `echo'.
+# to use any backslash sequences which might be interpreted by 'echo'.
amtest_source='libltdl\libltdl\slist.c'
amtest_object='libltdl\libltdl\libltdl_libltdl_la-slist.obj'
amtest_obj='slist.o'
fi
case $PATH_SEPARATOR in
';'|':');;
- *) skip_ "unrecognized PATH separator \`$PATH_SEPARATOR'"
+ *) skip_ "unrecognized PATH separator '$PATH_SEPARATOR'"
esac
amtest_source='C:\libltdl\libltdl\slist.c'
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure `compile' wraps the Microsoft C/C++ compiler (cl) correctly
+# Make sure 'compile' wraps the Microsoft C/C++ compiler (cl) correctly
am_create_testdir=empty
required=xsi-lib-shell
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure `compile' wraps the Microsoft C/C++ compiler (cl) correctly
+# Make sure 'compile' wraps the Microsoft C/C++ compiler (cl) correctly
# with respect to absolute paths.
required='cl'
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure the file name translation in the `compile' script works
+# Make sure the file name translation in the 'compile' script works
# correctly
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure `compile' searches libraries correctly
+# Make sure 'compile' searches libraries correctly
am_create_testdir=empty
required=xsi-lib-shell
$ACLOCAL
$AUTOMAKE
-# `b top' so that
+# 'b top' so that
sed -n '
/[oO][bB][jJ][eE][cC][tT].* =/ {
: loop
if C1
a_LDADD = $(MYSUB)
a_DEPENDENCIES = $(MYSUB) nonsense.a
-# Note that `nonsense.a' is there just to make sure Automake insn't
+# Note that 'nonsense.a' is there just to make sure Automake insn't
# using some self computed a_DEPENDENCIES variable.
endif
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Ensure the right condition is listed after `else' and `endif'.
+# Ensure the right condition is listed after 'else' and 'endif'.
. ./defs || Exit 1
: > include/config.h.in
: > acconfig.h
-# The test used to fail if `include/Makefile.am' was created (!)
+# The test used to fail if 'include/Makefile.am' was created (!)
: > include/Makefile.am
$ACLOCAL
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure several config headers are allowed.
-# See also sister "semantic" test `confh8.test'.
+# See also sister "semantic" test 'confh8.test'.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure several config headers are allowed.
-# See also sister "minimalistic" test `confh7.test'.
+# See also sister "minimalistic" test 'confh7.test'.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure links created by AC_CONFIG_LINKS get removed with
-# `make distclean'
+# 'make distclean'
. ./defs || Exit 1
$AUTOCONF
./configure
-# Make sure nothing is deleted by `make clean'
+# Make sure nothing is deleted by 'make clean'
$MAKE clean
test -r dest
test -f src
test -f sdir/src2
-# Make sure the links are deleted by `make distclean' and the original files
+# Make sure the links are deleted by 'make distclean' and the original files
# are not.
$MAKE distclean
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure links to _identical files_ created by AC_CONFIG_LINKS get
-# removed with `make distclean' only if doing a VPATH build.
+# removed with 'make distclean' only if doing a VPATH build.
. ./defs || Exit 1
$MAKE test
-# Make sure nothing is deleted by `make clean'
+# Make sure nothing is deleted by 'make clean'
$MAKE clean
test -f ../src
test -f ../nonmk-subdir/src3
test -f ../sdir/mk-subdir/src4
-# Make sure the links are deleted by `make distclean' and the original files
+# Make sure the links are deleted by 'make distclean' and the original files
# are not.
$MAKE distclean
$MAKE test
-# Make sure nothing is deleted by `make distclean'
+# Make sure nothing is deleted by 'make distclean'
$MAKE distclean
test -f src
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test to make sure `-c' works. Report from Andris Pavenis.
-# See also the much more in-depth test `add-missing'.
+# Test to make sure '-c' works. Report from Andris Pavenis.
+# See also the much more in-depth test 'add-missing'.
. ./defs || Exit 1
$ACLOCAL
-# `automake -a' called without `-c' should create symlinks by default,
+# 'automake -a' called without '-c' should create symlinks by default,
# even when there is already a non-symlinked required auxiliary file.
mkdir auxdir
is_not_symlink auxdir/depcomp
test FAKE-DEPCOMP = `cat auxdir/depcomp`
-# `automake -a -c' should not create symlinks, even when there are
+# 'automake -a -c' should not create symlinks, even when there are
# already symlinked required auxiliary files.
rm -rf auxdir
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# The `cscope' target should not fail if there are no sources.
+# The 'cscope' target should not fail if there are no sources.
required=
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# The `cscope' target should not fail if there are no sources in a subdir.
-# In practice this means `cscope' should not be invoked if cscope.files
+# The 'cscope' target should not fail if there are no sources in a subdir.
+# In practice this means 'cscope' should not be invoked if cscope.files
# is empty.
required=cscope
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test that `.c++' extension works.
+# Test that '.c++' extension works.
# From Ralf Corsepius.
. ./defs || Exit 1
mkdir sub1 sub2
: > sub1/Makefile.am
cat > sub2/Makefile.am <<'END'
-# The `-Wall' after `cygnus' should ensure no warning gets
+# The '-Wall' after 'cygnus' should ensure no warning gets
# unintentionally disabled. We are particularly interested
-# in override warnings, for when (below) we add the `distdir'
+# in override warnings, for when (below) we add the 'distdir'
# target.
AUTOMAKE_OPTIONS = cygnus -Wall
END
$ACLOCAL
# FIXME: -Wno-override works around a buglet in definition of $(MAKEINFO)
-# in cygnus mode; see also xfailing test `txinfo5.test'.
+# in cygnus mode; see also xfailing test 'txinfo5.test'.
$AUTOMAKE --cygnus -Wno-override
$AUTOCONF
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test to make sure `-' can be used in path.
+# Test to make sure '-' can be used in path.
# Report from Matthew D. Langston.
. ./defs || Exit 1
# Enable the errexit shell flag early.
set -e
-# The name of the current test (without the `.test' suffix).
+# The name of the current test (without the '.test' suffix).
# Test scripts can override it if they need to (but this should
# be done carefully, and *before* including ./defs).
if test -z "$me"; then
exit 99
fi
AM_TESTS_REEXEC=no; export AM_TESTS_REEXEC
- # Cannot simply do `opts=$-', since the content of $- is not
+ # Cannot simply do "opts=$-", since the content of $- is not
# portable among different shells. So try to propagate only
# the portable and interesting options.
case $- in
unset DMAKE_CHILD DMAKE_DEF_PRINTED DMAKE_MAX_JOBS # For Solaris dmake.
# Unset verbosity flag.
unset V
-# Also unset variables that will let `make -e install' divert
+# Also unset variables that will let "make -e install" divert
# files into unwanted directories.
unset DESTDIR
unset prefix exec_prefix bindir datarootdir datadir docdir dvidir
unset oldincludedir pdfdir psdir sbindir sharedstatedir sysconfdir
# Unset variables that might change the "make distcheck" behaviour.
unset DISTCHECK_CONFIGURE_FLAGS AM_DISTCHECK_CONFIGURE_FLAGS
-# The tests call `make -e' but we do not want $srcdir from the environment
+# The tests call "make -e" but we do not want $srcdir from the environment
# to override the definition from the Makefile.
unset srcdir
# Also unset variables that control our test driver. While not
esac
}
-# This is used in `Exit' and in the exit trap. See comments in the latter
+# This is used in 'Exit' and in the exit trap. See comments in the latter
# for more information,
am__test_skipped=no
# We use a trap below for cleanup. This requires us to go through
# hoops to get the right exit status transported through the signal.
-# So use `Exit STATUS' instead of `exit STATUS' inside of the tests.
+# So use "Exit STATUS" instead of "exit STATUS" inside of the tests.
# Turn off errexit here so that we don't trip the bug with OSF1/Tru64
# sh inside this function.
Exit ()
# AUTOMAKE_fails [-d DESCRIPTION] [OPTIONS...]
# --------------------------------------------
-# Run automake with OPTIONS, and fail if doesn't exit with status `1'.
+# Run automake with OPTIONS, and fail if doesn't exit with status 1.
# Should be polymorphic for TAP and "plain" tests. The DESCRIPTION,
# when provided, is used for console reporting, only if the TAP
# protocol is in use in the current test script.
# extract_configure_help { --OPTION | VARIABLE-NAME } [FILES]
# -----------------------------------------------------------
-# Use this to extract from the output of `./configure --help' (or similar)
+# Use this to extract from the output of "./configure --help" (or similar)
# the description or help message associated to the given --OPTION or
# VARIABLE-NAME.
extract_configure_help ()
# grep_configure_help { --OPTION | VARIABLE-NAME } REGEXP
# -------------------------------------------------------
-# Grep the section of `./configure --help' output associated with either
+# Grep the section of "./configure --help" output associated with either
# --OPTION or VARIABLE-NAME for the given *extended* regular expression.
grep_configure_help ()
{
'')
# Use --version AND -v, because SGI Make doesn't fail on --version.
# Also grep for GNU because newer versions of FreeBSD make do
- # not complain about `--version' (they seem to silently ignore it).
+ # not complain about --version (they seem to silently ignore it).
if $MAKE --version -v | grep GNU; then
am__using_gmake=yes
return 0
# Check that a testsuite run driven by the parallel-tests harness has
# had the specified numbers of test results (specified by kind).
# This function assumes that the output of "make check" or "make recheck"
-# has been saved in the `stdout' file in the current directory, and its
-# log in the `test-suite.log' file.
+# has been saved in the 'stdout' file in the current directory, and its
+# log in the 'test-suite.log' file.
count_test_results ()
{
# Use a subshell so that we won't pollute the script namespace.
$EGREP -i '(total|x?pass|x?fail|skip|error)' stdout || :
rc=0
# Avoid spurious failures with shells with "overly sensible"
- # `errexit' shell flag, such as e.g., Solaris /bin/sh.
+ # errexit shell flag, such as e.g., Solaris /bin/sh.
set +e
test `grep -c '^PASS:' stdout` -eq $pass || rc=1
test `grep -c '^XFAIL:' stdout` -eq $xfail || rc=1
# get_shell_script SCRIPT-NAME
# -----------------------------
-# Fetch an Automake-provided shell script from the `lib/' directory into
-# the current directory, and, if the `$am_test_prefer_config_shell'
+# Fetch an Automake-provided shell script from the 'lib/' directory into
+# the current directory, and, if the '$am_test_prefer_config_shell'
# variable is set to "yes", modify its shebang line to use $SHELL instead
# of /bin/sh.
get_shell_script ()
# fetch_tap_driver
# ----------------
-# Fetch the Automake-provided TAP driver from the `lib/' directory into
+# Fetch the Automake-provided TAP driver from the 'lib/' directory into
# the current directory, and edit its shebang line so that it will be
# run with the perl interpreter determined at configure time.
fetch_tap_driver ()
# Do not use --version, bzip2 still tries to compress stdin.
echo "$me: running bzip2 --help"
bzip2 --help \
- || skip_all_ "required program \`bzip2' not available"
+ || skip_all_ "required program 'bzip2' not available"
;;
cl)
CC=cl
# Don't export CFLAGS, as that could have been initialized to only
# work with the C compiler detected at configure time. If the user
- # wants CFLAGS to also influence `cl', he can still export CFLAGS
+ # wants CFLAGS to also influence 'cl', he can still export CFLAGS
# in the environment "by hand" before calling the testsuite.
export CC CPPFLAGS
echo "$me: running $CC -?"
- $CC -? || skip_all_ "Microsoft C compiler \`$CC' not available"
+ $CC -? || skip_all_ "Microsoft C compiler '$CC' not available"
;;
cscope)
# Sun cscope is interactive without redirection.
echo "$me: running cscope --version </dev/null"
cscope --version </dev/null \
- || skip_all_ "required program \`cscope' not available"
+ || skip_all_ "required program 'cscope' not available"
;;
cygpath)
echo "$me: running cygpath --version"
# to make sure we do not pollute the tests/ directory.
echo "$me: running etags --version -o /dev/null"
etags --version -o /dev/null \
- || skip_all_ "required program \`etags' not available"
+ || skip_all_ "required program 'etags' not available"
;;
GNUmake)
for make_ in "$MAKE" gmake gnumake :; do
unset make_
;;
gcc)
- # When gcc is required, export `CC=gcc' so that ./configure
+ # When gcc is required, export "CC=gcc" so that ./configure
# always use it. This is important only when the user
# has defined CC in his environment, otherwise ./configure will
# prefer gcc to other compilers.
;;
javac)
# The Java compiler from JDK 1.5 (and presumably earlier versions)
- # cannot handle the `-version' option by itself: it bails out
- # telling that source files are missing. Adding also the `-help'
+ # cannot handle the '-version' option by itself: it bails out
+ # telling that source files are missing. Adding also the '-help'
# option seems to solve the problem.
echo "$me: running javac -version -help"
javac -version -help || skip_all_ "Sun Java compiler not available"
;;
java)
- # See the comments above about `javac' for why we use also `-help'.
+ # See the comments above about 'javac' for why we use also '-help'.
echo "$me: running java -version -help"
java -version -help || skip_all_ "Sun Java interpreter not found"
;;
# create the archive, but lib will output its version.
echo "$me: running $AR -out:defstest.lib"
$AR -out:defstest.lib \
- || skip_all_ "Microsoft \`lib' utility not available"
+ || skip_all_ "Microsoft 'lib' utility not available"
;;
makedepend)
echo "$me: running makedepend -f-"
makedepend -f- \
- || skip_all_ "required program \`makedepend' not available"
+ || skip_all_ "required program 'makedepend' not available"
;;
makeinfo-html)
- # Make sure we have makeinfo, and it understands `--html'.
+ # Make sure we have makeinfo, and it understands '--html'.
echo "$me: running makeinfo --html --version"
makeinfo --html --version \
|| skip_all_ "cannot find a makeinfo program that groks the" \
- "\`--html' option"
+ "\'--html' option"
;;
mingw)
uname_s=`uname -s || echo UNKNOWN`
|| skip_all_ "DejaGnu is not available"
;;
tex)
- # No all versions of Tex support `--version', so we use
+ # No all versions of Tex support '--version', so we use
# a configure check.
if test -z "$TEX"; then
skip_all_ "TeX is required, but it wasn't found by configure"
fi
;;
texi2dvi-o)
- # Texi2dvi supports `-o' since Texinfo 4.1.
+ # Texi2dvi supports '-o' since Texinfo 4.1.
echo "$me: running texi2dvi -o /dev/null --version"
texi2dvi -o /dev/null --version \
- || skip_all_ "required program \`texi2dvi' not available"
+ || skip_all_ "required program 'texi2dvi' not available"
;;
lex)
test x"$LEX" = x"false" && skip_all_ "lex not found or disabled"
flex)
LEX=flex; export LEX
echo "$me: running flex --version"
- flex --version || skip_all_ "required program \`flex' not available"
+ flex --version || skip_all_ "required program 'flex' not available"
;;
bison)
YACC='bison -y'; export YACC
echo "$me: running bison --version"
- bison --version || skip_all_ "required program \`bison' not available"
+ bison --version || skip_all_ "required program 'bison' not available"
;;
*)
# Generic case: the tool must support --version.
# It is not likely but possible that $tool is a special builtin,
# in which case the shell is allowed to exit after an error.
# So, please leave the subshell here.
- ($tool --version) || skip_all_ "required program \`$tool' not available"
+ ($tool --version) || skip_all_ "required program '$tool' not available"
;;
esac
done
-# Using just `$testbuilddir' for the check here is ok, since the
+# Using just $testbuilddir for the check here is ok, since the
# further temporary subdirectory where the test will be run is
# ensured not to contain any whitespace character.
case $testbuilddir in
trap "fatal_ 'caught signal SIGQUIT'" 3
# Ignore further SIGPIPE in the trap code. This is required to avoid
# a very weird issue with some shells, at least when the execution of
- # the automake testsuite is driven by the `prove' utility: if prove
+ # the automake testsuite is driven by the 'prove' utility: if prove
# (or the make process that has spawned it) gets interrupted with
# Ctrl-C, the shell might go in a loop, continually getting a SIGPIPE,
# sometimes finally dumping core, other times hanging indefinitely.
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
# If Zsh is not started directly in Bourne-compatibility mode, it has
- # some incompatibilities in the handling of `$0' that conflict with
- # our usage: i.e., `$0' inside a file sourced with the `.' builtin is
+ # some incompatibilities in the handling of $0 that conflict with
+ # our usage: i.e., $0 inside a file sourced with the '.' builtin is
# temporarily set to the name of the sourced file.
# Work around this when possible, otherwise abort the script.
# Note that a bug in some versions of Zsh prevents us from resetting $0
am_original_ACLOCAL \
; do
if eval "test x\"\$$var\" != x" && env | grep "^$var=" >/dev/null; then
- echo "$argv0: variable \`$var' is set in the environment:" \
+ echo "$argv0: variable '$var' is set in the environment:" \
"this is unsafe" >&2
exit 99
fi
am_system_acdir=$top_testsrcdir/m4/acdir
;;
*)
- echo "$argv0: variable \`am_running_installcheck' has invalid"
- "value \`$am_running_installcheck'" >&2
+ echo "$argv0: variable 'am_running_installcheck' has invalid"
+ "value '$am_running_installcheck'" >&2
exit 99
;;
esac
# Tests who want complete control over aclocal or automake command-line
# options should use $am_original_ACLOCAL or $am_original_AUTOMAKE. The
-# `test -z' tests take care not to re-initialize them if defs-static
+# "test -z" tests take care not to re-initialize them if defs-static
# is re-sourced, as we want defs-static to remain really idempotent.
if test -z "$am_original_AUTOMAKE"; then
am_original_AUTOMAKE=${AM_TESTSUITE_AUTOMAKE-${AUTOMAKE-"automake-$APIVERSION"}}
GNU_CXXFLAGS=${AM_TESTSUITE_GNU_CXXFLAGS-${GNU_CXXFLAGS-'@GNU_CXXFLAGS@'}}
GNU_CFLAGS=${AM_TESTSUITE_GNU_CFLAGS-${GNU_CFLAGS-'@GNU_CFLAGS@'}}
-# No all versions of Tex support `--version', so we use a configure
+# No all versions of Tex support '--version', so we use a configure
# check to decide if tex is available. This decision is embodied in
# this variable.
TEX=${AM_TESTSUITE_TEX-'@TEX@'}
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Superficial test to check that dejagnu tests and automake-style
-# tests can coexist. See also related deeper test `check12.test'.
+# tests can coexist. See also related deeper test 'check12.test'.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# The stub rules emitted to work around the "deleted header problem"
-# for `.am' files shouldn't prevent the remake rules from correctly
+# for '.am' files shouldn't prevent the remake rules from correctly
# erroring out when a still-required file is missing.
# See also discussion about automake bug#9768.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# The stub rules emitted to work around the "deleted header problem"
-# for `.m4' files shouldn't prevent the remake rules from correctly
+# for '.m4' files shouldn't prevent the remake rules from correctly
# erroring out when a still-required file is missing.
# See also discussion about automake bug#9768.
# thus the second make will invoke depcomp with object='../../src/foo.o',
# causing errors such as:
#
-# touch: cannot touch `../../src/.deps/foo.TPo': No such file or directory
+# touch: cannot touch '../../src/.deps/foo.TPo': No such file or directory
# makedepend: error: cannot open "../../src/.deps/foo.TPo"
# ../../depcomp: line 560: ../../src/.deps/foo.TPo: No such file or directory
# <http://lists.gnu.org/archive/html/automake-patches/2011-05/msg00019.html>
#
# A partial failure of an earlier version of this test; some bad
-# post-processing of the `*.Po' files led to the following broken
-# contents of `src/sub/.deps/subfoo.Po':
+# post-processing of the '*.Po' files led to the following broken
+# contents of 'src/sub/.deps/subfoo.Po':
#
# > sub/subfoo.o: ../../depmod-data.dir/src/sub/subfoo.c \
# > ../../depmod-data.dir/src/foo.h
# Test for regressions in computation of names of .Po files for
# automatic dependency tracking.
-# Keep this in sync with sister test `depcomp8b.test', which checks the
+# Keep this in sync with sister test 'depcomp8b.test', which checks the
# same thing for libtool objects.
required=cc
# Test for regressions in computation of names of .Plo files for
# automatic dependency tracking.
-# Keep this in sync with sister test `depcomp8a.test', which checks the
+# Keep this in sync with sister test 'depcomp8a.test', which checks the
# same thing for non-libtool objects.
required='cc libtoolize'
# This tests for a bug reported by Henrik Frystyk Nielsen <frystyk@w3.org>
# In some cases the auto-dependency can get confused and try
-# to `-include' a directory (if a backslash-newline appears in _SOURCES).
+# to '-include' a directory (if a backslash-newline appears in _SOURCES).
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure that `make distcheck' can find some $(DESTDIR) omissions.
+# Make sure that 'make distcheck' can find some $(DESTDIR) omissions.
# PR/186.
# The feature we test here relies on read-only directories.
$AUTOCONF
# There should be no m4_include in aclocal.m4, even though m4/dirlist
-# contains `./dirlist-test' as a relative directory. Only -I directories
+# contains './dirlist-test' as a relative directory. Only -I directories
# are subject to file inclusion.
grep m4_include aclocal.m4 && Exit 1
grep 'GUILE-VERSION' configure
# This bug can occur only when we do a VPATH build of Automake
-# (because of the `-I' passed to aclocal in tests/defs/aclocal.in) but
-# it's OK because VPATH builds are done by `make distcheck'.
+# (because of the '-I' passed to aclocal in tests/defs/aclocal.in) but
+# it's OK because VPATH builds are done by 'make distcheck'.
grep 'I should not be included' configure && Exit 1
:
$AUTOCONF
# There should be no m4_include in aclocal.m4, even though m4/dirlist
-# contains `./dirlist-test' as a relative directory. Only -I directories
+# contains './dirlist-test' as a relative directory. Only -I directories
# are subject to file inclusion.
grep m4_include aclocal.m4 && Exit 1
$AUTOCONF
"$am_scriptdir"/install-sh -d $auxdir \
- || fatal_ "creating directory \`$auxdir' with install-sh"
+ || fatal_ "creating directory '$auxdir' with install-sh"
if test $add_missing = yes; then
$AUTOMAKE -a --copy
for f in $required_files; do
else
for f in $required_files; do
cp "$am_scriptdir"/$f $auxdir/$f \
- || fatal_ "faild to fetch auxiliary script \`$f'"
+ || fatal_ "faild to fetch auxiliary script '$f'"
# See comments above.
chmod a-w $auxdir/$f
done
$AUTOCONF
$AUTOMAKE -a
test -f sub/install-sh
-# Should work also without `--add-missing'.
+# Should work also without '--add-missing'.
$AUTOMAKE
./configure
# Files specified by AC_REQUIRE_AUX_FILE must exist, and they get
# automatically distributed by the top-level Makefile.am.
# Automake bug#9651 reported that this didn't happen when the build-aux
-# directory was set to `.' by AC_CONFIG_AUX_DIR.
+# directory was set to '.' by AC_CONFIG_AUX_DIR.
am_create_testdir=empty
. ./defs || Exit 1
END
mkdir subdir
- echo > subdir/Makefile.am # `echo', not `:', for Solaris /bin/sh.
+ echo > subdir/Makefile.am # 'echo', not ':', for Solaris /bin/sh.
test -z "$auxdir" || mkdir "$auxdir" || Exit 99
touch $auxdir/foo.txt $auxdir/bar.sh $auxdir/zardoz
cp "$am_scriptdir"/missing "$am_scriptdir"/install-sh $auxdir \
- || fatal_ "fetching auxiliary scripts \`missing' and \`install-sh'"
+ || fatal_ "fetching auxiliary scripts 'missing' and 'install-sh'"
$AUTOMAKE
./configure
$MAKE test
&& rm -rf setup \
|| fatal_ "creating common aclocal.m4 file"
-# Some make implementations (e.g., HP-UX) don't grok `-j', some require
-# no space between `-j' and the number of jobs (e.g., older GNU make
-# versions), and some *do* require a space between `-j' and the number
+# Some make implementations (e.g., HP-UX) don't grok '-j', some require
+# no space between '-j' and the number of jobs (e.g., older GNU make
+# versions), and some *do* require a space between '-j' and the number
# of jobs (e.g., Solaris dmake). We need a runtime test to see what
# works.
for MAKE_j4 in "$MAKE -j4" "$MAKE -j 4" false; do
: For shells with buggy 'set -e'.
done
-# Set variables `$compressor' and `$suffix'.
+# Set variables '$compressor' and '$suffix'.
setup_vars_for_compression_format ()
{
suffix=NONE compressor=NONE
append_to_opt $where_dist_nogzip no-dist-gzip
setup_vars_for_compression_format "$format"
# Do these before the am_opts and ac_opts variable can be munged
- # by `start_subtest'.
+ # by 'start_subtest'.
desc=
test -n "$am_opts" && desc=${desc:+"$desc "}"am=$am_opts"
test -n "$ac_opts" && desc=${desc:+"$desc "}"ac=$ac_opts"
echo 'AM_INIT_AUTOMAKE([' > am-init.m4
echo 'AUTOMAKE_OPTIONS =' > Makefile.am
-# Add half `dist-*' options to AM_INIT_AUTOMAKE, half to AUTOMAKE_OPTIONS.
+# Add half 'dist-*' options to AM_INIT_AUTOMAKE, half to AUTOMAKE_OPTIONS.
flip=:
for fmt in $all_compression_formats; do
test $fmt = gzip && continue
$AUTOCONF
$AUTOMAKE
# Use --srcdir with an absolute path because it's harder
-# to support in `distdir'.
+# to support in 'distdir'.
./configure --srcdir "`pwd`"
$MAKE test
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# The stub rules emitted to work around the "deleted header problem"
-# for `.am' files shouldn't prevent "make" from diagnosing a missing
-# required `.am' file from a distribution tarball.
+# for '.am' files shouldn't prevent "make" from diagnosing a missing
+# required '.am' file from a distribution tarball.
# See discussion about automake bug#9768.
. ./defs || Exit 1
./configure
-# A faulty distribution tarball, with a required `.am' file missing.
+# A faulty distribution tarball, with a required '.am' file missing.
# Building from it should fail, both for in-tree and VPATH builds.
ocwd=`pwd` || fatal_ "cannot get current working directory"
for vpath in false :; do
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# The stub rules emitted to work around the "deleted header problem"
-# for `.m4' files shouldn't prevent "make" from diagnosing a missing
-# required `.m4' file from a distribution tarball.
+# for '.m4' files shouldn't prevent "make" from diagnosing a missing
+# required '.m4' file from a distribution tarball.
# See discussion about automake bug#9768.
-# See also sister test `dist-missing-m4.test'.
+# See also sister test 'dist-missing-m4.test'.
. ./defs || Exit 1
./configure
-# A faulty distribution tarball, with a required `.m4' file missing.
+# A faulty distribution tarball, with a required '.m4' file missing.
# Building from it should fail, both for in-tree and VPATH builds.
ocwd=`pwd` || fatal_ "cannot get current working directory"
for vpath in false :; do
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# The stub rules emitted to work around the "deleted header problem"
-# for `.m4' files shouldn't prevent "make" from diagnosing a missing
-# required `.m4' file from a distribution tarball.
+# for '.m4' files shouldn't prevent "make" from diagnosing a missing
+# required '.m4' file from a distribution tarball.
# See discussion about automake bug#9768.
-# See also sister test `dist-missing-included-m4.test'.
+# See also sister test 'dist-missing-included-m4.test'.
. ./defs || Exit 1
./configure
-# A faulty distribution tarball, with a required `.m4' file missing.
+# A faulty distribution tarball, with a required '.m4' file missing.
# Building from it should fail, both for in-tree and VPATH builds.
ocwd=`pwd` || fatal_ "cannot get current working directory"
for vpath in false :; do
# make command line or in the environment.
env DISTCHECK_CONFIGURE_FLAGS='--enable-success sentence=it\ works\ :-\)' \
- $MAKE distcheck # Not `make -e' here, deliberately.
+ $MAKE distcheck # Not 'make -e' here, deliberately.
$MAKE distcheck \
DISTCHECK_CONFIGURE_FLAGS="--enable-success=yes sentence='it works :-)'"
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test that we can define a distcheck-hook to diagnose m4 files
-# missing from the dist tarball (interaction with `--install').
+# missing from the dist tarball (interaction with '--install').
# See automake bug#9037.
. ./defs || Exit 1
cwd=`pwd` || fatal_ "cannot get current working directory"
cp "$testsrcdir"/distcheck-hook-m4.am . \
- || fatal_ "cannot fetch makefile fragment \`distcheck-hook-m4.am'"
+ || fatal_ "cannot fetch makefile fragment 'distcheck-hook-m4.am'"
cat > Makefile.am << 'END'
-## The lack of `--install' here is meant.
+## The lack of '--install' here is meant.
ACLOCAL_AMFLAGS = -I m4
include $(srcdir)/distcheck-hook-m4.am
END
ACLOCAL="$ACLOCAL --system-acdir=$cwd/acdir"; export ACLOCAL
ACLOCAL_PATH=$cwd/pth; export ACLOCAL_PATH
-# We don't use `--install' here. Our distcheck-hook should catch this.
+# We don't use '--install' here. Our distcheck-hook should catch this.
$ACLOCAL -I m4
$AUTOCONF
$EGREP 'MY_(FOO|BAR|BAZ|ZAR)' configure && Exit 1 # Sanity check.
# On failure, some make implementations (such as Solaris make) print the
# whole failed recipe on stdout. The first grep works around this.
grep -v 'rm -rf ' output | grep -i 'autom4te.*\.cache' && Exit 1
- : # To placate `set -e'.
+ : To placate 'set -e'.
}
./configure
done
check_no_spurious_error
-# Now we use `--install', and "make distcheck" should pass.
+# Now we use '--install', and "make distcheck" should pass.
$ACLOCAL -I m4 --install
test -f m4/bar.m4 # Sanity check.
test -f m4/baz.m4 # Likewise.
# Check that we don't complain for files that should have been found.
$FGREP " (bar|baz|zar).m4" output && Exit 1
-# Now we again use `--install', and "make distcheck" should pass.
+# Now we again use '--install', and "make distcheck" should pass.
$ACLOCAL -I m4 --install
test -f m4/qux.m4 # Sanity check.
test -f m4/bla.m4 # Likewise.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test that we can define a distcheck-hook to diagnose outdated m4
-# files in a dist tarball (interaction with `--install').
+# files in a dist tarball (interaction with '--install').
# See automake bug#9037.
. ./defs || Exit 1
cwd=`pwd` || fatal_ "cannot get current working directory"
cp "$testsrcdir"/distcheck-hook-m4.am . \
- || fatal_ "cannot fetch makefile fragment \`distcheck-hook-m4.am'"
+ || fatal_ "cannot fetch makefile fragment 'distcheck-hook-m4.am'"
cat > Makefile.am << 'END'
-## The lack of `--install' here is meant.
+## The lack of '--install' here is meant.
ACLOCAL_AMFLAGS = -I m4
include $(srcdir)/distcheck-hook-m4.am
END
ACLOCAL="$ACLOCAL --system-acdir=$cwd/acdir"; export ACLOCAL
-# The use of `--install' here won't help when the installed file `.m4'
+# The use of '--install' here won't help when the installed file '.m4'
# will become out-of-date w.r.t. the one in the system acdir.
$ACLOCAL -I m4 --install
$AUTOCONF
# On failure, some make implementations (such as Solaris make) print the
# whole failed recipe on stdout. The first grep works around this.
grep -v 'rm -rf ' output | grep -i 'autom4te.*\.cache' && Exit 1
- : # To placate `set -e'.
+ : To placate 'set -e'.
}
# We start to use a new "third-party" macro in a new version
# Check that we don't complain for files that aren't outdated.
$EGREP " (foo|bar).m4" output && Exit 1
-# Now we again use `--install' explicitly, and "make distcheck"
+# Now we again use '--install' explicitly, and "make distcheck"
# should pass.
$ACLOCAL -I m4 --install
using_gmake || $MAKE Makefile
ACLOCAL_PATH="$cwd/pth"; export ACLOCAL_PATH
-# The explicit use of `--install' here won't help when the installed file
-# `.m4' will become out-of-date w.r.t. the one in the system acdir.
+# The explicit use of '--install' here won't help when the installed file
+# '.m4' will become out-of-date w.r.t. the one in the system acdir.
$ACLOCAL -I m4 --install
using_gmake || $MAKE Makefile
$MAKE distcheck
# Check that we don't complain for files that aren't outdated.
$EGREP " (foo|bar|baz).m4" output && Exit 1
-# Now we again use `--install' explicitly, and "make distcheck"
+# Now we again use '--install' explicitly, and "make distcheck"
# should pass.
$ACLOCAL -I m4 --install
using_gmake || $MAKE Makefile
AC_OUTPUT
END
-# NOTE: the use of `dir' as the name of the data file installed by hand
+# NOTE: the use of 'dir' as the name of the data file installed by hand
# is deliberate, and enhances coverage -- see definition and comments of
# lib/am/distdir.am:$(am__distuninstallcheck_listfiles).
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure the suggested `distcleancheck_listfiles' in the manual works.
-# The example Makefile.am we use is from the FAQ entry `distcleancheck'.
+# Make sure the suggested 'distcleancheck_listfiles' in the manual works.
+# The example Makefile.am we use is from the FAQ entry 'distcleancheck'.
required=cc
. ./defs || Exit 1
foo_SOURCES = foo.c
dist_man_MANS = foo.1
-# We write `./foo.1' inside the rule on purpose, to avoid VPATH rewriting
-# done by some `make' implementations.
+# We write './foo.1' inside the rule on purpose, to avoid VPATH rewriting
+# done by some 'make' implementations.
foo.1: foo$(EXEEXT)
echo man page for foo$(EXEEXT) > ./foo.1
test -f depcomp
# FIXME: the logic of this check and other similar ones in other
-# FIXME: `distcom*.test' files should be factored out in a common
-# FIXME: subroutine in `defs'...
+# FIXME: 'distcom*.test' files should be factored out in a common
+# FIXME: subroutine in 'defs'...
sed -n -e "
/^DIST_COMMON =.*\\\\$/ {
:loop
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure that depcomp and compile are added to DIST_COMMON.
-# Report from Pavel Roskin. Report of problems with `--no-force' from
+# Report from Pavel Roskin. Report of problems with '--no-force' from
# Scott James Remnant (Debian #206299)
. ./defs || Exit 1
for dir in . subdir; do
# FIXME: the logic of this check and other similar ones in other
- # FIXME: `distcom*.test' files should be factored out in a common
- # FIXME: subroutine in `defs'...
+ # FIXME: 'distcom*.test' files should be factored out in a common
+ # FIXME: subroutine in 'defs'...
sed -n -e "
/^DIST_COMMON =.*\\\\$/ {
:loop
cat subdir/dc.txt # Likewise.
$FGREP ' $(top_srcdir)/depcomp ' subdir/dc.txt
- # The `compile' script will be listed in the DIST_COMMON of the top-level
+ # The 'compile' script will be listed in the DIST_COMMON of the top-level
# Makefile because it's required in configure.ac (by AM_PROG_CC_C_O).
$FGREP ' $(top_srcdir)/compile ' dc.txt || $FGREP ' compile ' dc.txt
echo 'I bet you are reading me.' > README
END
-# Files required by `--gnu'.
+# Files required by '--gnu'.
: > NEWS
: > AUTHORS
: > ChangeLog
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure subdirs in EXTRA_DIST work. Also tests to make
-# sure *srcdir is properly handled. Note that using `./', as in
+# sure *srcdir is properly handled. Note that using './', as in
# EXTRA_DIST = ./joe
# does not work portably: it fails with HP-UX and Tru64 make.
# Also test DISTFILES containing a directory and a file in it,
cd build
../configure
$MAKE distdir
-# Check to make sure `foo' isn't made in build directory.
+# Check to make sure 'foo' isn't made in build directory.
test -d foo && Exit 1
rm -rf $me-1.0
VERSION=10 MKDIR_P='echo MKDIR_P' $MAKE -e distdir >stdout || :
cat stdout
-# Make sure no `./' appear in the directory names. srcdir is `..', so
+# Make sure no './' appear in the directory names. srcdir is '..', so
# this also checks that no directory is created in the source tree.
grep 'MKDIR_P.*\.' stdout && Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that distributed broken symlinks cause `make dist' to fail, and
+# Check that distributed broken symlinks cause 'make dist' to fail, and
# to do so with (mostly) meaningful diagnostic.
. ./defs || Exit 1
ln -s $lnk1 $lnka
ln -s $lnka $lnkb
-# Sanity checks. Use `test -r', since Solaris Sh doesn't grok `test -e'.
+# Sanity checks. Use 'test -r', since Solaris Sh doesn't grok 'test -e'.
test ! -r $lnk1
test ! -r $lnk2
test ! -r $lnka
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Simple checks on the `AM_WITH_DMALLOC' macro.
+# Simple checks on the 'AM_WITH_DMALLOC' macro.
. ./defs || Exit 1
cat > Makefile.am <<'END'
check-with-dmalloc:
## The AM_WITH_DMALLOC assumes that the user is a developer, so that
-## he is expected to install and make available the `dmalloc' library
+## he is expected to install and make available the 'dmalloc' library
## by his own. So we just check that proper linker and libs flags get
## added.
echo ' ' $(LDFLAGS) ' ' | grep ' -g '
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# We should support files with `$' characters in their names.
+# We should support files with '$' characters in their names.
# Java people need this.
# PR/317, reported by Eric Siegerman and Philip Fong.
# Require GNU make for this test. SunOS Make does not support
-# `$$' in a target or a dependency (it outputs the empty string instead).
+# '$$' in a target or a dependency (it outputs the empty string instead).
required=GNUmake
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure that -Wportability complains about recursive
-# variable expansions and variables containing `$', `$(...)', or
-# `${...}' in the name. We support recursive variable expansions using
-# the latter two constructs for the `silent-rules' option, and they are
+# variable expansions and variables containing '$', '$(...)', or
+# '${...}' in the name. We support recursive variable expansions using
+# the latter two constructs for the 'silent-rules' option, and they are
# rather widely supported in practice. OTOH variable definitions
-# containing a `$' on the left hand side of an assignment are not
+# containing a '$' on the left hand side of an assignment are not
# portable in practice, even though POSIX allows them. :-/
. ./defs || Exit 1
grep 'Makefile.am:6' stderr
grep 'Makefile.am:7' stderr
-# On the other hand, if we allow `silent-rules' mode, then we need to
+# On the other hand, if we allow 'silent-rules' mode, then we need to
# allow recursive variable expansion, too.
# This should work with the AM_SILENT_RULES macro.
. ./defs || Exit 1
#
-# First, try a setup where we have a `portability-recursive' warning,
-# but no "simple" `portability' warning.
+# First, try a setup where we have a 'portability-recursive' warning,
+# but no "simple" 'portability' warning.
#
cat >Makefile.am <<'EOF'
$ACLOCAL
-# Enabling `portability' warnings should enable `portability-recursive'
+# Enabling 'portability' warnings should enable 'portability-recursive'
# warnings.
AUTOMAKE_fails -Wnone -Wportability
grep 'recursive variable expansion' stderr
-# `portability-recursive' warnings can be enabled by themselves.
+# 'portability-recursive' warnings can be enabled by themselves.
AUTOMAKE_fails -Wnone -Wportability-recursive
grep 'recursive variable expansion' stderr
-# Various ways to disable `portability-recursive'.
+# Various ways to disable 'portability-recursive'.
$AUTOMAKE -Wno-all
$AUTOMAKE -Wno-portability
$AUTOMAKE -Wall -Wno-portability-recursive
-# `-Wno-portability-recursive' after `-Wportability' correctly disables
-# `portability-recursive' warnings.
+# '-Wno-portability-recursive' after '-Wportability' correctly disables
+# 'portability-recursive' warnings.
$AUTOMAKE -Wportability -Wno-portability-recursive
-# `-Wno-portability' disables `portability-recursive' warnings; but
-# a later `-Wportability-recursive' re-enables them. This time, we
+# '-Wno-portability' disables 'portability-recursive' warnings; but
+# a later '-Wportability-recursive' re-enables them. This time, we
# use AUTOMAKE_OPTIONS to specify the warning levels.
echo 'AUTOMAKE_OPTIONS = -Wno-portability' >> Makefile.am
$AUTOMAKE
grep 'recursive variable expansion' stderr
#
-# Now try a setup where we have both a `portability' warning and
-# a `portability-recursive' one.
+# Now try a setup where we have both a 'portability' warning and
+# a 'portability-recursive' one.
#
cat >Makefile.am <<'EOF'
$ACLOCAL --force
-# Can disable both `portability' and `portability-recursive' warnings.
+# Can disable both 'portability' and 'portability-recursive' warnings.
$AUTOMAKE -Wno-portability
-# Disabling `portability-recursive' warnings should not disable
-# `portability' warnings.
+# Disabling 'portability-recursive' warnings should not disable
+# 'portability' warnings.
AUTOMAKE_fails -Wportability -Wno-portability-recursive
grep AM_PROG_CC_C_O stderr
grep 'recursive variable expansion' stderr && Exit 1
-# Enabling `portability-recursive' warnings should not enable
-# all the `portability' warning.
+# Enabling 'portability-recursive' warnings should not enable
+# all the 'portability' warning.
AUTOMAKE_fails -Wno-portability -Wportability-recursive
grep AM_PROG_CC_C_O stderr && Exit 1
grep 'recursive variable expansion' stderr
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test to make sure `.' in an exe name doesn't fool us.
+# Test to make sure '.' in an exe name doesn't fool us.
# Report from Robert Collins.
# Also make sure we rewrite conditionals variables.
# Also check for PR/352.
for ext in f for f90 f95 F F90 F95 r m upc
do
- # Some versions of the BSD shell wrongly exit when `set -e' is active
+ # Some versions of the BSD shell wrongly exit when 'set -e' is active
# if the last command within a compound statement fails and is guarded
# by an && only. So we play safe and use the following idiom, instead
- # of the apparently simpler `grep ... && Exit 1'.
+ # of the apparently simpler 'grep ... && Exit 1'.
if grep "^$ext\.o:" Makefile.in; then Exit 1; else :; fi
grep "^\.$ext\.o:" Makefile.in
done
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check interactions between the `portability' and `extra-portability'
+# Check interactions between the 'portability' and 'extra-portability'
# warning categories:
-# 1. `-Wextra-portability' must imply `-Wportability'.
-# 2. `-Wno-portability' must imply `-Wno-extra-portability'.
-# 3. `-Wall' must imply `-Wextra-portability'.
+# 1. '-Wextra-portability' must imply '-Wportability'.
+# 2. '-Wno-portability' must imply '-Wno-extra-portability'.
+# 3. '-Wall' must imply '-Wextra-portability'.
. ./defs || Exit 1
# Make sure the test is useful.
AUTOMAKE_fails -Wextra-portability \
- || fatal_ "setup doesn't trigger \`extra-portability' warnings"
+ || fatal_ "setup doesn't trigger 'extra-portability' warnings"
$AUTOMAKE --foreign
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check interactions between the `portability-recursive' and
-# `extra-portability' warning categories.
+# Check interactions between the 'portability-recursive' and
+# 'extra-portability' warning categories.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test that EXTRA_PROGRAMS doesn't get removed because it is empty.
-# This check has been introduced in commit `Release-1-9-254-g9d0eaef'
-# into the former test `subst2.test'.
+# This check has been introduced in commit 'Release-1-9-254-g9d0eaef'
+# into the former test 'subst2.test'.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure flavors like `cygnus', `gnu', `gnits' and command line
-# options like `--ignore-deps' and `--silent-rules' are preserved across
+# Make sure flavors like 'cygnus', 'gnu', 'gnits' and command line
+# options like '--ignore-deps' and '--silent-rules' are preserved across
# automake reruns.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure `AC_F77_LIBRARY_LDFLAGS' works properly.
+# Make sure 'AC_F77_LIBRARY_LDFLAGS' works properly.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
. ./defs || Exit 1
# Tue Aug 11 09:50:48 1998 Matthew D. Langston <langston@SLAC.Stanford.EDU>
#
# This test currently fails with automake v. 1.3 since automake assumes
-# that elements of `bin_PROGRAMS' (e.g. zardoz) without a corresponding
-# `_SOURCES' (e.g. zardoz_SOURCES) should be compiled from `zardoz.c'
-# whether or not `zardoz.c' actually exists. For example, even if the
-# file `zardoz.c' doesn't exist but the file `zardoz.f' does exist, this
+# that elements of 'bin_PROGRAMS' (e.g. zardoz) without a corresponding
+# '_SOURCES' (e.g. zardoz_SOURCES) should be compiled from 'zardoz.c'
+# whether or not 'zardoz.c' actually exists. For example, even if the
+# file 'zardoz.c' doesn't exist but the file 'zardoz.f' does exist, this
# tests would still fail.
#
-# Therefore, for now I have put in the line `zardoz_SOURCES = zardoz.f'
-# (see below) so that automake's top-level `make check' won't fail, but
+# Therefore, for now I have put in the line 'zardoz_SOURCES = zardoz.f'
+# (see below) so that automake's top-level 'make check' won't fail, but
# this line should be removed once automake handles this situation
# correctly.
mkdir -p 12345678 && cd 12345678 && touch x || Exit 1
done) || skip_ "failed to create deep directory hierarchy"
-# AIX 5.3 `cp -R' is too buggy for `make dist'.
+# AIX 5.3 'cp -R' is too buggy for 'make dist'.
cp -R 12345678 t \
|| skip_ "'cp -R' failed to copy deep directory hierarchy"
mkdir -p 12345678 && cd 12345678 && touch x || Exit 1
done) || skip_ "failed to create deep directory hierarchy"
-# AIX 5.3 `cp -R' is too buggy for `make dist'.
+# AIX 5.3 'cp -R' is too buggy for 'make dist'.
cp -R $subdirname t \
|| skip_ "'cp -R' failed to copy deep directory hierarchy"
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test to make sure that `automake --force-missing' works.
+# Test to make sure that 'automake --force-missing' works.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test to make sure that `automake --force-missing' works, even with
+# Test to make sure that 'automake --force-missing' works, even with
# symlinked files.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure `..' invalid in subdir .o's.
+# Make sure '..' invalid in subdir .o's.
. ./defs || Exit 1
# ... only once.
test `wc -l < filt` = 1
-# Accept any outcome but `none'
+# Accept any outcome but 'none'
# (at the time of writing it should be gcc or gcc3).
grep -v none filt
my $tmpfile = "$outfile-t";
foreach my $f ($outfile, $tmpfile)
{
- unlink $f or die "$me: cannot unlink `$f': $!\n"
+ unlink $f or die "$me: cannot unlink '$f': $!\n"
if -e $f;
}
open (my $fh, ">$tmpfile")
- or die "$me: can't write to `$tmpfile': $!\n";
+ or die "$me: can't write to '$tmpfile': $!\n";
$func->($fh);
close $fh
- or die "$me: closing `$tmpfile': $!\n";
+ or die "$me: closing '$tmpfile': $!\n";
chmod ($perms & ~umask, $tmpfile)
- or die "$me: cannot change perms for `$tmpfile': $!\n";
+ or die "$me: cannot change perms for '$tmpfile': $!\n";
rename ($tmpfile, $outfile)
- or die "$me: renaming `$tmpfile' -> `$outfile: $!\n'";
+ or die "$me: renaming '$tmpfile' -> '$outfile: $!\n'";
}
sub line_match ($$)
# Try both curdir and srcdir, with curdir first, to play nice
# with VPATH builds.
open (FH, "<$file") or open (FH, "<$srcdir/$file")
- or die "$me: cannot open file `$file': $!\n";
+ or die "$me: cannot open file '$file': $!\n";
my $ret = 0;
while (defined (my $line = <FH>))
{
last;
}
}
- close FH or die "$me: cannot close file `$file': $!\n";
+ close FH or die "$me: cannot close file '$file': $!\n";
return $ret;
}
. "\$dir/$wrapped_test"; exit "\$?"
fi
done
- echo "\$0: cannot find wrapped test \\`$wrapped_test'" >&2
+ echo "\$0: cannot find wrapped test '$wrapped_test'" >&2
exit '99'
EOF
}
local @ARGV = @_;
GetOptions ('srcdir=s' => \$srcdir) or die "$me: usage error\n";
die "$me: too many arguments\n" if @ARGV > 0;
- die "$me: srcdir `$srcdir': not a directory\n" unless -d $srcdir;
+ die "$me: srcdir '$srcdir': not a directory\n" unless -d $srcdir;
}
#--------------------------------------------------------------------------
#
# For each test script in the Automake testsuite that itself tests
# features of the TESTS automake interface, define a sibling test
- # that does likewise, but with the option `parallel-tests' enabled.
+ # that does likewise, but with the option 'parallel-tests' enabled.
#
# A test is considered a candidate for sibling-generation if any
# Makefile.am generated by it define the TESTS variable.
#
# Individual tests can prevent the creation of such a sibling by
- # explicitly setting the `$am_parallel_tests' variable to either "yes"
+ # explicitly setting the '$am_parallel_tests' variable to either "yes"
# or "no". The rationale for this is that if the variable is set to
- # "yes", the test already uses the `parallel-tests' option, so that
+ # "yes", the test already uses the 'parallel-tests' option, so that
# a sibling would be just a duplicate; while if the variable is set
# to "no", the test doesn't support, or is not meant to run with, the
- # `parallel-tests' option, and forcing it to do so in the sibling
+ # 'parallel-tests' option, and forcing it to do so in the sibling
# would likely cause a spurious failure.
#
parallel_testsuite_harness =>
},
#
# For each test script in the Automake testsuite that tests features
- # of one or more automake-provided shell script from the `lib/'
+ # of one or more automake-provided shell script from the 'lib/'
# subdirectory by running those scripts directly (i.e., not thought
# make calls and automake-generated makefiles), define a sibling test
# that does likewise, but running the said script with the configure
# time $SHELL instead of the default system shell /bin/sh.
#
# A test is considered a candidate for sibling-generation if it calls
- # the `get_shell_script' function anywhere.
+ # the 'get_shell_script' function anywhere.
#
# Individual tests can prevent the creation of such a sibling by
- # explicitly setting the `$am_test_prefer_config_shell' variable
+ # explicitly setting the '$am_test_prefer_config_shell' variable
# to either "yes" or "no".
# The rationale for this is that if the variable is set to "yes",
# the test already uses $SHELL, so that a sibling would be just a
foreach my $wrapped_test (@wrapped_tests)
{
(my $base = $wrapped_test) =~ s/\.([^.]*)$//;
- my $suf = $1 or die "$me: test `$wrapped_test' lacks a suffix\n";
+ my $suf = $1 or die "$me: test '$wrapped_test' lacks a suffix\n";
my $wrapper_test = "$base-w.$suf";
# Register wrapper test as "autogenerated".
push @generated_tests, $wrapper_test;
# The test scripts are scanned for automatic dependency generation *after*
# the generated tests have been created, so they too can be scanned. To
-# do so correctly, we need to update the list in `@all_tests' to make it
+# do so correctly, we need to update the list in '@all_tests' to make it
# comprise also the freshly-generated tests.
push @all_tests, @generated_tests;
my $nodist_prereqs = $x->{nodist_prereqs} || "";
my @tests = grep { line_match $x->{line_matcher}, $_ } @all_tests;
map { s/\.[^.]*$//; s/$/\.log/; } (my @logs = @tests);
- print "## Added by deps-extracting key `$k'.\n";
+ print "## Added by deps-extracting key '$k'.\n";
## The list of all tests which have a dependency detected by the
## current key.
print join(" \\\n ", "${k}_TESTS =", @tests) . "\n";
print "\n";
}
-
__END__
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Dummy test case, aimed at reporting useful system information in the
-# final `test-suite.log'. This way, if a user experiences a failure in
-# the Automake test suite and then only sends us the `test-suite.log',
+# final 'test-suite.log'. This way, if a user experiences a failure in
+# the Automake test suite and then only sends us the 'test-suite.log',
# we won't have to ask him for more information to start analyzing the
# failure (that had happened too many times in the past!).
if test $st -eq 0; then
# This test SKIPs, so that all the information it has gathered and
- # printed will get unconditionally copied into the `test-suite.log'
+ # printed will get unconditionally copied into the 'test-suite.log'
# file.
Exit 77
fi
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Try to find the gettext `.m4' files and make them easily accessed
+# Try to find the gettext '.m4' files and make them easily accessed
# to the test cases requiring them.
# See also automake bug#9807.
echo "# Automatically generated by $me." > get.sh
echo : >> get.sh
-# The `gettextize' and `autopoint' scripts will look into Makefile.am.
+# The 'gettextize' and 'autopoint' scripts will look into Makefile.am.
echo ACLOCAL_AMFLAGS = -I m4 > Makefile.am
# Prefer autopoint to gettextize, since the more modern versions of the
# macros available, e.g., by properly setting ACLOCAL_PATH.
rm -rf m4
mkdir m4
- # See below for an explanation about the use the of `-Wno-syntax'.
+ # See below for an explanation about the use the of '-Wno-syntax'.
if $ACLOCAL -Wno-syntax -I m4 --install && test -f m4/gettext.m4; then
: # Gettext macros already accessible by default.
else
. ./get.sh
$ACLOCAL --force -I m4 || cat >> get.sh <<'END'
-# We need to use `-Wno-syntax', since we do not want our test suite
-# to fail merely because some third-party `.m4' file is underquoted.
+# We need to use '-Wno-syntax', since we do not want our test suite
+# to fail merely because some third-party '.m4' file is underquoted.
ACLOCAL="$ACLOCAL -Wno-syntax"
END
-# The file gettextize or autopoint might have copied in the `m4'
+# The file gettextize or autopoint might have copied in the 'm4'
# subdirectory of the test directory are going to be needed by
# other tests, so we must not remove the test directory.
keep_testdirs=yes
echo 'SUBDIRS = po intl' >Makefile.am
$AUTOMAKE --add-missing
-# Make sure distcheck runs `./configure --with-included-gettext'.
+# Make sure distcheck runs './configure --with-included-gettext'.
grep 'with-included-gettext' Makefile.in
-# `SUBDIRS = po intl' isn't required if po/ doesn't exist.
+# 'SUBDIRS = po intl' isn't required if po/ doesn't exist.
# PR/381.
rmdir po
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check gettext `external' support.
+# Check gettext 'external' support.
# PR/338, reported by Charles Wilson.
required='gettext'
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check gettext `AM_GNU_GETTEXT_INTL_SUBDIR' support.
+# Check gettext 'AM_GNU_GETTEXT_INTL_SUBDIR' support.
required='gettext'
. ./defs || Exit 1
END
# We use the same basename for all targets on purpose. This way
-# we make sure that `AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = nok'
-# will not match anything containing `nok'.
+# we make sure that 'AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = nok'
+# will not match anything containing 'nok'.
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = gnits
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check diagnostics about no-installman being disallowed in `gnu'.
+# Check diagnostics about no-installman being disallowed in 'gnu'.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure that our private macro `AM_DEP_TRACK' adds proper text to
+# Make sure that our private macro 'AM_DEP_TRACK' adds proper text to
# the configure help screen.
-# Keep this in sync with sister test `help-depend2.test'
+# Keep this in sync with sister test 'help-depend2.test'
. ./defs || Exit 1
# Make sure that when automake automatically activates support for
# dependency tracking, it adds proper text to the configure help screen.
-# Keep this in sync with sister test `help-depend.test'
+# Keep this in sync with sister test 'help-depend.test'
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure that our macro `AM_WITH_DMALLOC' adds proper text to
+# Make sure that our macro 'AM_WITH_DMALLOC' adds proper text to
# the configure help screen.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure that our grand macro `AM_INIT_AUTOMAKE' add proper text
+# Make sure that our grand macro 'AM_INIT_AUTOMAKE' add proper text
# to the configure help screen.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure that our macro `AM_PATH_LISPDIR' adds proper text to
+# Make sure that our macro 'AM_PATH_LISPDIR' adds proper text to
# the configure help screen.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure that our macro `AM_ENABLE_MULTILIB' adds proper text to
+# Make sure that our macro 'AM_ENABLE_MULTILIB' adds proper text to
# the configure help screen.
# FIXME: the features tested by this script has been moved in contrib.
# FIXME: We should move this script accordingly.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure that macro `AM_PATH_PYTHON' adds proper text to the
+# Make sure that macro 'AM_PATH_PYTHON' adds proper text to the
# configure help screen.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure that our macro `AM_SILENT_RULES' adds proper text to
+# Make sure that our macro 'AM_SILENT_RULES' adds proper text to
# the configure help screen.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure that our macro `AM_PROG_UPC' adds proper text to
+# Make sure that our macro 'AM_PROG_UPC' adds proper text to
# the configure help screen.
. ./defs || Exit 1
ACLOCAL=$am_original_ACLOCAL
AUTOMAKE=$am_original_AUTOMAKE
-escape_dots () { sed 's/\./\\./g'; } # Avoid issues with `\' in backquotes.
+escape_dots () { sed 's/\./\\./g'; } # Avoid issues with "\" in backquotes.
apiversion_rx=`echo "$APIVERSION" | escape_dots`
$ACLOCAL --version --help >stdout || { cat stdout; Exit 1; }
# Test to make sure info files are distributed correctly.
# FIXME: This test is probably obsoleted, or wrong. The generated
-# Makefile.in seems not to define any `INFOS' variable!
+# Makefile.in seems not to define any 'INFOS' variable!
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Checks on the `install-info' target.
+# Checks on the 'install-info' target.
# Details about the individual checks' purposes and motivations are
# inlined, below.
# FIXME: this test is a good candidate for a conversion to TAP,
-# FIXME: and could be merged with `txinfo27.test'.
+# FIXME: and could be merged with 'txinfo27.test'.
required=makeinfo
. ./defs || Exit 1
\input texinfo
@setfilename foo.info
@c All the following directives might be required to allow older
-@c versions of the `install-info' program (e.g., version 4.8) to
-@c create the `dir' index file in ${infodir}. Don't remove them.
+@c versions of the 'install-info' program (e.g., version 4.8) to
+@c create the 'dir' index file in ${infodir}. Don't remove them.
@settitle foo
@dircategory Dummy utilities
@direntry
have_installinfo=no
fi
-# The `install-info' target updates the `${infodir}/dir' file
-# by default (if the `install-info' program is available).
+# The 'install-info' target updates the '${infodir}/dir' file
+# by default (if the 'install-info' program is available).
# This should happen in a normal as well as in a DESTDIR installation.
if test $have_installinfo = yes; then
$MAKE install-info
rm -rf $instdir $destdir
-# The `install-info' target doesn't fail if the `install-info'
+# The 'install-info' target doesn't fail if the 'install-info'
# program is not available.
cat > bin/install-info <<'END'
#!/bin/sh
rm -rf $instdir output
if test $have_installinfo = yes; then
- # The `install-info' target doesn't try to guess whether the `install-info'
+ # The 'install-info' target doesn't try to guess whether the 'install-info'
# is the GNU or debian version.
unindent > bin/install-info <<'END'
#!/bin/sh
rm -rf $instdir bin/install-info
-# The `AM_UPDATE_INFO_DIR' environment variable can be used to
-# prevent the creation or update of the `${infodir}/dir' file,
+# The 'AM_UPDATE_INFO_DIR' environment variable can be used to
+# prevent the creation or update of the '${infodir}/dir' file,
# if set to a "no" value.
for val in no NO n; do
rm -rf $instdir
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test for bug in `make dist'
+# Test for bug in 'make dist'
# From Pavel Roskin.
. ./defs || Exit 1
./configure
-# `dist' should fail because we can't copy Makefile.am.
+# 'dist' should fail because we can't copy Makefile.am.
if $MAKE dist; then
Exit 1
else
# Test for PR 203.
# == Report ==
-# Some standard targets are missing `-local' hooks. For instance,
+# Some standard targets are missing '-local' hooks. For instance,
# installdirs is missing this. Ideally this would be an automatic
# feature of any exported target.
test -f ok
# Make sure that installing a second version doesn't erase the first
-# one. (This is error prone since `foo' symlinks to `foo-1.0' and the
-# second version will overwrite `foo'. Hopefully `install' and `install-sh'
-# are smart enough to erase the `foo' symlink before installing the new
+# one. (This is error prone since 'foo' symlinks to 'foo-1.0' and the
+# second version will overwrite 'foo'. Hopefully 'install' and 'install-sh'
+# are smart enough to erase the 'foo' symlink before installing the new
# version.)
./configure "--bindir=`pwd`/bin"
$MAKE install
# Ensure 'make install' fails when 'install' fails.
# We cheat here, for efficiency, knowing the internal rule names.
-# For correctness, one should `$MAKE install' here always, or at
+# For correctness, one should '$MAKE install' here always, or at
# least use install-exec or install-data.
for file in page3.1 page$nfiles.1 npage3.1 npage$nfiles.1; do
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Installing many files should not exceed the command line length limit.
-# Here, the main issue is that we may prepend `$(srcdir)/' to each file,
+# Here, the main issue is that we may prepend '$(srcdir)/' to each file,
# which may cause much longer command lines. The list of files must
-# anyway remain below the limit, otherwise `make' won't be able to even
+# anyway remain below the limit, otherwise 'make' won't be able to even
# fork the command.
#
# Further, the install rule should honor failures of the install program.
# Ensure 'make install' fails when 'install' fails.
# We cheat here, for efficiency, knowing the internal rule names.
-# For correctness, one should `$MAKE install' here always, or at
+# For correctness, one should '$MAKE install' here always, or at
# least use install-exec or install-data.
for file in script3 script$nfiles
$ACLOCAL
$AUTOMAKE --add-missing > output 2>&1
-# Only one `/' should appear in the output.
+# Only one '/' should appear in the output.
cat output
grep '/.*/' output && Exit 1
test -f x\ \ y/a\ \ b
test -f 'a b'
-# Ensure we do not run into `test' operator precedence bugs with Tru64 sh.
+# Ensure we do not run into 'test' operator precedence bugs with Tru64 sh.
for c in = '(' ')' '!'; do
./install-sh $c 2>stderr && { cat stderr >&2; Exit 1; }
cat stderr >&2
echo 'class bClass {}' > $@-t
chmod a-w $@-t && mv -f $@-t $@
-# Explicitly declared as `nodist_', so generate it.
+# Explicitly declared as 'nodist_', so generate it.
Baz.java:
rm -f $@ $@-t
echo 'class Baz {}' > $@-t
# "UNIX-style" use case.
# This test uses a "flat" setup for the source tree (i.e., everything in
# the top-level directory), and forces the use of the old, non-parallel
-# testsuite driver. The sister test `java-compile-run-nested.test' do
+# testsuite driver. The sister test 'java-compile-run-nested.test' do
# similar checks with a more usual, "nested" setup, and using the newer
# 'parallel-tests' driver.
## TESTS ##
cat >> Makefile.am <<'END'
-## We must use `TESTS_ENVIRONMENT', not `AM_TESTS_ENVIRONMENT',
+## We must use 'TESTS_ENVIRONMENT', not 'AM_TESTS_ENVIRONMENT',
## because the latter is not hnoured by the old serial test
## harness.
TESTS_ENVIRONMENT = \
# This test uses a typical "nested" source tree setup (i.e., different
# components/aspects are separated into different subdirectories),
# and uses the 'parallel-tests' testsuite driver. The sister test
-# `java-compile-run-flat.test' do similar checks with a "flat" setup
+# 'java-compile-run-flat.test' do similar checks with a "flat" setup
# (i.e., everything in the top-level directory), and forcing the use
# of the older non-parallel 'simple-tests' driver.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check that the JAVA primary can be used freely in the same Makefile.am
-# with proper combinations of the `dist_', `nodist_' and `nobase_'
-# modifiers. Also check that `.java' files are not distributed by
+# with proper combinations of the 'dist_', 'nodist_' and 'nobase_'
+# modifiers. Also check that '.java' files are not distributed by
# default.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test support of `nobase_' with the `JAVA' primary.
+# Test support of 'nobase_' with the 'JAVA' primary.
required=javac
. ./defs || Exit 1
# When only a java file is modified, only the *.class files derived from
# it should be updated.
# The strings we loop on here have the following format:
- # ``JAVA-FILES-TO-BE-TOUCHED -- CLASSES-THAT-SHOULD-BE-UPDATED''
+ # "JAVA-FILES-TO-BE-TOUCHED -- CLASSES-THAT-SHOULD-BE-UPDATED"
for args in \
'a -- _x' \
'd -- x_' \
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test definition of automake-generated private Makefile variable
-# `$(am__java_sources)'.
+# '$(am__java_sources)'.
. ./defs || Exit 1
echo 'class bClass {}' > $@-t
chmod a-w $@-t && mv -f $@-t $@
-# Explicitly declared as `nodist_', so generate it.
+# Explicitly declared as 'nodist_', so generate it.
Baz.java:
rm -f $@ $@-t
echo 'class Baz {}' > $@-t
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Use of JAVA primary should not allow the use of the `java_' prefix
+# Use of JAVA primary should not allow the use of the 'java_' prefix
# when $(javadir) is undefined. Otherwise, we could silently end up
# with a broken Makefile.in (where "make install" doesn't install
# the *.class files).
chmod a+x fake-javac
# Remove JAVAC from the environment, so that it won't interfere
-# with `make -e' below.
+# with 'make -e' below.
unset JAVAC || :
cat >> configure.ac <<'END'
# Yacc sources are cleaned by "make clean", while C++ source and
# header files derived from distributed Yacc sources are cleaned by
# "make maintainer-clean".
-# See also sister test `lex-clean.test'.
+# See also sister test 'lex-clean.test'.
required=lex
. ./defs || Exit 1
# Check that .c files derived from non-distributed .l sources
# are cleaned by "make clean", while .c files derived from
# distributed .l sources are cleaned by "make maintainer-clean".
-# See also sister test `lex-clean-cxx.test'.
+# See also sister test 'lex-clean-cxx.test'.
required=yacc
. ./defs || Exit 1
# Test to make sure dependencies for Lex and C/C++ does not break
# in obvious ways. See PR automake/6, and related semantic tests
-# `lex-depend.test' and `lex-depend-cxx.test'.
+# 'lex-depend.test' and 'lex-depend-cxx.test'.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that we can get use the `yywrap' function from a system-wide
+# Check that we can get use the 'yywrap' function from a system-wide
# library, if that's available.
required='cc lex'
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that we can provide a personal `yywrap' function in a custom
+# Check that we can provide a personal 'yywrap' function in a custom
# library.
-# See also test `lex-lib-external.test'.
+# See also test 'lex-lib-external.test'.
required='cc lex'
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that we can provide a personal `yywrap' function through the
+# Check that we can provide a personal 'yywrap' function through the
# LIBOBJ machinery.
required='cc lex'
# Check that automake lex support ensures that lex-generated C
# files use correct "#line" directives. Try also with the
-# `subdir-object' option enabled.
-# See also sister test `yacc-line.test'.
+# 'subdir-object' option enabled.
+# See also sister test 'yacc-line.test'.
required=lex
. ./defs || Exit 1
# Adjusted "#line" should not contain reference to the builddir.
$EGREP '#.*line.*(build|\.\.).*\.l' $c_outputs && Exit 1
# Adjusted "#line" should not contain reference to the default
- # output file names, e.g., `lex.yy.c'.
+ # output file names, e.g., 'lex.yy.c'.
$EGREP '#.*line.*lex\.yy' $c_outputs && Exit 1
# Don't be excessively strict in grepping, to avoid spurious failures.
grep '#.*line.*zardoz\.l' zardoz.c
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Checks for .c files derived from non-distributed .l sources.
-# The test `lex-pr204.test' does similar check with AM_MAINTAINER_MODE
+# The test 'lex-pr204.test' does similar check with AM_MAINTAINER_MODE
# enabled.
# The tests 'yacc-nodist.test' and 'yacc-pr204.test' does similar checks
# for yacc-generated .c and .h files.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check Lex support with flex using the `%noyywrap' option.
+# Check Lex support with flex using the '%noyywrap' option.
required='cc flex'
. ./defs || Exit 1
# Related to PR 204.
# C sources derived from nodist_ lex sources should not be distributed.
-# See also related test `lex-nodist.test'.
+# See also related test 'lex-nodist.test'.
# The tests 'yacc-nodist.test' and 'yacc-pr204.test' does similar checks
# for yacc-generated .c and .h files.
: For shells with busted 'set -e'.
fi
-# The generated file `foo.c' must be shipped.
+# The generated file 'foo.c' must be shipped.
$MAKE distdir
test -f $distdir/foo.c
test -f foo.c
$MAKE distclean
test -f foo.c
-./configure # Re-create `Makefile'.
+./configure # Re-create 'Makefile'.
$MAKE maintainer-clean
test ! -f foo.c
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# This test checks that dependent files are updated before including
-# in the distribution. `lexer.c' depends on `lexer.l'. The latter is
-# updated so that `lexer.c' should be rebuild. Then we are running
-# `make' and `make distdir' and check whether the version of `lexer.c'
+# in the distribution. 'lexer.c' depends on 'lexer.l'. The latter is
+# updated so that 'lexer.c' should be rebuild. Then we are running
+# 'make' and 'make distdir' and check whether the version of 'lexer.c'
# to be distributed is up to date.
-# Please keep this in sync with sister test `yaccvapth.test'.
+# Please keep this in sync with sister test 'yaccvapth.test'.
required='cc lex'
. ./defs || Exit 1
# Ensure that lexer.l will be newer than lexer.c.
$sleep
-# New lexer, with `fubar' comment.
+# New lexer, with 'fubar' comment.
cat > ../lexer.l << 'END'
%%
"END" return EOF;
$FGREP '/*fubar*/' $distdir/lexer.c
#
-# Now check to make sure that `make dist' will rebuilt the parser.
+# Now check to make sure that 'make dist' will rebuilt the parser.
#
# Ensure that lexer.l will be newer than lexer.c.
$sleep
-# New lexer, with `maude' comment.
+# New lexer, with 'maude' comment.
cat > ../lexer.l << 'END'
%%
"END" return EOF;
chmod a+x fake-lex
# Remove Lex from the environment, so that it won't interfere
-# with `make -e' below.
+# with 'make -e' below.
unset LEX || :
cat >> configure.ac <<'END'
chmod a+x fake-lex
# Remove Lex from the environment, so that it won't interfere
-# with `make -e' below.
+# with 'make -e' below.
unset LEX || :
cat >> configure.ac <<'END'
extra_checks = maude-src maude-dist liver-not-dist
END
-cp "$am_scriptdir/ar-lib" . || fatal_ "fetching auxiliary script \`ar-lib'"
+cp "$am_scriptdir/ar-lib" . || fatal_ "fetching auxiliary script 'ar-lib'"
$ACLOCAL
$AUTOCONF
grep 'foo\.c.*explicitly mentioned' stderr
grep 'bar\.c.*explicitly mentioned' stderr
-# Global `LDADD' can also come into play.
+# Global 'LDADD' can also come into play.
cat > Makefile.am << 'END'
noinst_PROGRAMS = a b
LDADD = @LIBOBJS@
libtu_a_LIBADD = $(LIBOBJS)
END
-# Don't trip on errors due to missing `AM_PROG_AR'.
+# Don't trip on errors due to missing 'AM_PROG_AR'.
AUTOMAKE="$AUTOMAKE -Wno-extra-portability"
$ACLOCAL
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure AC_LIBOBJ and friends work.
-# Please keep this in sync with sister test `libobj16b.test'.
+# Please keep this in sync with sister test 'libobj16b.test'.
required=cc
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure AC_LIBOBJ and friends work.
-# Please keep this in sync with sister test `libobj16a.test'.
+# Please keep this in sync with sister test 'libobj16a.test'.
required=cc
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test error reporting for AC_CONFIG_LIBOBJ_DIR.
-# See also sister tests `libobj20b.test' and `libobj20c.test' .
+# See also sister tests 'libobj20b.test' and 'libobj20c.test' .
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test error reporting for AC_CONFIG_LIBOBJ_DIR.
-# See also sister tests `libobj20a.test' and `libobj20c.test' .
+# See also sister tests 'libobj20a.test' and 'libobj20c.test' .
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test error reporting for AC_CONFIG_LIBOBJ_DIR.
-# See also sister tests `libobj20a.test' and `libobj20b.test' .
+# See also sister tests 'libobj20a.test' and 'libobj20b.test' .
. ./defs || Exit 1
$ACLOCAL
-# Don't trip on errors due to missing `AM_PROG_AR'.
+# Don't trip on errors due to missing 'AM_PROG_AR'.
AUTOMAKE="$AUTOMAKE -Wno-extra-portability"
AUTOMAKE_fails
AC_PROG_CC
AM_PROG_AR
AC_PROG_RANLIB
-# `am__dummy_function' is there to ensure that at least one function is
+# 'am__dummy_function' is there to ensure that at least one function is
# replaced, to avoid creating an empty archive which can cause problems
# with e.g. Solaris ar.
AC_REPLACE_FUNCS([basename dirname am__dummy_function])
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Try to find the libtool `.m4' files and make them easily accessed
+# Try to find the libtool '.m4' files and make them easily accessed
# to the test cases requiring them.
# See also automake bug#9807.
echo "# Automatically generated by $me." > get.sh
echo : >> get.sh
-# The `libtoolize' script will look into Makefile.am.
+# The 'libtoolize' script will look into Makefile.am.
echo ACLOCAL_AMFLAGS = -I m4 > Makefile.am
if libtoolize --copy --install && test -f m4/libtool.m4; then
echo "ACLOCAL_PATH='`pwd`/m4':\$ACLOCAL_PATH" >> get.sh
echo "export ACLOCAL_PATH" >> get.sh
else
- # Libtoolize from libtool < 2.0 didn't support the `--install' option,
+ # Libtoolize from libtool < 2.0 didn't support the '--install' option,
# but this doesn't mean the user hasn't made the libtool macros
# available, e.g., by properly setting ACLOCAL_PATH.
rm -rf m4
mkdir m4
echo AC_PROG_LIBTOOL >> configure.ac
- # See below for an explanation about the use the of `-Wno-syntax'.
+ # See below for an explanation about the use the of '-Wno-syntax'.
if $ACLOCAL -Wno-syntax -I m4 --install && test -f m4/libtool.m4; then
: # Libtool macros already accessible by default.
else
. ./get.sh
$ACLOCAL --force -I m4 || cat >> get.sh <<'END'
-# We need to use `-Wno-syntax', since we do not want our test suite
-# to fail merely because some third-party `.m4' file is underquoted.
+# We need to use '-Wno-syntax', since we do not want our test suite
+# to fail merely because some third-party '.m4' file is underquoted.
ACLOCAL="$ACLOCAL -Wno-syntax"
END
-# The file libtoolize might have just copied in the `m4' subdirectory of
+# The file libtoolize might have just copied in the 'm4' subdirectory of
# the test directory are going to be needed by other tests, so we must
# not remove the test directory.
keep_testdirs=yes
}
END
-# Use --copy to workaround a bug in Cygwin's `cp -p' during distcheck.
+# Use --copy to workaround a bug in Cygwin's 'cp -p' during distcheck.
# (This bug is already exhibited by subobj9.test.) In brief: Cygwin's
-# `cp -p' tries to preserve group and owner of the source and fails
+# 'cp -p' tries to preserve group and owner of the source and fails
# to do so under normal accounts. With --copy we ensure we own all files.
libtoolize --force --copy
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that installing `COPYING' outputs a warning.
+# Check that installing 'COPYING' outputs a warning.
. ./defs || Exit 1
$ACLOCAL
$AUTOMAKE
-# We should only see the C++ linker in the rules of `Makefile.in'.
+# We should only see the C++ linker in the rules of 'Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
$ACLOCAL
$AUTOMAKE
-# We should only see the C++ linker in the rules of `Makefile.in'.
+# We should only see the C++ linker in the rules of 'Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
$ACLOCAL
$AUTOMAKE
-# We should only see the Fortran linker in the rules of `Makefile.in'.
+# We should only see the Fortran linker in the rules of 'Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
$ACLOCAL
$AUTOMAKE
-# We should only see the Fortran linker in the rules of `Makefile.in'.
+# We should only see the Fortran linker in the rules of 'Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
$AUTOMAKE
# We should only see the Fortran 77 linker in the rules of
-# `Makefile.in'.
+# 'Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
$ACLOCAL
$AUTOMAKE
-# We should only see the C++ linker in the rules of `Makefile.in'.
+# We should only see the C++ linker in the rules of 'Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
$ACLOCAL
$AUTOMAKE
-# We should only see the C++ linker in the rules of `Makefile.in'.
+# We should only see the C++ linker in the rules of 'Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that `make -n' works with the lisp_LISP recover rule.
+# Check that 'make -n' works with the lisp_LISP recover rule.
required='emacs non-root'
. ./defs || Exit 1
grepme
EOF
-# The `FOO = ...' line is 2293-byte long. More than what a POSIX
+# The 'FOO = ...' line is 2293-byte long. More than what a POSIX
# conformant system is expected to support. So do not use grep
# on the non-text file.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test to see if `m4_sinclude' and `m4_include' works.
+# Test to see if 'm4_sinclude' and 'm4_include' works.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure distclean and maintainer-clean erase the right files.
-# This test is for VPATH builds; see sister test `maintclean.test'
+# This test is for VPATH builds; see sister test 'maintclean.test'
# for in-tree builds.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure distclean and maintainer-clean erase the right files.
-# This test is for in-tree builds; see sister test `maintclean-vpath.test'
+# This test is for in-tree builds; see sister test 'maintclean-vpath.test'
# for VPATH builds.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure that our macro `AM_MAINTAINER_MODE' adds proper text to
+# Make sure that our macro 'AM_MAINTAINER_MODE' adds proper text to
# the configure help screen. Also make sure the "checking ..." messages
# related to the enabling/disabling of maintainer mode are correct (see
# automake bug#9890).
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test to make sure `make' check works.
+# Test to make sure 'make' check works.
# From Ralf Corsepius.
required=GNUmake
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# `make -j' used to fail with Autoconf < 2.58, because tools like
+# 'make -j' used to fail with Autoconf < 2.58, because tools like
# autoconf and automake can try to update autom4te's cache in parallel.
#
# Note that failures might not be reproducible systematically as they
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test to make sure known BSD `make -jN' issues are fixed:
+# Test to make sure known BSD 'make -jN' issues are fixed:
# without -B, it may reuse the same shell for separate commands in a
# rule, which can lead to interesting results.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Ensure that `make -n dist' and `make -n distcheck' do not change files
-# on disk, due to GNU make executing rules containing `$(MAKE)'.
-# Also, ensure that `make -n dist' and `make -n distcheck' show what
+# Ensure that 'make -n dist' and 'make -n distcheck' do not change files
+# on disk, due to GNU make executing rules containing '$(MAKE)'.
+# Also, ensure that 'make -n dist' and 'make -n distcheck' show what
# would happen, at least when using GNU make.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test `make -n' for various targets, to ensure that:
+# Test 'make -n' for various targets, to ensure that:
#
# 1. no files or directories are created or removed, and
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test to make sure `dist' prefix works with man pages.
+# Test to make sure 'dist' prefix works with man pages.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Ensure `make dist' fails when help2man replacement man pages are created.
+# Ensure 'make dist' fails when help2man replacement man pages are created.
#
# The assumption here is the following: if the developer uses help2man to
# generate man pages from --help output, then these man pages may not be
mkdir bin
cat > bin/help2man <<'END'
#! /bin/sh
-# Fake help2man script that lets `missing' think it is not installed.
+# Fake help2man script that lets 'missing' think it is not installed.
exit 127
END
chmod +x bin/help2man
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Ensure `make distcheck' passes when help2man generates man pages,
-# even if the `missing' script is involved.
+# Ensure 'make distcheck' passes when help2man generates man pages,
+# even if the 'missing' script is involved.
required=help2man
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test how well `missing' finds output file names of various tools.
+# Test how well 'missing' finds output file names of various tools.
# PR automake/483.
am_create_testdir=empty
get_shell_script missing
-# These programs may be invoked by `missing'.
+# These programs may be invoked by 'missing'.
needed_tools='chmod find sed test touch'
needed_tools_csep=`echo $needed_tools | sed 's/ /, /g'`
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that the `-o' aka `--output-dir' option is not recognized anymore.
+# Check that the '-o' aka '--output-dir' option is not recognized anymore.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Interaction of `nobase_' and `nodist_' prefixes.
+# Interaction of 'nobase_' and 'nodist_' prefixes.
. ./defs || Exit 1
cat > Makefile.am << 'END'
nobase_nodist_noinst_PYTHON = baz1.py sub/baz2.py
# Lisp and Java sources are not distributed by default, so try both
-# with and without the `nodist_' prefix, for more coverage.
+# with and without the 'nodist_' prefix, for more coverage.
nobase_noinst_LISP = foo1.el sub/foo2.el
nobase_nodist_noinst_LISP = foo3.el sub/foo4.el
nobase_noinst_JAVA = bar1.java sub/bar2.java
$ACLOCAL
$AUTOCONF
-$AUTOMAKE # Dummy call to make sure Automake grok `no-define' silently.
+$AUTOMAKE # Dummy call to make sure Automake grok 'no-define' silently.
./configure
grep 'DEFS.*-DVERSION=\\"UnIqUe' output && Exit 1
# Test to make sure nostdinc option works correctly.
# We don't require a C compiler explicitly, because the first part of the
-# test (where `Makefile.in' is grepped) does not require one. Insted, we
+# test (where 'Makefile.in' is grepped) does not require one. Insted, we
# just skip the rest of the test if configure fails to find a working C
# compiler.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test that `.m' extension works.
+# Test that '.m' extension works.
# From Ralf Corsepius (for C++).
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test that `automake -a' output order is stable.
+# Test that 'automake -a' output order is stable.
# From report by Bruno Haible.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure an AC_CONFIG_FILES, AC_CONFIG_LINKS, and AC_CONFIG_COMMANDS
-# are not prerequisites of `all'.
+# are not prerequisites of 'all'.
. ./defs || Exit 1
EOF
# We have to distribute something in foo, because some versions
-# of tar do not archive empty directories when passed the `o'
+# of tar do not archive empty directories when passed the 'o'
# flags. (This was fixed in GNU tar 1.12, but older
# versions are still used: NetBSD 1.6.1 ships with tar 1.11.2).
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check AC_CONFIG_FILES support for files starting with `../'.
+# Check AC_CONFIG_FILES support for files starting with '../'.
# Report from Bruno Haible.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test that overriding `html' target causes only one "html:" rule to
+# Test that overriding 'html' target causes only one "html:" rule to
# be output.
. ./defs || Exit 1
$ACLOCAL
$AUTOMAKE -Wno-override
-# Overriding `html' should cause only one "html:" rule to be output.
+# Overriding 'html' should cause only one "html:" rule to be output.
test `grep '^html:' Makefile.in | wc -l` = 1
:
$ACLOCAL
$AUTOMAKE -Wno-override
AUTOMAKE_fails
-# There is no such thing as `install-local'.
+# There is no such thing as 'install-local'.
grep ':.*install-local' stderr && Exit 1
grep ':.*installcheck-local' stderr
grep ':.*html-local' stderr
./configure
# What we check now:
-# 1. even if we cannot build the `none.bin' program, all the other
+# 1. even if we cannot build the 'none.bin' program, all the other
# test programs should be built, and all the other tests should
# be run;
-# 2. still, since we cannot create the `none.log' file, the
-# `test-suite.log' file shouldn't be created (as it depends
+# 2. still, since we cannot create the 'none.log' file, the
+# 'test-suite.log' file shouldn't be created (as it depends
# on *all* the test logs).
st=0
# parallel-tests support: redirection of file descriptors with
# AM_TESTS_FD_REDIRECT, for tests which are binary executables
-# We use some tricks to ensure that all code paths in `lib/am/check2.am'
+# We use some tricks to ensure that all code paths in 'lib/am/check2.am'
# are covered, even on platforms where $(EXEEXT) would be naturally empty.
# See also the more generic test 'check-fd-redirect.test', and
# sister test 'parallel-tests-fd-redirect.test'.
# parallel-tests support: redirection of file descriptors with
# AM_TESTS_FD_REDIRECT, even when using tests without suffix.
-# The sister `parallel-tests-fd-redirect-exeext.test' do a similar
+# The sister 'parallel-tests-fd-redirect-exeext.test' do a similar
# check for tests that are binary executables.
# See also the more generic test 'check-fd-redirect.test'.
END
# Another helpful idiom to avoid hanging on capable systems. The subshell
-# is needed since `ulimit' might be a special shell builtin.
+# is needed since 'ulimit' might be a special shell builtin.
if (ulimit -t 8); then ulimit -t 8; fi
$ACLOCAL
# DISABLE_HARD_ERRORS is not defined as a make variable, so that it
# should be possible to define either from the environment or from
# command-line, also when recursive make invocations are involved,
-# and also without using the `-e' make flag; this should work also
+# and also without using the '-e' make flag; this should work also
# for non-GNU make. Moreover, it shouldn't be necessary to define
# DISABLE_HARD_ERRORS to "yes" to really disable hard errors: any
# non-empty value should do.
grep '^ERROR: foo$' test-suite.log
cd sub
-# The `-e' is wanted here.
+# The '-e' is wanted here.
DISABLE_HARD_ERRORS='' $MAKE -e check && Exit 1
cat test-suite.log
grep '^ERROR: bar$' test-suite.log
AM_LOG_FLAGS = -a
LOG_FLAGS = -b
-# `t-compiler' is deliberately not distributed; it should be available
+# 't-compiler' is deliberately not distributed; it should be available
# in PATH also from "make distcheck".
EXTRA_DIST = $(TESTS) chk-compiler test-compiler noext-compiler
END
# Check that the default testsuite log doesn't get unduly modified.
# Also check that the testsuite log file doesn't need to be named
-# accordingly to the `*.log' pattern.
+# accordingly to the '*.log' pattern.
chmod a-w test-suite.log
TEST_SUITE_LOG=TheLogFile $MAKE -e check
ls -l
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that `:test-results:' directives in test scripts' output doesn't
+# Check that ':test-results:' directives in test scripts' output doesn't
# originate spurious results in the testsuite summary.
am_parallel_tests=yes
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Tests shouldn't be run multiple times by a simple "make check" in a
-# clean directory. An early implementation of the `.trs' intermediate
+# clean directory. An early implementation of the '.trs' intermediate
# files incurred a similar problem.
am_parallel_tests=yes
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check that the new testsuite harness do not generate recipes that can
-# have a trailing `\', since that can cause spurious syntax errors with
+# have a trailing '\', since that can cause spurious syntax errors with
# older bash versions (e.g., bash 2.05b).
# See automake bug#10436.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that the testsuite driver copes well with unreadable `.log'
-# and `.trs' files.
+# Check that the testsuite driver copes well with unreadable '.log'
+# and '.trs' files.
am_parallel_tests=yes
. ./defs || Exit 1
# Check parallel-tests features:
# - trailing whitespace in TESTS
-# GNU make 3.80 may expand trailing white space to `.log'.
+# GNU make 3.80 may expand trailing white space to '.log'.
am_parallel_tests=yes
. ./defs || Exit 1
. ./defs || Exit 1
case $MAKE in
- *\ -j*) skip_ "\$MAKE contains \`-j'";;
+ *\ -j*) skip_ "\$MAKE contains '-j'";;
esac
if using_gmake; then
# Check parallel-tests features:
# - empty TESTS
-# BSD make will expand `$(TESTS:=.log)' to `.log' unless overridden.
+# BSD make will expand '$(TESTS:=.log)' to '.log' unless overridden.
# See parallel-tests10.test for a similar issue.
am_parallel_tests=yes
# - listing $(srcdir)/ or $(top_srcdir)/ in TESTS doesn't work ATM,
# and is thus diagnosed.
-# TODO: this test should also ensure that the `make' implementation
+# TODO: this test should also ensure that the 'make' implementation
# properly adheres to rules in all cases. See the Autoconf
# manual for the ugliness in this area, when VPATH comes into
# play. :-/
# Another test for -Wportability warning about %-style rules, plus
# make sure we don't warn about duplicate definition for
-# `${ARCH}/%.$(OBJEXT):'.
+# '${ARCH}/%.$(OBJEXT):'.
# Report from Ralf Corsepius.
. ./defs || Exit 1
# reason for skip/failure to console, rather than to the *.log files.
: ${stderr_fileno_=2}
-# Copied from Gnulib's `tests/init.sh'.
+# Copied from Gnulib's 'tests/init.sh'.
warn_ () { echo "$@" 1>&$stderr_fileno_; }
fail_ () { warn_ "$me: failed test: $@"; Exit 1; }
skip_ () { warn_ "$me: skipped test: $@"; Exit 77; }
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test `+=' functionality.
+# Test '+=' functionality.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check for bug in variable concatenation with `+=': an extra backslash
+# Check for bug in variable concatenation with '+=': an extra backslash
# is erroneously retained in the final value.
# See also sister test pluseq11b.test.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test `+=' with conditionals.
+# Test '+=' with conditionals.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Another `+=' test with conditionals.
+# Another '+=' test with conditionals.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Yet another `+=' test.
+# Yet another '+=' test.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test for another `+=' problem. Report from Brian Jones.
+# Test for another '+=' problem. Report from Brian Jones.
. ./defs || Exit 1
# We expect the following diagnostic:
#
-# Makefile.am:4: cannot apply `+=' because `INCLUDES' is not defined in
+# Makefile.am:4: cannot apply '+=' because 'INCLUDES' is not defined in
# Makefile.am:4: the following conditions:
# Makefile.am:4: !CHECK
-# Makefile.am:4: either define `INCLUDES' in these conditions, or use
-# Makefile.am:4: `+=' in the same conditions as the definitions.
+# Makefile.am:4: either define 'INCLUDES' in these conditions, or use
+# Makefile.am:4: '+=' in the same conditions as the definitions.
# Is !CHECK mentioned?
grep ':.*!CHECK$' stderr
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test that `+=' works with standard header-vars.
+# Test that '+=' works with standard header-vars.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test that `+=' fails when required.
+# Test that '+=' fails when required.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Another `+=' test. From Paul Berrevoets.
+# Another '+=' test. From Paul Berrevoets.
. ./defs || Exit 1
# We expect the following diagnostic:
#
-# Makefile.am:19: cannot apply `+=' because `B' is not defined in
+# Makefile.am:19: cannot apply '+=' because 'B' is not defined in
# Makefile.am:19: the following conditions:
# Makefile.am:19: !COND1 and !COND3
-# Makefile.am:19: either define `B' in these conditions, or use
-# Makefile.am:19: `+=' in the same conditions as the definitions.
+# Makefile.am:19: either define 'B' in these conditions, or use
+# Makefile.am:19: '+=' in the same conditions as the definitions.
#
# It would be nice if Automake could print only COND3_FALSE and
# COND1_FALSE (merging the last two conditions), so we'll support
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test that POSIX variable expansion `$(var:str=rpl)' works
+# Test that POSIX variable expansion '$(var:str=rpl)' works
# in when used with the DATA primary.
. ./defs || Exit 1
: > $@
CLEANFILES = bar.data bazzardoz
-# Also try an empty match suffix, to ensure that the `:=' in there is
+# Also try an empty match suffix, to ensure that the ':=' in there is
# not confused by the parser with an unportable assignment operator.
dist_foo_DATA = $(t1:=.txt)
foo_DATA = $(t2:x=.data)
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test that POSIX variable expansion `$(var:str=rpl)' works when used
+# Test that POSIX variable expansion '$(var:str=rpl)' works when used
# in EXTRA_DIST.
. ./defs || Exit 1
t1 = foo1 foo2
t2 = bar.x
t3 = baz-y
-# Also try an empty match suffix, to ensure that the `:=' in there is
+# Also try an empty match suffix, to ensure that the ':=' in there is
# not confused by the parser with an unportable assignment operator.
EXTRA_DIST = $(t1:=.c) $(t2:.x=.f) $(t3:-y=ar)
bazar bar.f:
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test that POSIX variable expansion `$(var:str=rpl)' works
+# Test that POSIX variable expansion '$(var:str=rpl)' works
# when used in LDADD.
required=cc
noinst_LIBRARIES = libquux1.a libquux2.a libquux3.a
-# Also try an empty match suffix, to ensure that the `:=' in there is
+# Also try an empty match suffix, to ensure that the ':=' in there is
# not confused by the parser with an unportable assignment operator.
LDADD = $(u:.lib=.a)
bar_LDADD = $(v:=.a) libquux2.a $(w:none=libquux3.a)
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test that POSIX variable expansion `$(var:str=rpl)' works when used
+# Test that POSIX variable expansion '$(var:str=rpl)' works when used
# with the LIBRARIES primary in a "simple" way.
-# Keep this in sync with sister test `posixsubst-ltlibraries.test'.
+# Keep this in sync with sister test 'posixsubst-ltlibraries.test'.
required=cc
. ./defs || Exit 1
foolibs = libfoo1 libfoo2
barlibs = libbaz
-# Also try an empty match suffix, to ensure that the `:=' in there is
+# Also try an empty match suffix, to ensure that the ':=' in there is
# not confused by the parser with an unportable assignment operator.
lib_LIBRARIES = $(foolibs:=.a) $(barlibs:z=r.a)
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test that POSIX variable expansion `$(var:str=rpl)' works when used
+# Test that POSIX variable expansion '$(var:str=rpl)' works when used
# with the LTLIBRARIES primary in a "simple" way.
-# Keep this in sync with sister test `posixsubst-libraries.test'.
+# Keep this in sync with sister test 'posixsubst-libraries.test'.
required='cc libtool libtoolize'
. ./defs || Exit 1
foolibs = libfoo1 libfoo2
barlibs = libbaz
-# Also try an empty match suffix, to ensure that the `:=' in there is
+# Also try an empty match suffix, to ensure that the ':=' in there is
# not confused by the parser with an unportable assignment operator.
lib_LTLIBRARIES = $(foolibs:=.la) $(barlibs:z=r.la)
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test that POSIX variable expansion `$(var:str=rpl)' works when used
+# Test that POSIX variable expansion '$(var:str=rpl)' works when used
# with the PROGRAMS primary.
required=cc
t1 = foo1 foo2
t2 = barx bar2
-# Also try an empty match suffix, to ensure that the `:=' in there is
+# Also try an empty match suffix, to ensure that the ':=' in there is
# not confused by the parser with an unportable assignment operator.
bin_PROGRAMS = $(t1:=-p) $(t2:2=y)
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test that POSIX variable expansion `$(var:str=rpl)' works when used
+# Test that POSIX variable expansion '$(var:str=rpl)' works when used
# with the SCRIPTS primary.
. ./defs || Exit 1
(echo '#!/bin/perl' && echo '1;') > $@
CLEANFILES = bar1 bar2 quux.pl
-# Also try an empty match suffix, to ensure that the `:=' in there is
+# Also try an empty match suffix, to ensure that the ':=' in there is
# not confused by the parser with an unportable assignment operator.
dist_sbin_SCRIPTS = $(t1:=.sh)
libexec_SCRIPTS = $(t2:x=)
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test that POSIX variable expansion `$(var:str=rpl)' works when used
+# Test that POSIX variable expansion '$(var:str=rpl)' works when used
# with the SOURCES primary.
required=cc
BAR = bar__
BAZ = baz.
-# Also try an empty match suffix, to ensure that the `:=' in there is
+# Also try an empty match suffix, to ensure that the ':=' in there is
# not confused by the parser with an unportable assignment operator.
foo_SOURCES = main.c $(FOO:.cxx=.c)
dist_foo_SOURCES = $(BAR:__=.c)
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test that POSIX variable expansion `$(var:str=rpl)' works when used
+# Test that POSIX variable expansion '$(var:str=rpl)' works when used
# with the TESTS special variable.
. ./defs || Exit 1
(echo '#!/bin/sh' && echo 'exit 0') > $@ && chmod a+x $@
CLEANFILES = foo2.test barz # For FreeBSD make.
-# Also try an empty match suffix, to ensure that the `:=' in there is
+# Also try an empty match suffix, to ensure that the ':=' in there is
# not confused by the parser with an unportable assignment operator.
TESTS = $(t1:=.test) $(t2:x=y) $(t3:2=z)
#
# In this case foo.c will be compiled twice but using different
# compilers. This is a conflict. In this case the user should
-# rename one of the `foo.o's.
+# rename one of the 'foo.o' files.
required=libtoolize
. ./defs || Exit 1
# == Description ==
# Dependency tracking data should be stored in in the relative path
# of the source file, as opposed the object file.
-# I.e., for `foo.c' in `$(top_srcdir)/bar', being built in
-# `$(top_srcdir)/build', the location of the `.deps' directory
-# should be `$(top_builddir)/bar/.deps'.
+# I.e., for 'foo.c' in '$(top_srcdir)/bar', being built in
+# '$(top_srcdir)/build', the location of the '.deps' directory
+# should be '$(top_builddir)/bar/.deps'.
required=cc
. ./defs || Exit 1
# Test for PR 243.
# AM_OUTPUT_DEPENDENCY_COMMANDS doesn't handle
-# `Makefile:Makefile.in:tail.mk' in AC_OUTPUT.
+# 'Makefile:Makefile.in:tail.mk' in AC_OUTPUT.
#
# == Report ==
# If configure.ac has something like:
# with an output such as:
#
# mv -f .libs/f.lo f.lo
-# mv: cannot stat `.libs/f.lo': No such file or directory
+# mv: cannot stat '.libs/f.lo': No such file or directory
#
-# (This may happen on `f' or on some other files.)
+# (This may happen on 'f' or on some other files.)
test -f librace.la
test -f tst # A proof that check-local was run.
$AUTOCONF
$AUTOMAKE -a
-# Regression test for bug where `.c.o:' is followed by blank line.
+# Regression test for bug where '.c.o:' is followed by blank line.
(while read line; do
if test "$line" = ".c.o:"; then
read next
# "make dist" incorrect when AC_CONFIG_AUX_DIR is present.
#
# == Report ==
-# When AC_CONFIG_AUX_DIR is set (in my case to `support'), make dist
+# When AC_CONFIG_AUX_DIR is set (in my case to 'support'), make dist
# no longer automatically includes config.guess, config.sub, install-sh,
# ltconfig, ltmain.sh, mdate-sh, missing, and mkinstalldirs. In fact,
-# the entire `support/' directory is omitted.
+# the entire 'support/' directory is omitted.
. ./defs || Exit 1
# Automake should flag them as errors.
# Originated from PR/294, extended later (following bug #7647) to
# cover more cases.
-# See also test `primary-prefix-valid-couples.test'.
+# See also test 'primary-prefix-valid-couples.test'.
. ./defs || Exit 1
# Please keep this list in sync with the list of "Directory Variables"
# in the GNU Coding Standards and with the list additional directory
# variables provided by autoconf and/or automake (pkgdatadir, pkglibdir,
-# ...). See also the hash `%standard_prefix' in the automake script.
+# ...). See also the hash '%standard_prefix' in the automake script.
prefixes='bin data dataroot doc dvi exec html include info lib libexec
lisp locale localstate man man1 man2 man3 man4 man5 man6 man7
man8 man9 oldinclude pdf pkgdata pkginclude pkglib pkglibexec
# FIXME: Here we'd like to have:
# prefixes_ok='info'
# but Automake currently fails on that, as it allows the use of
- # `foo_TEXINFOS' to declare extra Texinfo sources for the `foo'
+ # 'foo_TEXINFOS' to declare extra Texinfo sources for the 'foo'
# Texinfo manual, as in e.g.:
# info_TEXINFOS = foo.texi
# foo_TEXINFOS = gpl.texi
done
done >allow.list
-# `html_TEXINFOS' is not yet supported, and might never be.
+# 'html_TEXINFOS' is not yet supported, and might never be.
grep -v '^html TEXINFOS$' all.list | awk '{print NR, $0}' > t
mv -f t all.list
# Check that automake really failed only for the expected reason(s).
grep -v 'dir.* not a legitimate directory' stderr && Exit 1
-# Check that the same failures are present without the `--add-missing'
+# Check that the same failures are present without the '--add-missing'
# option.
mv stderr stderr.old
AUTOMAKE_fails -d "automake error out on mismatched prefix/primary couples"
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test for valid prefix/primary combinations.
-# See also test `primary-prefix-invalid-couples.test'.
+# See also test 'primary-prefix-invalid-couples.test'.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure we can build programs ending in `.la'
+# Make sure we can build programs ending in '.la'
required=cc
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure xxx_PROGRAMS gets properly rewritten where needed. These
-# checks have been introduced in commit `Release-1-9-254-g9d0eaef' into
-# the former test `subst2.test'.
+# checks have been introduced in commit 'Release-1-9-254-g9d0eaef' into
+# the former test 'subst2.test'.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test the `--basedir' option of the `py-compile' script,
+# Test the '--basedir' option of the 'py-compile' script,
required=python
. ./defs || Exit 1
-# We'll need to create files in `..', so we need one more subdirectory
+# We'll need to create files in '..', so we need one more subdirectory
# level in order not to clutter up the top-level tests directory.
mkdir sandbox
cd sandbox
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test more basic functionalities of the `py-compile' script,
+# Test more basic functionalities of the 'py-compile' script,
# with "believable" python sources. See also related test
-# `py-compile-basic2.test'.
+# 'py-compile-basic2.test'.
required=python
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test more basic functionalities of the `py-compile' script, with
+# Test more basic functionalities of the 'py-compile' script, with
# dummy python sources, but more complex directory layouts. See also
-# related test `py-compile-basic.test'.
+# related test 'py-compile-basic.test'.
required=python
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test the `--destdir' option of the `py-compile' script,
+# Test the '--destdir' option of the 'py-compile' script,
required=python
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure `py-compile' honours the PYTHON environment variable.
+# Make sure 'py-compile' honours the PYTHON environment variable.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that a non-option argument and the `--' special argument
-# explicitly terminate the option list for `py-compile'.
+# Check that a non-option argument and the '--' special argument
+# explicitly terminate the option list for 'py-compile'.
required=python
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test `py-compile --help', `py-compile --version', and that `py-compile'
+# Test 'py-compile --help', 'py-compile --version', and that 'py-compile'
# correctly complains on wrong usage.
. ./defs || Exit 1
PYTHON=python
# Update the definition below if the documentation changes.
-# Note that the value of the `pythondir' and `pyexecdir' variables can
+# Note that the value of the 'pythondir' and 'pyexecdir' variables can
# vary among different python installations, so we need more relaxed
# and ad-hoc checks for them. Also, more proper "functional" checks
-# on them should be done in the `python-virtualenv.test' test.
+# on them should be done in the 'python-virtualenv.test' test.
PYTHON_VERSION=`$PYTHON -c 'import sys; print(sys.version[:3])'` || Exit 1
PYTHON_PLATFORM=`$PYTHON -c 'import sys; print(sys.platform)'` || Exit 1
PYTHON_EXEC_PREFIX='${exec_prefix}'
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check that the "all" target triggers rebuilt of outdated Makefiles.
-# See also sister test `remake-all-2.test'.
+# See also sister test 'remake-all-2.test'.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check that the "all" target triggers rebuilt of outdated makefiles.
-# This handle the case in which the makefiles are not called `Makefile'.
-# See also sister test `remake-all-1.test'.
+# This handle the case in which the makefiles are not called 'Makefile'.
+# See also sister test 'remake-all-1.test'.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that inclusion of `.am' fragments by automake does not suffer
+# Check that inclusion of '.am' fragments by automake does not suffer
# of the "deleted header problem". This test checks deeper inclusion
# stacks, and use VPATH builds.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that inclusion of `.am' fragments by automake does not suffer
+# Check that inclusion of '.am' fragments by automake does not suffer
# of the "deleted header problem". This test does the check when the
# SUBDIRS variable is involved.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that inclusion of `.am' fragments by automake does not suffer
+# Check that inclusion of '.am' fragments by automake does not suffer
# of the "deleted header problem". Basic checks are done here.
. ./defs || Exit 1
# defined get inlined into the caller. Try with both an indirect
# call and a direct one. This can be seen as testing the "deleted
# header file" issue w.r.t. aclocal.m4 dependencies. See also related
-# test `acloca22.test'.
+# test 'acloca22.test'.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test remake rules when m4 files get moved among different "include
-# dirs" (i.e. those passed to aclocal with `-I' option).
+# dirs" (i.e. those passed to aclocal with '-I' option).
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that inclusion of `.am' fragments by automake does not suffer
+# Check that inclusion of '.am' fragments by automake does not suffer
# of the "deleted header problem". This test checks that we can rename
# an included .am file without confusing the remake rules.
# Test remake rules when an m4 file gets renamed and *simultaneously*
# an m4 macro in it gets renamed. Kudos to Bruno Haible for thinking
-# about this situation. See also related test `acloca22.test'.
+# about this situation. See also related test 'acloca22.test'.
. ./defs || Exit 1
# Check that remake rules works for adding a new subdirectory from a
# pre-existing subdirectory.
-# See also the other similar tests `remake-subdir*.test', and the
-# related test `aclocal5.test'.
+# See also the other similar tests 'remake-subdir*.test', and the
+# related test 'aclocal5.test'.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check that remake rules works from subdirectories, even using
-# `GNUmakefile' as makefiles name. This obviously requires GNU
+# 'GNUmakefile' as makefiles name. This obviously requires GNU
# make.
-# See also the other similar tests `remake-subdir*.test', and the
-# related test `aclocal5.test'
+# See also the other similar tests 'remake-subdir*.test', and the
+# related test 'aclocal5.test'
required=GNUmake
. ./defs || Exit 1
# Check that remake rules works from subdirectories, even with non-GNU
# make implementations.
-# See also the other similar tests `remake-subdir*.test', and the
-# related test `aclocal5.test'.
+# See also the other similar tests 'remake-subdir*.test', and the
+# related test 'aclocal5.test'.
. ./defs || Exit 1
# Check that remake rules works from subdirectories, even when makefiles
# are not named "Makefile".
-# See also the other similar tests `remake-subdir*.test', and the
-# related test `aclocal5.test'.
+# See also the other similar tests 'remake-subdir*.test', and the
+# related test 'aclocal5.test'.
. ./defs || Exit 1
# Weak "grepping" test trying to ensure that remaking rules in a subdir
# are correctly generated.
-# See also sister functional test `remake1a.test'.
+# See also sister functional test 'remake1a.test'.
. ./defs || Exit 1
# Test remake rules for m4 files included (also recursively) by
# configure.ac.
-# Keep in sync with sister tests `remake10b.test' and `remake10c.test'.
+# Keep in sync with sister tests 'remake10b.test' and 'remake10c.test'.
. ./defs || Exit 1
# Test remake rules for am files included (also recursively) by
# Makefile.am.
-# Keep in sync with sister tests `remake10a.test' and `remake10c.test'.
+# Keep in sync with sister tests 'remake10a.test' and 'remake10c.test'.
. ./defs || Exit 1
# Test remake rules for m4 files included (also recursively) by
# aclocal.m4.
-# Keep in sync with sister tests `remake10a.test' and `remake10b.test'.
+# Keep in sync with sister tests 'remake10a.test' and 'remake10b.test'.
. ./defs || Exit 1
$FGREP $magic3 zardoz
$FGREP $magic1 zardoz && Exit 1
$FGREP $magic2 zardoz && Exit 1
-# After the remake above, the files `zardoz.am' and `zardoz.in'
+# After the remake above, the files 'zardoz.am' and 'zardoz.in'
# should be no more needed.
echo 'endif' > zardoz.am # Put in a syntax error.
is_gmake || $MAKE zardoz
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure remaking rules in subdir are correctly generated.
-# See also sister "grepping" test `remake.test'.
+# See also sister "grepping" test 'remake.test'.
. ./defs || Exit 1
# Weak "grepping" test trying to ensure that remake rules work for files
# in a subdirectory even when there is no Makefile for that subdirectory.
-# See also sister functional test `remake3a.test'.
+# See also sister functional test 'remake3a.test'.
. ./defs || Exit 1
# Ensure that remake rules work for files in a subdirectory even when
# there is no Makefile for that subdirectory.
-# See also sister "grepping" test `remake3.test'.
+# See also sister "grepping" test 'remake3.test'.
. ./defs || Exit 1
#
# If this fails, this is likely to be due to a dependency being
# given two different name. For instance BSD Make does not know
-# that `Makefile' is the same as `./Makefile'
+# that 'Makefile' is the same as './Makefile'
#
# Report from Akim Demaille.
# This testcase checks dependency of generated Makefile from Makefile.am,
# configure.ac, acinclude.m4, aclocal.m4, and extra m4 files considered
# by aclocal.
-# Keep this in sync with sister test `remake8b.test', which performs the
+# Keep this in sync with sister test 'remake8b.test', which performs the
# same checks for a VPATH build.
. ./defs || Exit 1
# This testcase checks dependency of generated Makefile from Makefile.am,
# configure.ac, acinclude.m4, aclocal.m4, and extra m4 files considered
# by aclocal.
-# Keep this in sync with sister test `remake8a.test', which performs the
+# Keep this in sync with sister test 'remake8a.test', which performs the
# same checks for a in-tree build.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test remake rules when configure.ac or its prerequisites change.
-# Keep in sync with the other sister tests `remake9*.test'.
+# Keep in sync with the other sister tests 'remake9*.test'.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test remake rules when Makefile.am or its prerequisites change.
-# Keep in sync with the other sister tests `remake9*.test'.
+# Keep in sync with the other sister tests 'remake9*.test'.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test remake rules when acinclude.m4 or its prerequisites change.
-# Keep in sync with the other sister tests `remake9*.test'.
+# Keep in sync with the other sister tests 'remake9*.test'.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test remake rules when aclocal.m4 or its prerequisites change.
-# Keep in sync with the other sister tests `remake9*.test'.
+# Keep in sync with the other sister tests 'remake9*.test'.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Parallel testsuite harness: check APIs for the registering the
-# "global test result" in `*.trs' files, as documented in the automake
+# "global test result" in '*.trs' files, as documented in the automake
# manual.
am_create_testdir=empty
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Sanity check for the automake testsuite.
-# Check creation/removal of temporary test working directory by `./defs'.
+# Check creation/removal of temporary test working directory by './defs'.
. ./defs || Exit 1
plan_ 42
# We still need a little hack to make ./defs work outside automake's
-# tree `tests' subdirectory. Not a big deal.
+# tree 'tests' subdirectory. Not a big deal.
sed "s|^testbuilddir=.*|testbuilddir='`pwd`'|" ../defs-static >defs-static
diff ../defs-static defs-static && fatal_ "failed to edit defs-static"
cp ../defs .
# Prefer real-world data. This is from the help screen of the
# configure script from GNU coreutils, with small adaptations.
cat > help <<'END'
-`configure' configures GNU coreutils 8.14a to adapt to many kinds of systems.
+'configure' configures GNU coreutils 8.14a to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
- -q, --quiet, --silent do not print `checking ...' messages
+ -q, --quiet, --silent do not print 'checking ...' messages
--cache-file=FILE cache test results in FILE [disabled]
- -C, --config-cache alias for `--cache-file=config.cache'
+ -C, --config-cache alias for '--cache-file=config.cache'
-n, --no-create do not create output files
- --srcdir=DIR find the sources in DIR [configure dir or `..']
+ --srcdir=DIR find the sources in DIR [configure dir or '..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
-By default, `make install' will install all the files in
-`/usr/local/bin', `/usr/local/lib' etc. You can specify
-an installation prefix other than `/usr/local' using `--prefix',
-for instance `--prefix=$HOME'.
+By default, 'make install' will install all the files in
+'/usr/local/bin', '/usr/local/lib' etc. You can specify
+an installation prefix other than '/usr/local' using '--prefix',
+for instance '--prefix=$HOME'.
For better control, use the options below.
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --enable-silent-rules less verbose build output (undo: `make V=1')
- --disable-silent-rules verbose build output (undo: `make V=0')
+ --enable-silent-rules less verbose build output (undo: 'make V=1')
+ --disable-silent-rules verbose build output (undo: 'make V=0')
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
--disable-largefile omit support for large files
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
- YACC The `Yet Another C Compiler' implementation to use. Defaults to
- `bison -y'. Values other than `bison -y' will most likely break
+ YACC The "Yet Another C Compiler" implementation to use. Defaults to
+ 'bison -y'. Values other than 'bison -y' will most likely break
on most systems.
YFLAGS YFLAGS contains the list arguments that will be passed by
default to Bison. This script will default YFLAGS to the empty
- string to avoid a default value of `-d' given by some make
+ string to avoid a default value of '-d' given by some make
applications.
DEFAULT_POSIX2_VERSION
POSIX version to default to; see 'config.hin'.
-Use these variables to override the choices made by `configure' or to help
+Use these variables to override the choices made by 'configure' or to help
it to find libraries and programs with nonstandard names/locations.
Report bugs to <bug-automake@gnu.org>.
END
compare_extracted_help YACC <<'END'
- YACC The `Yet Another C Compiler' implementation to use. Defaults to
- `bison -y'. Values other than `bison -y' will most likely break
+ YACC The "Yet Another C Compiler" implementation to use. Defaults to
+ 'bison -y'. Values other than 'bison -y' will most likely break
on most systems.
END
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Sanity check for the automake testsuite.
-# Check that tests using `./defs' create a proper temporary directory,
+# Check that tests using './defs' create a proper temporary directory,
# and run in it. Also check that we can prevent the pre-population
# and the creation of such directory if we want.
do_grep ()
{
env "$1=foo" $SHELL -c '. ./defs' foo.test 2>&1 1>&5 \
- | grep "foo\.test:.* variable \`$1'.* in the environment.*unsafe"
+ | grep "foo\.test:.* variable '$1'.* in the environment.*unsafe"
}
for var in $vars; do
# Sanity check for the automake testsuite.
# Check that, in case of failing commands, the correct exit status is
-# passed to the exit trap installed by the `./defs' script.
-# Also check that the `errexit' shell flag is active.
+# passed to the exit trap installed by the './defs' script.
+# Also check that the 'errexit' shell flag is active.
am_create_testdir=no
. ./defs || Exit 99
plan_ 34
-# This test becomes more cumbersome if we keep the `errexit' shell flag
+# This test becomes more cumbersome if we keep the 'errexit' shell flag
# set. And removing it is no big deal, as this test is a TAP-based one,
# so that false positives remain very unlikely.
set +e
AM_TESTS_REEXEC=no; export AM_TESTS_REEXEC
-# It's especially important that the `unset' is done before sourcing
-# ./defs, i.e., when `set -e' is not active yet, for the benefit of shells
+# It's especially important that the 'unset' is done before sourcing
+# ./defs, i.e., when 'set -e' is not active yet, for the benefit of shells
# (like Bash 2.05 and Solaris 10 /bin/ksh) that returns a non-zero status
# when unsetting an already-unset variable.
init='stderr_fileno_=2; unset am_explicit_skips; . ./defs'
: Non-existent program.
# Solaris 10 /bin/sh erroneously exit with success right away when the
# following three conditions are met at the same time:
-# 1. the `errexit' flag is active,
+# 1. the 'errexit' flag is active,
# 2. an exit trap is installed, and
# 3. a non-existing command is issued.
# Note that the non-existent command is issued as the last command to
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Sanity check for the automake testsuite.
-# Check creation/removal of temporary test working directory by `./defs'.
+# Check creation/removal of temporary test working directory by './defs'.
am_create_testdir=empty
. ./defs || Exit 1
test x"$sh_errexit_works" = x"yes" || skip_ "no working shell exit trap"
# We still need a little hack to make ./defs work outside automake's
-# tree `tests' subdirectory. Not a big deal.
+# tree 'tests' subdirectory. Not a big deal.
sed "s|^testbuilddir=.*|testbuilddir='`pwd`'|" ../defs-static >defs-static
diff ../defs-static defs-static && Exit 99
cp ../defs .
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Sanity check for the automake testsuite: the `signal_is_blocked'
+# Sanity check for the automake testsuite: the 'signal_is_blocked'
# shell function.
am_create_testdir=no
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Sanity check for the automake testsuite: the `is_newest' subroutine.
+# Sanity check for the automake testsuite: the 'is_newest' subroutine.
. ./defs || Exit 1
Y c d
# Should work on directories too, both empty and not-empty. An older
-# implementation of `is_newest' failed if the first argument was a
+# implementation of 'is_newest' failed if the first argument was a
# directory containing files newer than itself (see automake bug#9147).
mkdir u x
touch x/foo
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Sanity check for the automake testsuite.
-# Make sure that $me gets automatically defined by `./defs', and that it
+# Make sure that $me gets automatically defined by './defs', and that it
# can be overridden by the test script.
am_create_testdir=no
AM_TESTS_REEXEC=no; export AM_TESTS_REEXEC
-# This test becomes cumbersome if we keep the `errexit' shell flag set.
+# This test becomes cumbersome if we keep the 'errexit' shell flag set.
# And removing it is no big deal, as this test is a TAP-based one, so
# that false positives remain very unlikely.
set +e
#!/bin/false
. ./defs
# Ensure that the script gets re-executed with bash. Also ensure that
-# non-standard syntax used after the inclusion of `./defs' doesn't cause
+# non-standard syntax used after the inclusion of './defs' doesn't cause
# non-bash shells to fail.
# Subshell required to prevent some shells (e.g., Solaris 10 /bin/sh)
# from only complaining on stderr but then exiting with exit status 0.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Sanity check for the automake testsuite.
-# Test the sanity checks performed by the `defs' script. Also check
-# that we can use `defs' elsewhere, when we duplicate some of the
+# Test the sanity checks performed by the 'defs' script. Also check
+# that we can use 'defs' elsewhere, when we duplicate some of the
# infrastructure from the automake/tests subdirectory.
am_create_testdir=empty
fi
# We still need a little hack to make ./defs work outside automake's
-# tree `tests' subdirectory. Not a big deal.
+# tree 'tests' subdirectory. Not a big deal.
sed "s|^testbuilddir=.*|testbuilddir='`pwd`'|" ../defs-static >defs-static
# Redefining *srcdir and *builddir variables in the environment shouldn't
# cause problems
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Sanity check for the automake testsuite.
-# Check the `seq_' subroutine.
+# Check the 'seq_' subroutine.
. ./defs || Exit 1
desc=$1 args=$2 err=$3
(seq_ $args) >output || st=$?
# Protect content emitted on stdout/stderr, to avoid sending to the
- # TAP driver possible "Bail out!" directives generated by `seq_'.
- # Use `grep -c' below for the same reason.
+ # TAP driver possible "Bail out!" directives generated by 'seq_'.
+ # Use 'grep -c' below for the same reason.
sed 's/^/: /' output
command_ok_ "$desc [exit status = 99]" test $st -eq 99
command_ok_ "$desc [error message]" grep -c "seq_: $err" output
# Sanity check for the automake testsuite.
# Make sure that $am_using_tap gets automatically defined by
-# `./defs-static', but can be overridden by the individual tests.
+# './defs-static', but can be overridden by the individual tests.
. ./defs-static || exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Sanity check for the automake testsuite.
-# Check the `unindent' subroutine.
+# Check the 'unindent' subroutine.
. ./defs || Exit 1
# a stress test by using many different languages at once -- so don't
# remove this test script.
# This test requires the GNU compilers; keep it in sync with sister test
-# `silent-many-generic.test', which should work with generic compilers.
+# 'silent-many-generic.test', which should work with generic compilers.
required='gcc g++ gfortran lex yacc'
. ./defs || Exit 1
depmodes="am_cv_CC_dependencies_compiler_type=gcc \
am_cv_CXX_dependencies_compiler_type=gcc"
# This apparently useless "for" loop is here to simplify the syncing
-# with sister test `silent-many-generic.test'.
+# with sister test 'silent-many-generic.test'.
for config_args in \
"$depmodes"
do
# Ensure a clean rebuild.
$MAKE clean
- # This is required, since these files are not removed by `make clean'
+ # This is required, since these files are not removed by 'make clean'
# (as dictated by the GNU Coding Standards).
rm -f *foo5.c *foo6.[ch] sub/*baz5.c sub/*baz6.[ch]
# a stress test by using many different languages at once -- so don't
# remove this test script.
# This test should work with generic compilers; keep it in sync with
-# sister test `silent-many-gcc.test', which requires the GNU compilers
+# sister test 'silent-many-gcc.test', which requires the GNU compilers
# and forces the use of gcc depmode.
required='cc c++ fortran fortran77 lex yacc'
test -n "`echo $FC`" || AC_MSG_ERROR([Fortran compiler not found], [77])
test -n "`echo $F77`" || AC_MSG_ERROR([Fortran 77 compiler not found], [77])
-# The SunStudio C++ compiler is unfortunately named `CC' (yuck!),
+# The SunStudio C++ compiler is unfortunately named 'CC' (yuck!),
# and this can cause problems with our grepping checks on the
# output from make. Avoid these problems by invoking a wrapper
# script, as filtering the make output proved too fragile.
# Ensure a clean rebuild.
$MAKE clean
- # This is required, since these files are not removed by `make clean'
+ # This is required, since these files are not removed by 'make clean'
# (as dictated by the GNU Coding Standards).
rm -f *foo5.c *foo6.[ch] sub/*baz5.c sub/*baz6.[ch]
MAKE=./mymake
export MAKE mymake_MAKE
-# As a sanity check, verify that `mymake' rejects Makefiles that
+# As a sanity check, verify that 'mymake' rejects Makefiles that
# use nested variables.
cat > Makefile <<'END'
a = $(b$(c))
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check silent-rules mode for Yacc, when yacc-generated headers are
-# involved (i.e., the `-d' option is in *YFLAGS).
+# involved (i.e., the '-d' option is in *YFLAGS).
required=yacc
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check silent-rules mode for Yacc.
-# Keep this in sync with sister test `silent-yacc-gcc.test'.
+# Keep this in sync with sister test 'silent-yacc-gcc.test'.
required=yacc
. ./defs || Exit 1
cat stdout
grep ' -c' stdout
grep ' -o libfoo' stdout
-# The libtool command line can contain e.g. a `--tag=CC' option.
+# The libtool command line can contain e.g. a '--tag=CC' option.
sed 's/--tag=[^ ]*/--tag=x/g' stdout | $EGREP '(CC|LD) ' && Exit 1
:
cat stdout
grep ' -c' stdout
grep ' -o libfoo' stdout
-# The libtool command line can contain e.g. a `--tag=CC' option.
+# The libtool command line can contain e.g. a '--tag=CC' option.
sed 's/--tag=[^ ]*/--tag=x/g' stdout | $EGREP '(CC|LD) ' && Exit 1
:
$AUTOMAKE --force -Wno-all -Wportability
grep 'AM_V_GEN' Makefile.in
-# The `silent-rules' option to AM_INIT_AUTOMAKE should work likewise.
+# The 'silent-rules' option to AM_INIT_AUTOMAKE should work likewise.
$sleep
cat > configure.ac <<'END'
AC_INIT([silent6], [1.0])
grep 'cp ' stdout
grep 'echo ' stdout
-# Ensure that setting `silent-rules' in a Makefile.am produces an error.
+# Ensure that setting 'silent-rules' in a Makefile.am produces an error.
echo 'AUTOMAKE_OPTIONS = silent-rules' >> Makefile.am
AUTOMAKE_fails --force
cat stdout
grep 'DVIPS foo.ps' stdout || Exit 1
grep 'MAKEINFO foo.html' stdout || Exit 1
-# NetBSD make will print `./foo.info' instead of `foo.info'.
+# NetBSD make will print './foo.info' instead of 'foo.info'.
grep 'MAKEINFO.*foo.info' stdout || Exit 1
grep 'TEXI2DVI foo.dvi' stdout || Exit 1
grep 'TEXI2PDF foo.pdf' stdout || Exit 1
cat stdout
grep ' -c' stdout
grep ' -o libfoo' stdout
-# The libtool command line can contain e.g. a `--tag=CC' option.
+# The libtool command line can contain e.g. a '--tag=CC' option.
sed 's/--tag=[^ ]*/--tag=x/g' stdout | $EGREP '(CC|LD) ' && Exit 1
:
# Check silent-rules mode for C++.
# This test requires the GNU C++ compiler; keep it in sync with sister
-# test `silentcxx.test', which should work with generic compilers.
+# test 'silentcxx.test', which should work with generic compilers.
required=g++
. ./defs || Exit 1
# Force gcc ("fast") depmode.
# This apparently useless "for" loop is here to simplify the syncing
-# with sister test `silentcxx.test'.
+# with sister test 'silentcxx.test'.
for config_args in \
am_cv_CXX_dependencies_compiler_type=gcc
do
# Check silent-rules mode for C++.
# This test should work with generic C++ compilers; keep it in sync with
-# sister test `silentcxx-gcc.test', which requires the GNU C++ compiler
+# sister test 'silentcxx-gcc.test', which requires the GNU C++ compiler
# and forces the use of gcc depmode.
required=c++
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check that even "dummy" per-target flags triggers the use of renamed
-# objects. I.e., a definition like `foo_CFLAGS = $(AM_CFLAGS)' should
+# objects. I.e., a definition like 'foo_CFLAGS = $(AM_CFLAGS)' should
# always cause Automake to trigger the semantics for per-target CFLAGS,
# even if AM_CFLAGS is undefined. Similarly for other *FLAGS variables
# (CXXFLAGS, YFLAGS, LDFLAGS, ...)
foo_CFLAGS = -DBAR
END
-# Make sure `compile' is required.
+# Make sure 'compile' is required.
$ACLOCAL
AUTOMAKE_fails
grep 'required.*compile' stderr
: > ar-lib
-# Make sure `compile' is required.
+# Make sure 'compile' is required.
$ACLOCAL
AUTOMAKE_fails
grep 'required.*compile' stderr
# | belief that they were unportable.
# On a related topic, the Autoconf manual has the following text:
-# | `VPATH' and double-colon rules
-# | Any assignment to `VPATH' causes Sun `make' to only execute
+# | 'VPATH' and double-colon rules
+# | Any assignment to 'VPATH' causes Sun 'make' to only execute
# | the first set of double-colon rules. (This comment has been
# | here since 1994 and the context has been lost. It's probably
# | about SunOS 4. If you can reproduce this, please send us a
# Make attempts to run all matching rules. However at least GNU Make,
# NetBSD Make, and FreeBSD Make will detect that $@ was updated by the
# first matching rule and skip remaining matches (with the above
-# example that means that unless `a' was declared PHONY, only "rule1"
-# will be appended to `a' if both b and c have changed). Other
+# example that means that unless 'a' was declared PHONY, only "rule1"
+# will be appended to 'a' if both b and c have changed). Other
# implementations like OSF1 Make and HP-UX Make do not perform such a
# check and execute all matching rules whatever they do ("rule1",
-# "rule2", abd "rule3" will all be appended to `a' if b and c have
+# "rule2", abd "rule3" will all be appended to 'a' if b and c have
# changed).
# So it seems only non-overlapping ::-rule may be portable. This is
test -f sdir1/stamp-h6
test -f sdir1/stamp-h7
-# Make sure `./config.status foo' creates the right stamp file.
+# Make sure './config.status foo' creates the right stamp file.
# Report from Sander Niemeijer.
rm -f stamp-h*
# - src/result is always built
# - opt/result is built conditionally
#
-# We rely on `distcheck' to run `check-local' and use
-# `sanity1' and `sanity2' as evidences that test-build was run.
+# We rely on 'distcheck' to run 'check-local' and use
+# 'sanity1' and 'sanity2' as evidences that test-build was run.
if COND_OPT
test-build: all
cp $(srcdir)/source result
END
-# We want in opt/ the same Makefile as in src/. Let's exercise `include'.
+# We want in opt/ the same Makefile as in src/. Let's exercise 'include'.
cat >opt/Makefile.am << 'END'
include ../src/Makefile.am
END
# - src/result is always built
# - opt/result is built conditionally
#
-# We rely on `distcheck' to run `check-local' and use
-# `sanity1' and `sanity2' as evidences that test-build was run.
+# We rely on 'distcheck' to run 'check-local' and use
+# 'sanity1' and 'sanity2' as evidences that test-build was run.
test-build: all
test -f src/result
cp $(srcdir)/source result
END
-# We want in opt/ the same Makefile as in src/. Let's exercise `include'.
+# We want in opt/ the same Makefile as in src/. Let's exercise 'include'.
cat >opt/Makefile.am << 'END'
include ../src/Makefile.am
END
AC_OUTPUT
END
-# Files required because we are using `--gnu'.
+# Files required because we are using '--gnu'.
: > INSTALL
: > NEWS
: > README
AC_OUTPUT
END
-# Files required because we are using `--gnu'.
+# Files required because we are using '--gnu'.
: > INSTALL
: > NEWS
: > README
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure that adding a new directory works.
-# This test runs `make' from the top-level directory, the sister test
-# `subdir8.test' do it from a subdirectory.
+# This test runs 'make' from the top-level directory, the sister test
+# 'subdir8.test' do it from a subdirectory.
# PR automake/46
. ./defs || Exit 1
test -f maude/Makefile
# Then we add a new directory by modifying a file included (through
-# `m4_include') by configure.ac.
+# 'm4_include') by configure.ac.
mkdir maude2
# Modified configure dependencies must be newer than config.status.
$sleep
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Naming a subdirectory `obj/' is a bad idea. Automake should say so.
+# Naming a subdirectory 'obj/' is a bad idea. Automake should say so.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure that adding a new directory works, even from
-# subdirectories. The sister test `subdir5.test' makes sure it works
+# subdirectories. The sister test 'subdir5.test' makes sure it works
# when make is run from the top-level directory.
# PR automake/46
AC_OUTPUT
END
-# Files required because we are using `--gnu'.
+# Files required because we are using '--gnu'.
: > INSTALL
: > NEWS
: > README
# following. If we have a Makefile containg a file inclusion like this:
# include .//foo.mk
# Solaris make fails with a message like:
-# make: ... can't find `/foo.mk': No such file or directory
-# make: fatal error ... read of include file `/foo.mk' failed
-# (even if the file `foo.mk' exists). The error disappear by collapsing
-# the repeated slash `/' characters into a single one.
+# make: ... can't find '/foo.mk': No such file or directory
+# make: fatal error ... read of include file '/foo.mk' failed
+# (even if the file 'foo.mk' exists). The error disappear by collapsing
+# the repeated slash '/' characters into a single one.
#
-# See also sister "grepping" test `subobj11b.test', and related test
-# `subobj11c.test'.
+# See also sister "grepping" test 'subobj11b.test', and related test
+# 'subobj11c.test'.
required=cc
. ./defs || Exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS = foo
-## The `.//' below is meant.
+## The './/' below is meant.
foo_SOURCES = .//src/foo.c
END
# following. If we have a Makefile containg a file inclusion like this:
# include .//foo.mk
# Solaris make fails with a message like:
-# make: ... can't find `/foo.mk': No such file or directory
-# make: fatal error ... read of include file `/foo.mk' failed
-# (even if the file `foo.mk' exists). The error disappear by collapsing
-# the repeated slash `/' characters into a single one.
+# make: ... can't find '/foo.mk': No such file or directory
+# make: fatal error ... read of include file '/foo.mk' failed
+# (even if the file 'foo.mk' exists). The error disappear by collapsing
+# the repeated slash '/' characters into a single one.
#
-# See also "semantic" sister test `subobj11a.test', and related test
-# `subobj11c.test'.
+# See also "semantic" sister test 'subobj11a.test', and related test
+# 'subobj11c.test'.
. ./defs || Exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS = foo
-## The `zardoz' sources should activate a code paths in Automake that
-## cannot be sensibly tested by sister test `subobj11a.test'. The other
+## The 'zardoz' sources should activate a code paths in Automake that
+## cannot be sensibly tested by sister test 'subobj11a.test'. The other
## sources provide some sort of stress testing.
foo_SOURCES = \
//server/zardoz0.c \
# Automatic dependency tracking with subdir-objects option active:
# check for a pathological case of slash-collapsing in the name of
# included makefile fragments (containing dependency info).
-# See also related tests `subobj11a.test' and `subobj11b.test'.
+# See also related tests 'subobj11a.test' and 'subobj11b.test'.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure `../foo/foo.cpp' generates a rule.
+# Make sure '../foo/foo.cpp' generates a rule.
# Report from Dave Brolley.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure `compile' is included when subdir-objects is used in a subdir.
+# Make sure 'compile' is included when subdir-objects is used in a subdir.
. ./defs || Exit 1
# == Report ==
# When using non-recursive make to build a libtoolize-library from
# sources in a subdirectory, 'make distcheck' fails because of incomplete
-# cleanup. "make clean" tries to remove `*.o' and `.../<file>.lo' but
-# forgets `.../<file>.o'.
+# cleanup. "make clean" tries to remove '*.o' and '.../<file>.lo' but
+# forgets '.../<file>.o'.
required='c++ libtoolize'
. ./defs || Exit 1
$MAKE distcheck >output 2>&1 || { cat output; Exit 1; }
cat output
# GNU Make used to complain that the Makefile contained two rules
-# for `src/.dirstamp' and `.//src/.dirstamp'.
+# for 'src/.dirstamp' and './/src/.dirstamp'.
grep 'overriding commands' output && Exit 1
:
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test to ensure `distdir' fixes the mode of files and directories
-# copied into `$(distdir)', even with sub-packages.
+# Test to ensure 'distdir' fixes the mode of files and directories
+# copied into '$(distdir)', even with sub-packages.
. ./defs || Exit 1
# @substitutions@, automake should take care of appending an empty
# variable to make sure that line cannot end up substituted as a blank
# line (that would confuse HP-UX Make).
-# These checks have been introduced in commit `Release-1-9-254-g9d0eaef'
-# into the former test `subst2.test'.
+# These checks have been introduced in commit 'Release-1-9-254-g9d0eaef'
+# into the former test 'subst2.test'.
. ./defs || Exit 1
# Make sure proper suffix rules for C compilation are produced, and
# only once.
-# See also related test `suffix2.test'.
+# See also related test 'suffix2.test'.
. ./defs || Exit 1
libfoo_la_SOURCES = foo.x_
.x_.y:
rm -f $@ $@-t
-## The leading `:;' works around a bug in bash <= 3.2.
+## The leading ':;' works around a bug in bash <= 3.2.
:; { echo '/* autogenerated */' \
&& echo '%{' \
&& echo 'int yylex () {return 0;}' \
# Tests that Automake understands multiple suffix rules on the same line.
# PR/371 and PR/372: Reported by Duncan Gibson.
-# We also check for suffixes containing `-'.
+# We also check for suffixes containing '-'.
required=cc
. ./defs || Exit 1
# Make sure proper suffix rules for C compilation are produced,
# and only once, even for libtool libraries.
-# See also related test `suffix.test'.
+# See also related test 'suffix.test'.
required=libtoolize
. ./defs || Exit 1
# The foo.cc intermediate step is implicit, it's a mistake if
# Automake requires this file somewhere. Also, Automake should
-# not require the file `foo.c' anywhere.
+# not require the file 'foo.c' anywhere.
command_ok_ "intermediate files not mentioned" \
not $FGREP foo.c Makefile.in
# However Automake must figure that foo.zoo is eventually
$MAKE $target
done
-# FIXME: should we check that intermediate file `foo.cc' has
+# FIXME: should we check that intermediate file 'foo.cc' has
# been removed? Or is this requiring too much from the make
# implementation?
for auxscript in ar-lib config.guess config.sub; do
cp "$am_scriptdir/$auxscript" . \
- || fatal_ "fetching auxiliary script \`$auxscript'"
+ || fatal_ "fetching auxiliary script '$auxscript'"
done
$ACLOCAL
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure Automake supports implicit rules with dot-less
-# extensions. Also make sure that `.o' and `.obj' are handled like
-# `.$(OBJEXT)'. See also related "semantic" tests suffix6b.test
+# extensions. Also make sure that '.o' and '.obj' are handled like
+# '.$(OBJEXT)'. See also related "semantic" tests suffix6b.test
# and suffix6c.test.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test to make sure that `.o' and `.obj' are handled like `.$(OBJEXT)'.
+# Test to make sure that '.o' and '.obj' are handled like '.$(OBJEXT)'.
# See also related "grepping" test suffix6.test.
. ./defs || Exit 1
# Automake should follow the bottom route: x_ -> c -> o because
# it is shorter.
#
-# It should not take the "-> y ->" route. We use `y' here so that
+# It should not take the "-> y ->" route. We use 'y' here so that
# then Automake will complains that YACC is not defined and the test will
# fail when this happens.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test to make sure that `automake -a' redirects dangling symlinks.
+# Test to make sure that 'automake -a' redirects dangling symlinks.
. ./defs || Exit 1
TERM=ansi; export TERM
esc='\e'
-# Escape `[' for grep, below.
+# Escape '[' for grep, below.
red="$esc\[0;31m"
grn="$esc\[0;32m"
lgn="$esc\[1;32m"
# TAP support:
# - an exit status != 0 of a test script causes an hard error
-# - the `--ignore-exit' option causes the TAP test driver to ignore
+# - the '--ignore-exit' option causes the TAP test driver to ignore
# exit statuses of the test scripts.
am_parallel_tests=yes
# diag_ [EXPLANATION]
# ------------------
# Report the given text as TAP diagnostic. Assumes the string denoting
-# TAP diagnostic lines is stored in the `$diag_string_' variable; this is
+# TAP diagnostic lines is stored in the '$diag_string_' variable; this is
# done to allow better interplay with TAP drivers that allow such a string
# to be configured.
diag_ ()
test $# -eq 0 || echo "$diag_string_ $*"
}
-# Used by the `diag_' function above. User-overridable.
+# Used by the 'diag_' function above. User-overridable.
diag_string_="#"
# warn_ [EXPLANATION]
set -x # Restore shell xtraces.
}
-# Shorthands for common usages of `result_'.
+# Shorthands for common usages of 'result_'.
ok_ () { result_ 'ok' ${1+"$@"}; }
not_ok_ () { result_ 'not ok' ${1+"$@"}; }
skip_ () { result_ 'ok' -D SKIP ${1+"$@"}; }
# skip_all_ [REASON ...]
# ----------------------
-# Skip all the tests in a test script. Must be used before calling `plan_'
+# Skip all the tests in a test script. Must be used before calling 'plan_'
# or reporting any test result. Can't be used from within a subshell.
skip_all_ ()
{
# fatal_ [REASON ...]
# -------------------
-# Same as `bailout_'; for compatibility with `plain-functions.sh'.
+# Same as 'bailout_'; for compatibility with 'plain-functions.sh'.
fatal_ ()
{
bailout_ ${1+"$@"}
count_test_results total=2 pass=1 fail=0 xpass=0 xfail=0 skip=0 error=1
-# See that the option `--no-merge' can override the effect of `--merge'.
+# See that the option '--no-merge' can override the effect of '--merge'.
TEST_LOG_DRIVER_FLAGS=--no-merge $MAKE -e check >stdout \
|| { cat stdout; Exit 1; }
run_make=$MAKE
;;
*)
- # Some make implementations (e.g., HP-UX) don't grok `-j',
- # some require no space between `-j' and the number of jobs
+ # Some make implementations (e.g., HP-UX) don't grok '-j',
+ # some require no space between '-j' and the number of jobs
# (e.g., older GNU make versions), and some *do* require a
- # space between `-j' and the number of jobs (e.g., Solaris
+ # space between '-j' and the number of jobs (e.g., Solaris
# dmake). We need a runtime test to see what works.
echo 'all:' > Makefile
for run_make in "$MAKE -j3" "$MAKE -j 3" "$MAKE"; do
# Failure.
- # Use `echo' here, since Solaris 10 /bin/sh would try to optimize
- # a `:' away after the first iteration, even if it is redirected.
+ # Use 'echo' here, since Solaris 10 /bin/sh would try to optimize
+ # a ':' away after the first iteration, even if it is redirected.
echo dummy > not-skip
echo dummy > bail-out
$run_make check >stdout && { cat stdout; Exit 1; }
# More on TAP support:
# - more LOG_COMPILER at once for TAP tests
# - binary programs in $(TESTS)
-# - interactions with `check_*' variables
+# - interactions with 'check_*' variables
required='cc native'
am_parallel_tests=yes
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# TAP support:
-# - `:test-results:' directives in test scripts' output doesn't
+# - ':test-results:' directives in test scripts' output doesn't
# originate spurious results in the testsuite summary
am_parallel_tests=yes
# The prove(1) utility doesn't bail out on these, so our driver
# shouldn't either.
-# See comments in `tap-bailout-leading-space.test' for an explanation
+# See comments in 'tap-bailout-leading-space.test' for an explanation
# of why we don't have a whitespace-prepended "Bail out!" line here.
cat >> all.test <<'END'
bailout
# TAP support:
# - TAP plans with numbers having leading zeroes, as in "1..01"
# - TAP "SKIP" plans with multiple zeroes, as in "1..00 # SKIP"
-# This is consistent with the behaviour of the `prove' utility.
+# This is consistent with the behaviour of the 'prove' utility.
am_parallel_tests=yes
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# TAP support: a malformed TAP plan is not recognized. The checks in
-# here should be consistent with the behaviour of the `prove' utility.
+# here should be consistent with the behaviour of the 'prove' utility.
am_parallel_tests=yes
. ./defs || Exit 1
# Auxiliary shell script that copies the common data and files used by
# many tests on TAP support into the current directory. It should be
# sourced by client test scripts, and assumes the auxiliary test
-# `tap-common-setup.test' has been run beforehand (it will error out
+# 'tap-common-setup.test' has been run beforehand (it will error out
# if this is not the case).
# Check that we are running from a proper directory: last thing we want
# TAP support:
# - a test result numbered as 0 is to be considered out-of-order
-# This is consistent with the behaviour of the `prove' utility.
+# This is consistent with the behaviour of the 'prove' utility.
am_parallel_tests=yes
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check that the user can override the tar program used by "make dist"
-# at runtime, by redefining the `TAR' environment variable.
-# FIXME: currently this works only when the tar format used is `v7'
+# at runtime, by redefining the 'TAR' environment variable.
+# FIXME: currently this works only when the tar format used is 'v7'
# FIXME: (which is the default one).
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Custom test drivers: if a log file has a directory component (as in
-# e.g., `sub/foo.log'), the Automake test harness must ensure that
+# e.g., 'sub/foo.log'), the Automake test harness must ensure that
# directory exists before calling any custom test driver.
am_parallel_tests=yes
END
cat > Makefile.am << 'END'
-# The extra `.' components below are meant.
+# The extra '.' components below are meant.
TESTS = sub/foo sub/subsub/bar.test ././sub1/./baz
$(TESTS):
LOG_DRIVER = $(srcdir)/checkdir-driver
# that allow multiple testcases in a single test script. This test not
# only checks implementation details in Automake's custom test drivers
# support, but also serves as a "usability test" for our APIs.
-# See also related tests `test-driver-custom-multitest-recheck2.test'
-# and `parallel-tests-recheck-override.test'.
+# See also related tests 'test-driver-custom-multitest-recheck2.test'
+# and 'parallel-tests-recheck-override.test'.
# Keep in sync with 'tap-recheck.test'.
am_parallel_tests=yes
# that allow multiple testcases in a single test script. In particular,
# check that this still works when we override $(TESTS) and $(TEST_LOGS)
# at make runtime.
-# See also related tests `test-driver-custom-multitest-recheck.test' and
-# `parallel-tests-recheck-override.test'.
+# See also related tests 'test-driver-custom-multitest-recheck.test' and
+# 'parallel-tests-recheck-override.test'.
am_parallel_tests=yes
. ./defs || Exit 1
: No need to re-run a.test anymore, but c.test should be rerun,
: as it contained an XPASS. And this time, make it fail with
: an hard error.
- # Use `echo' here, since Solaris 10 /bin/sh would try to optimize
- # a `:' away after the first iteration, even if it is redirected.
+ # Use 'echo' here, since Solaris 10 /bin/sh would try to optimize
+ # a ':' away after the first iteration, even if it is redirected.
echo dummy > c.err
env TEST_LOGS='a.log c.log' $MAKE -e recheck >stdout \
&& { cat stdout; Exit 1; }
: c.test contained and hard error the last time, so it should be re-run.
: This time, make it pass
- # Use `echo', not `:'; see comments above for why.
+ # Use 'echo', not ':'; see comments above for why.
echo dummy > c.ok
env TESTS='c.test a.test' $MAKE -e recheck >stdout \
|| { cat stdout; Exit 1; }
cat stdout
cat test-suite.log
# Couple of sanity checks. These might need to be updated if the
- # `trivial-test-driver' script is changed.
+ # 'trivial-test-driver' script is changed.
$FGREP INVALID.NAME stdout test-suite.log && Exit 1
test -f BAD.LOG && Exit 1
test -f BAD.TRS && Exit 1
grep "^ERROR: $tst\.t, testcase 6" stdout
# Check that the content of, and only of, the test logs with at least
- # one failing test case has been copied into `test-suite.log'. Note
+ # one failing test case has been copied into 'test-suite.log'. Note
# that test logs containing skipped or xfailed test cases are *not*
- # copied into `test-suite.log' -- a behaviour that deliberately differs
+ # copied into 'test-suite.log' -- a behaviour that deliberately differs
# from the one of the built-in Automake test drivers.
grep '%%' test-suite.log # For debugging.
grep '%% fail %%' test-suite.log
# Check that auxiliary script 'test-driver' doesn't get needlessly
# installed or referenced if it's not used, i.e., if the user has
-# defined his own `*LOG_DRIVER' variables.
+# defined his own '*LOG_DRIVER' variables.
am_parallel_tests=yes
. ./defs || Exit 1
-e 's|@log_wflags@|_|' \
< wrapper.skel > bin/noext-wrapper
-# `test-wrapper' is deliberately not made executable.
+# 'test-wrapper' is deliberately not made executable.
chmod a+x chk-wrapper bin/noext-wrapper
# Not needed anymore.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check regression of parallel-tests:
-# - `test-driver' script not correctly distributed when TESTS is
+# - 'test-driver' script not correctly distributed when TESTS is
# defined in a subdir Makefile
am_create_testdir=empty
END
cat > Makefile.am << 'END'
-# The directories of the `bar.test' and `baz.test' tests are deliberately
+# The directories of the 'bar.test' and 'baz.test' tests are deliberately
# called as the source directory, to verify that the VPATH-stripping code
# doesn't get too easily confused.
# The $(empty) are for eliciting VPATH rewrites on make implementations
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# parallel-tests support: the following are registered with `.SUFFIXES':
+# parallel-tests support: the following are registered with '.SUFFIXES':
# - .log
# - .trs (used by files that store test results and metadata)
# - .test if $(TEST_EXTENSIONS) is not defined
# Custom test drivers and parallel-tests harness: check the documented
# semantics for deciding when the content of a test log file should be
# copied in the global test-suite.log file. Currently, this is done
-# with the use of the reStructuredText field `:copy-in-global-log:' in
-# the associated `.trs' files.
+# with the use of the reStructuredText field ':copy-in-global-log:' in
+# the associated '.trs' files.
am_parallel_tests=yes
. ./defs || Exit 1
END
chmod a+x passthrough-driver
-# The `:test-result:' and `:recheck:' fields and the first line of the
+# The ':test-result:' and ':recheck:' fields and the first line of the
# log file should be be irrelevant for the decision of whether a test
-# output is to be copied in the `test-suite.log'.
+# output is to be copied in the 'test-suite.log'.
cat > no-1.test <<END
echo :test-result: SKIP >&5
echo seen yes 1
END
-# A lacking `:copy-in-global-log:' implies that the content of
+# A lacking ':copy-in-global-log:' implies that the content of
# the log file should be copied.
cat > yes-2.test <<END
echo :test-result: PASS >&5
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Parallel testsuite harness: check APIs for the registering the
-# "global test result" in `*.trs' files, as documented in the automake
+# "global test result" in '*.trs' files, as documented in the automake
# manual.
am_parallel_tests=yes
==============
END
-# Whitespaces before and after `:global-test-result:' are handled OK.
+# Whitespaces before and after ':global-test-result:' are handled OK.
echo " $tab:global-test-result:PASS" > foo.test
echo "${tab}${tab}:global-test-result:${tab} ${tab}SKIP" > zar-doz.x
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Parallel testsuite harness: check APIs for the registering of test
-# results in `*.trs' files, as documented in the automake manual.
+# results in '*.trs' files, as documented in the automake manual.
am_parallel_tests=yes
. ./defs || Exit 1
return $st
}
-# This must be different from the one defined in `test/defs', as that
+# This must be different from the one defined in 'test/defs', as that
# assumes that the driver does proper testsuite progress reporting.
count_test_results ()
{
./configure
-# Basic checks. Also that that `:global-test-result:' fields and
+# Basic checks. Also that that ':global-test-result:' fields and
# "old-style" directives with format "RESULT: test-name" are now ignored.
: > foo.test
$FGREP 'zardoz3.log' output
test ! -f test-suite.log
-# The errors should persist even after `test-suite.log'
+# The errors should persist even after 'test-suite.log'
# has been created.
: > zardoz.test
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check parallel harness features:
-# - creation and removal of `.trs' auxiliary files
-# - check some internals regarding the use of `.trs' files.
+# - creation and removal of '.trs' auxiliary files
+# - check some internals regarding the use of '.trs' files.
am_parallel_tests=yes
. ./defs || Exit 1
SH_LOG_COMPILER = $(SHELL)
## Used to check some internal details. And yes, the quotes around
-## `$bases' are deliberate: they check for whitespace normalization.
+## '$bases' are deliberate: they check for whitespace normalization.
tb:
$(am__set_TESTS_bases); echo "$$bases" > $@
END
done
#
-# The `test-suite.stamp' file and the `.trs' files get created by
+# The 'test-suite.stamp' file and the '.trs' files get created by
# "make check" and removed by "make clean" and "make mostlyclean".
#
test ! -f foo.trs
test ! -f bar.trs
test ! -f sub/zardoz.trs
-# Unrelated `.trs' files shouldn't be removed.
+# Unrelated '.trs' files shouldn't be removed.
test -f unrelated.trs
test -f sub/foo.trs
test ! -f foo.trs
test ! -f bar.trs
test ! -f sub/zardoz.trs
-# Unrelated `.trs' files shouldn't be removed.
+# Unrelated '.trs' files shouldn't be removed.
test -f unrelated.trs
test -f sub/foo.trs
test -f foo.trs
test -f bar.trs
test ! -f sub/zardoz.trs
-# "make clean" shouldn't remove `.trs' files for tests not in $(TESTS).
+# "make clean" shouldn't remove '.trs' files for tests not in $(TESTS).
TESTS=bar.sh $MAKE -e clean
test -f foo.trs
test ! -f bar.trs
test -f foo.trs
test -f bar.trs
test ! -f sub/zardoz.trs
-# "make clean" shouldn't remove `.trs' files for tests whose log
+# "make clean" shouldn't remove '.trs' files for tests whose log
# is not in $(TEST_LOGS).
TEST_LOGS=foo.log $MAKE -e clean
test ! -f foo.trs
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check parallel harness features:
-# - recovery from deleted `.trs' files, in various scenarios
+# - recovery from deleted '.trs' files, in various scenarios
# This test is complex and tricky, but that's acceptable since we are
# testing semantics that are potentially complex and tricky.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check parallel harness features:
-# - recovery from unreadable `.trs' files, in various scenarios
+# - recovery from unreadable '.trs' files, in various scenarios
am_parallel_tests=yes
. ./defs || Exit 1
cat > baz.pl << 'END'
# With "use strict" enacted, this will cause an error, since the
-# variable `$x' is not declared with `my' nor specified with an
+# variable '$x' is not declared with 'my' nor specified with an
# explicit package name.
$x = 0;
exit ($x);
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test for a behaviour of `TESTS_ENVIRONMENT' and `AM_TESTS_ENVIRONMENT'
+# Test for a behaviour of 'TESTS_ENVIRONMENT' and 'AM_TESTS_ENVIRONMENT'
# w.r.t. file descriptor redirections which, although undocumented,
# is nonetheless required by Gnulib's 'tests/init.sh' and by coreutils'
# testsuite.
# test results per test script.
#
# The exit status of the wrapped script is ignored. Lines in its stdout
-# and stderr beginning with `PASS', `FAIL', `XFAIL', `XPASS', `SKIP' or
-# `ERROR' count as a test case result with the obviously-corresponding
+# and stderr beginning with 'PASS', 'FAIL', 'XFAIL', 'XPASS', 'SKIP' or
+# 'ERROR' count as a test case result with the obviously-corresponding
# outcome. Every other line is ignored for what concerns the testsuite
# outcome.
#
-# This script is used at least by the `driver-custom-multitest*.test'
+# This script is used at least by the 'driver-custom-multitest*.test'
# tests.
#
# it's up-to-date in $(srcdir).
# This can be caused by a subtle issue related to VPATH handling
# of version.texi (see also the comment in texi-vers.am): because
-# stamp-vti is newer than version.texi, the `version.texi: stamp-vti'
-# rule is always triggered. Still that's not a reason for `make'
-# to think `version.texi' has been created...
+# stamp-vti is newer than version.texi, the 'version.texi: stamp-vti'
+# rule is always triggered. Still that's not a reason for 'make'
+# to think 'version.texi' has been created...
test ! -f main.info
$MAKE dvi
test -f main.dvi
# it's up-to-date in $(srcdir).
# This can be caused by a subtle issue related to VPATH handling
# of version.texi (see also the comment in texi-vers.am): because
-# stamp-vti is newer than version.texi, the `version.texi: stamp-vti'
-# rule is always triggered. Still that's not a reason for `make'
-# to think `version.texi' has been created...
+# stamp-vti is newer than version.texi, the 'version.texi: stamp-vti'
+# rule is always triggered. Still that's not a reason for 'make'
+# to think 'version.texi' has been created...
test -f main.info
test ! -f other.info
$MAKE dvi
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure `missing texinfo' does not create empty files.
+# Make sure 'missing texinfo' does not create empty files.
# Report from Bob Proulx.
. ./defs || Exit 1
cat >makeinfo <<\EOF
#!/bin/sh
# This script
-# 1. fails so `missing' can take over
-# 2. does not understand `--version' so `missing' thinks `makeinfo' isn't
+# 1. fails so 'missing' can take over
+# 2. does not understand '--version' so 'missing' thinks 'makeinfo' isn't
# installed
exec false
EOF
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# DVIS, PDFS, PSS, HTMLS should not be cleaned upon `mostlyclean'.
+# DVIS, PDFS, PSS, HTMLS should not be cleaned upon 'mostlyclean'.
# Similar to txinfo25.test.
required='makeinfo tex texi2dvi-o dvips'
# Test to make sure that texinfo.tex is not required by --cygnus.
# Also check that TEXINFOS + cygnus work without requiring the
-# `-Wno-override' option.
+# '-Wno-override' option.
# See also sister test txinfo5b.test.
# Report from Ian Taylor.
END
cat > Makefile.am << 'END'
-# Disable `override' warning to work around an unrelated
+# Disable 'override' warning to work around an unrelated
# texi+cygnus bug.
AUTOMAKE_OPTIONS = -Wno-override
info_TEXINFOS = ian.texi
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test to make sure `.txi' extension works.
+# Test to make sure '.txi' extension works.
. ./defs || Exit 1
: > d/f
chmod a-w d || skip "cannot make directories unwritable"
-# On Solaris 10, if `/bin/rm' is run with the `-f' option, it doesn't
+# On Solaris 10, if '/bin/rm' is run with the '-f' option, it doesn't
# print any error message when failing to remove a file (due to e.g.,
# "Permission denied"). Yikes. We'll cater to this incompatibility
-# by relaxing a test below if a faulty `rm' is detected.
+# by relaxing a test below if a faulty 'rm' is detected.
st=0; rm -f d/f 2>stderr || st=$?
cat stderr >&2
test $st -gt 0 || skip_ "can delete files from unwritable directories"
cat output
#
# Some shells, like Solaris 10 /bin/sh and /bin/ksh, do not report
-# the name of the `cd' builtin upon a chdir error:
+# the name of the 'cd' builtin upon a chdir error:
#
# $ /bin/sh -c 'cd /none'
# /bin/sh: /none: does not exist
cwd=`pwd`
# Use $cwd instead of `pwd` in the && list below to avoid a bug in
-# the way Solaris/Heirloom Sh handles `set -e'.
+# the way Solaris/Heirloom Sh handles 'set -e'.
libtoolize
$ACLOCAL
EOF
$ACLOCAL
-# Make sure this warning is print in the `portability' category.
+# Make sure this warning is print in the 'portability' category.
$AUTOMAKE --warnings=no-error,none,portability 2>stderr \
|| { cat stderr >&2; Exit 1; }
cat stderr >&2
$EGREP 'ok|thisis|here' stderr && Exit 1
-# None of these errors be diagnosed with `-Wno-portability'.
+# None of these errors be diagnosed with '-Wno-portability'.
$AUTOMAKE -Wno-portability
# Likewise if we add this in the Makefile.am
AUTOMAKE_fails -Wno-extra-portability
# The expected diagnostic is:
# automake: warnings are treated as errors
-# Makefile.am:2: warning: variable `nodist_foo_SOURCES' is defined but no program or
-# Makefile.am:2: library has `foo' as canonical name (possible typo)
-# Makefile.am:1: warning: variable `foo_SOURCES' is defined but no program or
-# Makefile.am:1: library has `foo' as canonical name (possible typo)
-# Makefile.am:9: warning: variable `libfoo_a_SOURCES' is defined but no program or
-# Makefile.am:9: library has `libfoo_a' as canonical name (possible typo)
-# Makefile.am:10: warning: variable `nodist_libfoo_a_SOURCES' is defined but no program or
-# Makefile.am:10: library has `libfoo_a' as canonical name (possible typo)
-# Makefile.am:11: warning: variable `EXTRA_libfoo_a_SOURCES' is defined but no program or
-# Makefile.am:11: library has `libfoo_a' as canonical name (possible typo)
-# Makefile.am:3: warning: variable `EXTRA_foo_SOURCES' is defined but no program or
-# Makefile.am:3: library has `foo' as canonical name (possible typo)
-# Makefile.am:12: warning: variable `libfoo_a_LIBADD' is defined but no program or
-# Makefile.am:12: library has `libfoo_a' as canonical name (possible typo)
-# Makefile.am:4: warning: variable `foo_LDADD' is defined but no program or
-# Makefile.am:4: library has `foo' as canonical name (possible typo)
-# Makefile.am:5: warning: variable `foo_LDFLAGS' is defined but no program or
-# Makefile.am:5: library has `foo' as canonical name (possible typo)
-# Makefile.am:14: warning: variable `EXTRA_libfoo_a_DEPENDENCIES' is defined but no program or
-# Makefile.am:14: library has `libfoo_a' as canonical name (possible typo)
-# Makefile.am:7: warning: variable `EXTRA_foo_DEPENDENCIES' is defined but no program or
-# Makefile.am:7: library has `foo' as canonical name (possible typo)
-# Makefile.am:6: warning: variable `foo_DEPENDENCIES' is defined but no program or
-# Makefile.am:6: library has `foo' as canonical name (possible typo)
-# Makefile.am:13: warning: variable `libfoo_a_DEPENDENCIES' is defined but no program or
-# Makefile.am:13: library has `libfoo_a' as canonical name (possible typo)
+# Makefile.am:2: warning: variable 'nodist_foo_SOURCES' is defined but no program or
+# Makefile.am:2: library has 'foo' as canonical name (possible typo)
+# Makefile.am:1: warning: variable 'foo_SOURCES' is defined but no program or
+# Makefile.am:1: library has 'foo' as canonical name (possible typo)
+# Makefile.am:9: warning: variable 'libfoo_a_SOURCES' is defined but no program or
+# Makefile.am:9: library has 'libfoo_a' as canonical name (possible typo)
+# Makefile.am:10: warning: variable 'nodist_libfoo_a_SOURCES' is defined but no program or
+# Makefile.am:10: library has 'libfoo_a' as canonical name (possible typo)
+# Makefile.am:11: warning: variable 'EXTRA_libfoo_a_SOURCES' is defined but no program or
+# Makefile.am:11: library has 'libfoo_a' as canonical name (possible typo)
+# Makefile.am:3: warning: variable 'EXTRA_foo_SOURCES' is defined but no program or
+# Makefile.am:3: library has 'foo' as canonical name (possible typo)
+# Makefile.am:12: warning: variable 'libfoo_a_LIBADD' is defined but no program or
+# Makefile.am:12: library has 'libfoo_a' as canonical name (possible typo)
+# Makefile.am:4: warning: variable 'foo_LDADD' is defined but no program or
+# Makefile.am:4: library has 'foo' as canonical name (possible typo)
+# Makefile.am:5: warning: variable 'foo_LDFLAGS' is defined but no program or
+# Makefile.am:5: library has 'foo' as canonical name (possible typo)
+# Makefile.am:14: warning: variable 'EXTRA_libfoo_a_DEPENDENCIES' is defined but no program or
+# Makefile.am:14: library has 'libfoo_a' as canonical name (possible typo)
+# Makefile.am:7: warning: variable 'EXTRA_foo_DEPENDENCIES' is defined but no program or
+# Makefile.am:7: library has 'foo' as canonical name (possible typo)
+# Makefile.am:6: warning: variable 'foo_DEPENDENCIES' is defined but no program or
+# Makefile.am:6: library has 'foo' as canonical name (possible typo)
+# Makefile.am:13: warning: variable 'libfoo_a_DEPENDENCIES' is defined but no program or
+# Makefile.am:13: library has 'libfoo_a' as canonical name (possible typo)
grep 'as canonical' stderr | grep -v ' .foo. ' | grep -v ' .libfoo_a. ' \
&& Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Basic checks and some regressions testing on `version.texi'
+# Basic checks and some regressions testing on 'version.texi'
# support for texinfo files.
. ./defs || Exit 1
$EGREP 'stamp-vti:.*textutils\.texi( .*)?$' Makefile.in
$EGREP 'stamp-vti:.*\$\(top_srcdir\)/configure( .*)?$' Makefile.in
-# Check that the path to mdate-sh is correct. Over escaping of `$'
-# etc. once led to `\$\(srcdir\)/mdate-sh'.
+# Check that the path to mdate-sh is correct. Over escaping of '$'
+# etc. once led to '\$\(srcdir\)/mdate-sh'.
# Filter out '$(srcdir)/mdate-sh'; there should be no occurrences
-# of `.../mdate-sh' left then.
+# of '.../mdate-sh' left then.
sed 's,\$(srcdir)/mdate-sh,,g' Makefile.in | grep '/mdate-sh' && Exit 1
:
# Check that vers*.texi files are automatically created and distributed
# if @included into a texi source. Also check that they correctly contain
# the @values definitions they are advertised to.
-# See also the related test `vtexi4.test', which does similar checks, but
+# See also the related test 'vtexi4.test', which does similar checks, but
# for version.texi only, and requires makeinfo, tex and texi2dvi.
. ./defs || Exit 1
# Check that the version.texi file is automatically created and distributed
# if @included into a texi source. Also check that is correctly defined
# @values definitions it is advertised to.
-# See also the related test `vtexi3.test', which does similar checks, but
+# See also the related test 'vtexi3.test', which does similar checks, but
# for more vers*.texi files, and does not require makeinfo, tex and
# texi2dvi.
# Check that explicitly-defined warning levels take precedence over
# implicit strictness-implied warnings, even when these explicit warning
-# levels are "catch-all warnings" (such as `-Wall' and `-Wnone').
+# levels are "catch-all warnings" (such as '-Wall' and '-Wnone').
# Since we are at it, also throw in *.am and *.m4 file inclusions.
. ./defs || Exit 1
$ACLOCAL
AUTOMAKE_fails
# The expected diagnostic is
-# Makefile.am:3: warning: variable `foo_SOURCES' is defined but no program or
-# library has `foo' as canonical name (possible typo)
-# sub/Makefile.am:2: warning: `INCLUDES' is the old name for `AM_CPPFLAGS'
+# Makefile.am:3: warning: variable 'foo_SOURCES' is defined but no program or
+# library has 'foo' as canonical name (possible typo)
+# sub/Makefile.am:2: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS'
grep '^Makefile.am:.*foo_SOURCES' stderr
grep '^sub/Makefile.am:.*INCLUDES' stderr
grep '^sub/Makefile.am:.*foo_SOURCES' stderr && Exit 1
# On fast machines the autom4te.cache created during the above run of
# $AUTOMAKE is likely to have the same time stamp as the configure.ac
# created below; thus causing traces for the old configure.ac to be
-# used. We could do `$sleep', but it's faster to erase the
+# used. We could do '$sleep', but it's faster to erase the
# directory. (Erase autom4te*.cache, not autom4te.cache, because some
# bogus installations of Autoconf use a versioned cache).
rm -rf autom4te*.cache
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Basic semantic checks on Yacc support (without yacc-generated headers).
-# Keep in sync with sister test `yacc-cxx.test'.
+# Keep in sync with sister test 'yacc-cxx.test'.
required='cc yacc'
. ./defs || Exit 1
# Yacc sources are cleaned by "make clean", while C++ source and
# header files derived from distributed Yacc sources are cleaned by
# "make maintainer-clean".
-# See also sister test `yacc-clean.test'.
+# See also sister test 'yacc-clean.test'.
required=yacc
. ./defs || Exit 1
END
cat > Makefile.am << 'END'
-# Use two subdirectories, one to test with `-d' in YFLAGS, the
+# Use two subdirectories, one to test with '-d' in YFLAGS, the
# other one to test with empty YFLAGS.
SUBDIRS = sub1 sub2
END
# Check that .c and .h files derived from non-distributed .y sources
# are cleaned by "make clean", while .c and .h files derived from
# distributed .y sources are cleaned by "make maintainer-clean".
-# See also sister test `yacc-cxx-clean.test'.
+# See also sister test 'yacc-cxx-clean.test'.
required='cc yacc'
. ./defs || Exit 1
END
cat > Makefile.am << 'END'
-# Use two subdirectories, one to test with `-d' in YFLAGS, the
+# Use two subdirectories, one to test with '-d' in YFLAGS, the
# other one to test with empty YFLAGS.
SUBDIRS = sub1 sub2
END
done
cp config.sav config.status
-./config.status # Re-create `Makefile'.
+./config.status # Re-create 'Makefile'.
$MAKE maintainer-clean
ls -l . sub1 sub2
# Basic semantic checks on Yacc + C++ support (when yacc-generated
# headers are not involved).
-# Keep in sync with sister test `yacc-basic.test'.
+# Keep in sync with sister test 'yacc-basic.test'.
required=yacc
. ./defs || Exit 1
test -f parse2.c++
test -f foo3-parse3.cxx
test -f foo4-parse4.cpp
-./configure # we must re-create `Makefile'
+./configure # Re-create 'Makefile'.
$MAKE maintainer-clean
ls -l
test ! -f parse1.cc
# Tests Yacc support with yacc-generated headers
# (i.e., '-d' in *YFLAGS).
-# Keep in sync with sister test `yacc-d-cxx.test'.
+# Keep in sync with sister test 'yacc-d-cxx.test'.
required='cc yacc'
. ./defs || Exit 1
# Sanity check the distribution.
yl_distcheck
-# While we are at it, make sure that `parse.c' and `parse.h' are erased
+# While we are at it, make sure that 'parse.c' and 'parse.h' are erased
# by maintainer-clean, and not by distclean.
$MAKE distclean
test -f foo/parse.c
test -f bar/parse.h
test -f baz/zardoz-parse.c
test -f baz/zardoz-parse.h
-./configure # We must re-create `Makefile'.
+./configure # Re-create 'Makefile'.
$MAKE maintainer-clean
test ! -f foo/parse.c
test ! -f foo/parse.h
# Various tests on Yacc/C++ support with yacc-generated headers
# (i.e., '-d' in *YFLAGS).
-# Keep in sync with sister test `yacc-d-basic.test'.
+# Keep in sync with sister test 'yacc-d-basic.test'.
required=yacc
. ./defs || Exit 1
test -f baz/sub/parse.h++
test -f qux/maude-parse.cxx
test -f qux/maude-parse.hxx
-./configure # We must re-create `Makefile'.
+./configure # Re-create 'Makefile'.
$MAKE maintainer-clean
test ! -f foo/parse.cc
test ! -f foo/parse.hh
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# This test checks that dependent files are updated before including
-# in the distribution. `parse.c' depends on `parse.y'. The latter is
-# updated so that `parse.c' should be rebuilt. Then we are running
-# `make' and `make distdir' and check whether the version of `parse.c'
+# in the distribution. 'parse.c' depends on 'parse.y'. The latter is
+# updated so that 'parse.c' should be rebuilt. Then we are running
+# 'make' and 'make distdir' and check whether the version of 'parse.c'
# to be distributed is up to date.
-# Please keep this in sync with sister test `yaccvpath.test'.
+# Please keep this in sync with sister test 'yaccvpath.test'.
required='cc yacc'
. ./defs || Exit 1
AM_YFLAGS = -d
END
-# Original parser, with `foobar'.
+# Original parser, with 'foobar'.
cat > parse.y << 'END'
%{
int yylex () { return 0; }
$sleep
-# New parser, with `fubar'.
+# New parser, with 'fubar'.
cat > ../parse.y << 'END'
%{
int yylex () { return 0; }
$FGREP fubar $distdir/parse.c
$FGREP FUBAR $distdir/parse.h
-# Now check to make sure that `make dist' will rebuild the parser.
+# Now check to make sure that 'make dist' will rebuild the parser.
$sleep
-# New parser, with `maude'.
+# New parser, with 'maude'.
cat > ../parse.y << 'END'
%{
int yylex () { return 0; }
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Tests that we can recover from deleted headers generated by `yacc -d'.
+# Tests that we can recover from deleted headers generated by 'yacc -d'.
required=yacc
. ./defs || Exit 1
# The order in which files are listed in the p*_SOURCES variables
# below is significant, since it causes make failures whenever
# the proper definition of BUILT_SOURCES or the declaration of
-# extra dependencies for `main3.o' are removed.
+# extra dependencies for 'main3.o' are removed.
p1_SOURCES = main1.c parse1.y
p2_SOURCES = main2.c parse2.y
p3_SOURCES = main3.c parse3.y parse3.h
test -f parse3.h
test ! -r parse4.h
# Since we declared parse3.h into $(p3_SOURCES), make should be
-# able to rebuild it automatically before remaking `p3'.
+# able to rebuild it automatically before remaking 'p3'.
rm -f $headers
$MAKE clean-p3
test ! -f parse3.h # Sanity check.
# Check that automake yacc support ensures that yacc-generated C
# files use correct "#line" directives. Try also with the
-# `subdir-object' option enabled.
-# See also sister test `lex-line.test'.
+# 'subdir-object' option enabled.
+# See also sister test 'lex-line.test'.
required=yacc
. ./defs || Exit 1
# Adjusted "#line" should not contain reference to the builddir.
$EGREP '#.*line.*(build|\.\.).*\.y' $c_outputs && Exit 1
# Adjusted "#line" should not contain reference to the default
- # output file names, e.g., `y.tab.c' and `y.tab.h'.
+ # output file names, e.g., 'y.tab.c' and 'y.tab.h'.
$EGREP '#.*line.*y\.tab\.' $c_outputs && Exit 1
# Don't be excessively strict in grepping, to avoid spurious failures.
grep '#.*line.*zardoz\.y' zardoz.c
# not override it.
run_make=$MAKE;;
*)
- # Some make implementations (e.g., HP-UX) don't grok `-j',
- # some require no space between `-j' and the number of jobs
+ # Some make implementations (e.g., HP-UX) don't grok '-j',
+ # some require no space between '-j' and the number of jobs
# (e.g., older GNU make versions), and some *do* require a
- # space between `-j' and the number of jobs (e.g., Solaris
+ # space between '-j' and the number of jobs (e.g., Solaris
# dmake). We need a runtime test to see what works.
echo 'all:' > Makefile
for run_make in "$MAKE -j3" "$MAKE -j 3" "$MAKE"; do
# For PR 204.
# C sources derived from nodist_ yacc sources should not be distributed.
-# See also related test `yacc-nodist.test'.
+# See also related test 'yacc-nodist.test'.
# The tests 'lex-nodist.test' and 'lex-pr204.test' does similar checks
# for lex-generated C files.
# Test to make sure intermediate .h file is not generated nor removed
# if (AM_)?YFLAGS do not contain -d. Requested by Jim Meyering.
-# See also the related semantic test `yacc-d-basic.test'.
+# See also the related semantic test 'yacc-d-basic.test'.
. ./defs || Exit 1
test -f $(distdir)/foo.h
END
-# The %union will cause Bison to output `#line's in y.tab.h too.
+# The %union will cause Bison to output '#line's in y.tab.h too.
cat > foo.y << 'END'
%union
{
$MAKE foo.h
test -f foo.h
-# Make sure `#line ... y.tab.h' gets replaced.
+# Make sure '#line ... y.tab.h' gets replaced.
$FGREP 'y.tab.h' foo.h && Exit 1
# Make distclean must not erase foo.c nor foo.h (by GNU standards) ...
test -f foo.h
test -f foo.c
# ... but maintainer-clean should.
-./configure # Re-create `Makefile'.
+./configure # Re-create 'Makefile'.
$MAKE maintainer-clean
test ! -f foo.h
test ! -f foo.c
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Removal recovery rules for headers should not remove files with `make -n'.
+# Removal recovery rules for headers should not remove files with 'make -n'.
required='cc yacc'
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure Yacc + C++ is not obviously broken.
-# See also related tests `yacc-cxx.test' and `yacc-d-cxx.test',
+# See also related tests 'yacc-cxx.test' and 'yacc-d-cxx.test',
# which does much more in-depth checks (but requires an actual
# Yacc program and a working C++ compiler).
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# This test checks that dependent files are updated before including
-# in the distribution. `parse.c' depends on `parse.y'. The later is
-# updated so that `parse.c' should be rebuild. Then we are running
-# `make' and `make distdir' and check whether the version of `parse.c'
+# in the distribution. 'parse.c' depends on 'parse.y'. The later is
+# updated so that 'parse.c' should be rebuild. Then we are running
+# 'make' and 'make distdir' and check whether the version of 'parse.c'
# to be distributed is up to date.
-# Please keep this in sync with sister test `yacc-d-vpath.test'.
+# Please keep this in sync with sister test 'yacc-d-vpath.test'.
required='cc yacc'
. ./defs || Exit 1
foo_SOURCES = parse.y foo.c
END
-# Original parser, with `foobar'.
+# Original parser, with 'foobar'.
cat > parse.y << 'END'
%{
int yylex () { return 0; }
$sleep
-# New parser, with `fubar'.
+# New parser, with 'fubar'.
cat > ../parse.y << 'END'
%{
int yylex () { return 0; }
$MAKE distdir
$FGREP fubar $distdir/parse.c
-# Now check to make sure that `make dist' will rebuild the parser.
+# Now check to make sure that 'make dist' will rebuild the parser.
$sleep
-# New parser, with `maude'.
+# New parser, with 'maude'.
cat > ../parse.y << 'END'
%{
int yylex () { return 0; }
bin_PROGRAMS = foo
foo_SOURCES = foo.y
# A minor automake wart: automake doesn't generate code to clean
-# `*.output' files generated by yacc (it's not even clear if that
+# '*.output' files generated by yacc (it's not even clear if that
# would be useful in general, so it's probably better to be
# conservative).
CLEANFILES = foo.output
-# Another automake wart: `-d' flag won't be given at automake time,
-# so automake won't be able to generate code to clean `foo.h' :-(
+# Another automake wart: '-d' flag won't be given at automake time,
+# so automake won't be able to generate code to clean 'foo.h' :-(
MAINTAINERCLEANFILES = foo.h
END
cat >> configure.ac <<'END'
AC_PROG_CC
-# `YFLAGS' is AC_SUBST'd by AC_PROG_YACC by default, but we
+# 'YFLAGS' is AC_SUBST'd by AC_PROG_YACC by default, but we
# don't want this, since it might confuse our error messages.
# Also, AM_SUBST_NOTMAKE seems not to help about this.
# So we simply define $(YACC) by hand.
# Now let's check we avoid false positives.
-# Disable `gnu' warnings because we override the user variable `YFLAGS'.
+# Disable 'gnu' warnings because we override the user variable 'YFLAGS'.
AUTOMAKE_fails -Wno-gnu Makefile5
grep -v '^Makefile5\.am:.*zardoz_YFLAGS' stderr \
| grep -v ': warnings are treated as errors' \
| grep . && Exit 1
-# Disable `gnu' warnings because we override the user variable `YFLAGS'.
+# Disable 'gnu' warnings because we override the user variable 'YFLAGS'.
$AUTOMAKE -Wno-gnu Makefile6
:
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check for false positives in automake recognition of `-d' in YFLAGS.
+# Check for false positives in automake recognition of '-d' in YFLAGS.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check that automake expand variables when looking for `-d' in YFLAGS;
+# Check that automake expand variables when looking for '-d' in YFLAGS;
# for example, the following is supposed to work:
# foo_flags = -d
# AM_YFLAGS = $(foo_flags)
chmod a+x fake-yacc
# Remove Yacc from the environment, so that it won't interfere
-# with `make -e' below.
+# with 'make -e' below.
unset YACC || :
cat >> configure.ac <<'END'
chmod a+x fake-yacc
# Remove Yacc from the environment, so that it won't interfere
-# with `make -e' below.
+# with 'make -e' below.
unset YACC || :
cat >> configure.ac <<'END'