summaryrefslogtreecommitdiff
path: root/installcheck.mk
diff options
context:
space:
mode:
Diffstat (limited to 'installcheck.mk')
-rw-r--r--installcheck.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/installcheck.mk b/installcheck.mk
index 93a8fea35..f4c49e299 100644
--- a/installcheck.mk
+++ b/installcheck.mk
@@ -5,7 +5,10 @@ installcheck-local: $(INSTALL_TESTS)
for script in $(INSTALL_TESTS); do \
echo "Test case: $$script"; \
total="$$(expr $$total + 1)"; \
- if "./$$script"; then \
+ if test -f "./$$script"; then dir="./"; \
+ elif test -f "$$script"; then dir=""; \
+ else dir="$(srcdir)/"; fi; \
+ if $(INSTALL_TESTS_ENVIRONMENT) "$$dir/$$script"; then \
echo "SUCCEEDED: $$script"; \
success="$$(expr $$success + 1)"; \
else \