* tests/atlocal.in: Also set AWK to value detected by configure.
Alphabetize list of shell variables set by config.status.
* tests/local.mk: Add a rule to recreate tests/atconfig when
config.status changes.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
-PERL='@PERL@'
-GREP='@GREP@'
+AWK='@AWK@'
EGREP='@EGREP@'
+GREP='@GREP@'
+PERL='@PERL@'
SED='@SED@'
# We need to know if sh -n is ok.
check-local: tests/atconfig tests/atlocal $(TESTSUITE)
+$(run_testsuite) $(TESTSUITEFLAGS)
+# Automake doesn't know how to regenerate this file because
+# it's created via AC_CONFIG_COMMANDS.
+tests/atconfig: $(top_builddir)/config.status
+ cd $(top_builddir) && $(SHELL) ./config.status $@
+
# Run the test suite on the *installed* tree.
installcheck-local: tests/atconfig tests/atlocal $(TESTSUITE)
+$(run_testsuite) AUTOTEST_PATH="$(bindir)" $(TESTSUITEFLAGS)