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