Refuse to run tex2lyx tests with in-source builds

As Günter found out running the tex2lyx tests overwrites the test references
if the build directory is identical to the source directory. Therefore the
tests would always pass, but git diff would show a non-empty diff if the tests
should have failed. Since it is better anyway to build in a separate directory
we simply do not support srcdir = builddir for the tests and abort with an
error.
This commit is contained in:
Georg Baum 2015-09-17 22:11:18 +02:00
parent 02ead6a93a
commit 4a5efb5a7d

View File

@ -67,6 +67,10 @@ TEST_RESULTS = \
alltests: check alltests-recursive
alltests-recursive: tex2lyx
if test "$(srcdir)" = "$(builddir)"; then \
echo "tex2lyx tests require a separate build directory"; \
exit 1; \
fi
@$(PYTHON) "$(srcdir)/test/runtests.py"; \
if test $$? -eq 0; then \
echo -e "=====================\ntex2lyx tests passed.\n====================="; \