1 # FIXME: Only run this if not cross-compiling
2 installcheck-local: $(INSTALL_TESTS) $(INSTALLCHECK_DEPS)
3 @total=0; failed=0; success=0; ignored=0; \
4 echo "Running \"installcheck\" test cases..."; \
5 for script in $(INSTALL_TESTS); do \
6 echo "Test case: $$script"; \
7 total="$$(expr $$total + 1)"; \
8 if test -f "./$$script"; then dir="./"; \
9 elif test -f "$$script"; then dir=""; \
10 else dir="$(srcdir)/"; fi; \
11 if $(INSTALL_TESTS_ENVIRONMENT) "$$dir/$$script"; then \
12 echo "SUCCEEDED: $$script"; \
13 success="$$(expr $$success + 1)"; \
16 if test "$$s" = "77"; then \
17 echo "FAILURE IGNORED (return code $$s): $$script"; \
18 ignored="$$(expr $$ignored + 1)"; \
20 echo "FAILED (return code $$s): $$script"; \
21 failed="$$(expr $$failed + 1)"; \
25 echo "Test summary: $$success succeeded, $$failed failed, $$ignored failures ignored, $$total tests in total."; \
26 if test "$$failed" -gt 0; then \
27 echo "Error: One or more \"installcheck\" testcases have failed."; \