forked from verificarlo/verificarlo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
39 lines (31 loc) · 926 Bytes
/
Makefile.am
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
28
29
30
31
32
33
34
35
36
37
38
39
ACLOCAL_AMFLAGS=-I m4
SUBDIRS=src/
dist_bin_SCRIPTS=verificarlo verificarlo-c verificarlo-f verificarlo-c++
edit_script = $(SED) -e 's,%LIBDIR%,$(libdir),'g $(NULL)
verificarlo: verificarlo.in Makefile
$(AM_V_GEN)rm -f $@ [email protected] && \
$(edit_script) $< >[email protected] && \
chmod a-w [email protected] && \
mv [email protected] $@
verificarlo-c:
chmod a-w $@
verificarlo-c++:
chmod a-w $@
verificarlo-f:
chmod a-w $@
CLEANFILES = verificarlo
check:
@echo "Tests should be run after install with make installcheck"
installcheck:
# Run tests
# When successful print simple message
# If some tests have failed, report only the failing logs for the failed tests
@if $(MAKE) -C tests/ check; then \
echo "All tests have passed."; \
else \
grep FAIL tests/testplan.log | \
while IFS= read -r line ; do \
TEST=$$(echo $$line | cut -d' ' -f4); echo "************** TEST $${TEST}"; cat tests/$${TEST}/test.log; \
done; \
exit 1; \
fi