automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {maint} tests: move 'runtest' into the top-level directory


From: Stefano Lattarini
Subject: [FYI] {maint} tests: move 'runtest' into the top-level directory
Date: Sat, 7 Jul 2012 12:55:13 +0200

Move our wrapper script 'runtest' (meant to allow the execution of
Automake test cases from the command line) from the 't/ax/' directory
to the top-level one.  This makes the script easier to find and to
invoke.  Much more importantly, our DejaGNU-checking test cases won't
try anymore to use that script instead of the 'runtest' program provided
by DejaGNU (that happened because '$(srcdir)/t/ax/' is automatically
added early to the $PATH variable in our test cases), which was causing
spurious SKIPs.

* t/ax/runtest.in: Move ...
* runtest.in: ... here.
* Makefile.am, t/README, .gitignore: Adjust.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 .gitignore                    |    2 +-
 Makefile.am                   |   12 ++++++------
 t/ax/runtest.in => runtest.in |    0
 t/README                      |    6 +++---
 4 files changed, 10 insertions(+), 10 deletions(-)
 rename t/ax/runtest.in => runtest.in (100%)

diff --git a/.gitignore b/.gitignore
index 4eec957..b7eee5c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,6 +11,7 @@
 /configure.lineno
 /aclocal
 /automake
+/runtest
 /doc/.dirstamp
 /doc/automake*.info
 /doc/automake*.info-[0-9]
@@ -37,7 +38,6 @@
 /t/wrap/automake-1.*
 /defs-static
 /t/testsuite-part.am
-/t/ax/runtest
 /t/*-w.tap
 /t/*-w.sh
 /t/depcomp-*.tap
diff --git a/Makefile.am b/Makefile.am
index 9ef2f48..2764481 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -400,16 +400,16 @@ defs-static: defs-static.in Makefile
 EXTRA_DIST += defs-static.in
 CLEANFILES += defs-static
 
-t/ax/runtest: t/ax/runtest.in Makefile
+runtest: runtest.in Makefile
        $(AM_V_at)rm -f $@ address@hidden
-       $(AM_V_GEN)in=t/ax/runtest.in \
+       $(AM_V_GEN)in=runtest.in \
          && $(MKDIR_P) t/ax \
-         && $(do_subst) <$(srcdir)/t/ax/runtest.in >address@hidden \
+         && $(do_subst) <$(srcdir)/runtest.in >address@hidden \
          && chmod a+x address@hidden
        $(generated_file_finalize)
-EXTRA_DIST += t/ax/runtest.in
-CLEANFILES += t/ax/runtest
-noinst_SCRIPTS = t/ax/runtest
+EXTRA_DIST += runtest.in
+CLEANFILES += runtest
+noinst_SCRIPTS = runtest
 
 # If two test scripts have the same basename, they will end up sharing
 # the same log file, leading to all sort of undefined and undesired
diff --git a/t/ax/runtest.in b/runtest.in
similarity index 100%
rename from t/ax/runtest.in
rename to runtest.in
diff --git a/t/README b/t/README
index 1039d10..25fd735 100644
--- a/t/README
+++ b/t/README
@@ -73,10 +73,10 @@ About the tests
   with the '.tap' suffix use the TAP protocol.
 
   If you want to run a test by hand, you should be able to do so using the
-  'runtest' script:
+  'runtest' script provided in the Automake distribution:
 
-      ./t/ax/runtest t/nogzip.sh
-      ./t/ax/runtest t/add-missing.tap
+      ./runtest t/nogzip.sh
+      ./runtest t/add-missing.tap
 
   This will run the test using the correct shell, and should also work in
   VPATH builds.  Note that, to run the TAP tests this way, you'll need to
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]