automake-patches
[Top][All Lists]
Advanced

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

[FYI 7/7] {tap-test-protocols} test defs: get name of TAP-using tests co


From: Stefano Lattarini
Subject: [FYI 7/7] {tap-test-protocols} test defs: get name of TAP-using tests correctly
Date: Sun, 7 Aug 2011 16:05:38 +0200

This change fixes the names of the temporary directories used
by the TAP-based tests (e.g., test `foo.tap' now uses `foo.dir'
rather than `foo.tap.dir'); more importantly, this make the
variable `$destdir' defined in `tests/defs' usable also in the
TAP tests.

($me): Also strip the any `.tap' suffix from the name of the
test.
---
 ChangeLog  |   11 +++++++++++
 tests/defs |    2 +-
 2 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 01ff2a5..4bff03b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2011-08-07  Stefano Lattarini  <address@hidden>
 
+       test defs: get name of TAP-using tests correctly
+       This change fixes the names of the temporary directories used
+       by the TAP-based tests (e.g., test `foo.tap' now uses `foo.dir'
+       rather than `foo.tap.dir'); more importantly, this make the
+       variable `$destdir' defined in `tests/defs' usable also in the
+       TAP tests.
+       ($me): Also strip the any `.tap' suffix from the name of the
+       test.
+
+2011-08-07  Stefano Lattarini  <address@hidden>
+
        testsuite: TAP tests properly decide when to remove tempdirs
        Before this change, the TAP tests in the Automake testsuite were
        removing the temporary test directory even when they failed or
diff --git a/tests/defs b/tests/defs
index bfe7fa4..25cfb93 100644
--- a/tests/defs
+++ b/tests/defs
@@ -43,7 +43,7 @@ test -f ./defs-static || {
 # be done carefully, and *before* including ./defs).
 if test -z "$me"; then
   # Guard against failure to spawn sed (seen on MSYS), or empty $argv0.
-  me=`echo "$argv0" | sed -e 's,.*[\\/],,;s/\.test$//'` \
+  me=`echo "$argv0" | sed -e 's,.*[\\/],,;s/\.test$//;s/\.tap$//;'` \
     && test -n "$me" \
     || { echo "$argv0: failed to define \$me" >&2; exit 99; }
 fi
-- 
1.7.2.3




reply via email to

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