diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-06-07 12:05:19 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-06-07 13:06:17 +0300 |
commit | 453cd17f7a4be5ceaa8411a8a3ebd9fddd88df8e (patch) | |
tree | 3c919d804a8df24c01bc26854bcec4e0c5db21b6 /mh/tests/atlocal.in | |
parent | 491bec23a77b19df8b9c0442696ce57e3fc5c604 (diff) | |
download | mailutils-453cd17f7a4be5ceaa8411a8a3ebd9fddd88df8e.tar.gz mailutils-453cd17f7a4be5ceaa8411a8a3ebd9fddd88df8e.tar.bz2 |
Fix tests when logical and physical CWD differ
MH testsuite produced false negatives when run in a directory accessed
by its logical name (symlink). To fix this, avoiding at the same time
the use of non-portable "pwd -P" & "pwd -L", this commit adds a filter
utility that replaces both logical and physical cwd with a dot on
output. The MH testsuite is updated to use this utility.
* testsuite/cwdrepl.c: New utility
* testsuite/Makefile.am: Build cwdrepl
* testsuite/.gitignore: Update.
* testsuite/cwdrepl.at: New test.
* testsuite/testsuite.at: Include new test.
* mh/tests/atlocal.in (PATH): Add testsuite
(remove_curdir): Remove function.
* mh/tests/comp.at: Use cwdrepl, fix expected output.
* mh/tests/forw.at: Likewise.
* mh/tests/mhn.at: Likewise.
* mh/tests/mhpath.at: Likewise.
* mh/tests/repl.at: Likewise.
Diffstat (limited to 'mh/tests/atlocal.in')
-rw-r--r-- | mh/tests/atlocal.in | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mh/tests/atlocal.in b/mh/tests/atlocal.in index 508e03f28..6a7f40528 100644 --- a/mh/tests/atlocal.in +++ b/mh/tests/atlocal.in @@ -3,10 +3,8 @@ # Copyright (C) 2004, 2010-2012, 2014-2017 Free Software Foundation, # Inc. -PATH=@abs_builddir@:@abs_top_builddir@/mh:$top_srcdir:$srcdir:$PATH -remove_curdir() { - sed "s|$HOME/*||;s| *$||" $* -} +PATH=@abs_builddir@:@abs_top_builddir@/testsuite:@abs_top_builddir@/mh:$top_srcdir:$srcdir:$PATH + # mimeflt [FILE] # Filter out all variable information from a MIME message in FILE. # If FILE is not given, filter stdin. |