mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
fix out of tree tests
Use $NOTMUCH_SRCDIR/ instead of $TEST_DIRECTORY/../ (in those 2 places) where reference to source directory instead of build directory is required.
This commit is contained in:
parent
35cdebdad0
commit
936c35da86
1 changed files with 2 additions and 2 deletions
|
@ -1121,7 +1121,7 @@ test_emacs () {
|
||||||
test_python() {
|
test_python() {
|
||||||
# Note: if there is need to print debug information from python program,
|
# Note: if there is need to print debug information from python program,
|
||||||
# use stdout = os.fdopen(6, 'w') or stderr = os.fdopen(7, 'w')
|
# use stdout = os.fdopen(6, 'w') or stderr = os.fdopen(7, 'w')
|
||||||
PYTHONPATH="$TEST_DIRECTORY/../bindings/python${PYTHONPATH:+:$PYTHONPATH}" \
|
PYTHONPATH="$NOTMUCH_SRCDIR/bindings/python${PYTHONPATH:+:$PYTHONPATH}" \
|
||||||
$NOTMUCH_PYTHON -B - > OUTPUT
|
$NOTMUCH_PYTHON -B - > OUTPUT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1133,7 +1133,7 @@ test_C () {
|
||||||
exec_file="test${test_count}"
|
exec_file="test${test_count}"
|
||||||
test_file="${exec_file}.c"
|
test_file="${exec_file}.c"
|
||||||
cat > ${test_file}
|
cat > ${test_file}
|
||||||
${TEST_CC} ${TEST_CFLAGS} -I${TEST_DIRECTORY} -I${TEST_DIRECTORY}/../lib -o ${exec_file} ${test_file} -L${TEST_DIRECTORY}/../lib/ -lnotmuch -ltalloc
|
${TEST_CC} ${TEST_CFLAGS} -I${TEST_DIRECTORY} -I${NOTMUCH_SRCDIR}/lib -o ${exec_file} ${test_file} -L${TEST_DIRECTORY}/../lib/ -lnotmuch -ltalloc
|
||||||
echo "== stdout ==" > OUTPUT.stdout
|
echo "== stdout ==" > OUTPUT.stdout
|
||||||
echo "== stderr ==" > OUTPUT.stderr
|
echo "== stderr ==" > OUTPUT.stderr
|
||||||
./${exec_file} "$@" 1>>OUTPUT.stdout 2>>OUTPUT.stderr
|
./${exec_file} "$@" 1>>OUTPUT.stdout 2>>OUTPUT.stderr
|
||||||
|
|
Loading…
Reference in a new issue