mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-02-16 15:13:18 +01:00
tests: Test against source man pages.
Without this, help-test tests against the installed man pages, rather than the default ones.
This commit is contained in:
parent
1652ea7d1b
commit
d29ff5699d
1 changed files with 8 additions and 3 deletions
|
@ -1070,6 +1070,7 @@ find_notmuch_path ()
|
||||||
# Test the binaries we have just built. The tests are kept in
|
# Test the binaries we have just built. The tests are kept in
|
||||||
# test/ subdirectory and are run in 'trash directory' subdirectory.
|
# test/ subdirectory and are run in 'trash directory' subdirectory.
|
||||||
TEST_DIRECTORY=$(pwd)
|
TEST_DIRECTORY=$(pwd)
|
||||||
|
notmuch_path=`find_notmuch_path "$TEST_DIRECTORY"`
|
||||||
if test -n "$valgrind"
|
if test -n "$valgrind"
|
||||||
then
|
then
|
||||||
make_symlink () {
|
make_symlink () {
|
||||||
|
@ -1130,11 +1131,15 @@ then
|
||||||
PATH=$GIT_VALGRIND/bin:$PATH
|
PATH=$GIT_VALGRIND/bin:$PATH
|
||||||
GIT_EXEC_PATH=$GIT_VALGRIND/bin
|
GIT_EXEC_PATH=$GIT_VALGRIND/bin
|
||||||
export GIT_VALGRIND
|
export GIT_VALGRIND
|
||||||
|
test -n "$notmuch_path" && MANPATH="$notmuch_path/man:$MANPATH"
|
||||||
else # normal case
|
else # normal case
|
||||||
notmuch_path=`find_notmuch_path "$TEST_DIRECTORY"`
|
if test -n "$notmuch_path"
|
||||||
test -n "$notmuch_path" && PATH="$notmuch_path:$PATH"
|
then
|
||||||
|
PATH="$notmuch_path:$PATH"
|
||||||
|
MANPATH="$notmuch_path/man:$MANPATH"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
export PATH
|
export PATH MANPATH
|
||||||
|
|
||||||
# Test repository
|
# Test repository
|
||||||
test="tmp.$(basename "$0" .sh)"
|
test="tmp.$(basename "$0" .sh)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue