forked from verificarlo/verificarlo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
47 lines (37 loc) · 1.09 KB
/
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
40
41
42
43
44
45
46
47
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
# clean-local is a clean dependency of autotool clean target
clean-local: cleantests
cleantests:
# Clean tests directory
cd tests/ && ./clean.sh && cd ..
@echo "tests directory is clean."