| 1 |
top_srcdir = @top_srcdir@ |
| 2 |
srcdir = @srcdir@ |
| 3 |
VPATH = @srcdir@ @top_srcdir@ |
| 4 |
SHELL = /bin/sh |
| 5 |
|
| 6 |
CC = @CC@ |
| 7 |
CFLAGS = @CFLAGS@ |
| 8 |
PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ |
| 9 |
CPPFLAGS = @CPPFLAGS@ |
| 10 |
LDFLAGS = @LDFLAGS@ |
| 11 |
DEFS = @DEFS@ |
| 12 |
LIBS = @LIBGSL@ @LIBS@ -lm |
| 13 |
|
| 14 |
SQCLEVEL = 2 |
| 15 |
|
| 16 |
QUIET_SUBDIR0 = +${MAKE} -C #space separator after -c |
| 17 |
QUIET_SUBDIR1 = |
| 18 |
ifndef V |
| 19 |
QUIET_CC = @echo ' ' CC $@; |
| 20 |
QUIET_GEN = @echo ' ' GEN $@; |
| 21 |
QUIET_AR = @echo ' ' AR $@; |
| 22 |
QUIET_SUBDIR0 = +@subdir= |
| 23 |
QUIET_SUBDIR1 = ; echo ' ' SUBDIR $$subdir; \ |
| 24 |
${MAKE} -s -C $$subdir |
| 25 |
endif |
| 26 |
|
| 27 |
.PHONY: check dcheck clean distclean |
| 28 |
|
| 29 |
check: |
| 30 |
@command -v python3 >/dev/null 2>&1 || { echo >&2 "python3 is required for 'make check', but is not in your PATH. Aborting."; exit 1; } |
| 31 |
@echo |
| 32 |
@echo Running Easel test suite... |
| 33 |
@echo |
| 34 |
@${srcdir}/../devkit/sqc ${SQCLEVEL} ${srcdir}/testsuite.sqc .. ${srcdir}/.. |
| 35 |
|
| 36 |
dcheck: |
| 37 |
@command -v python3 >/dev/null 2>&1 || { echo >&2 "python3 is required for 'make dcheck', but is not in your PATH. Aborting."; exit 1; } |
| 38 |
@echo |
| 39 |
@echo Running developer testsuite... |
| 40 |
@echo -n Compiling for unit tests and valgrind tests... |
| 41 |
@(cd ..; make clean > /dev/null; testsuite/${top_srcdir}/configure --enable-debugging >/dev/null; make dev > /dev/null) |
| 42 |
@echo done. |
| 43 |
@echo -n Running unit tests... |
| 44 |
@${srcdir}/../devkit/sqc ${SQCLEVEL} ${srcdir}/testsuite.sqc .. ${srcdir}/.. > utest.report |
| 45 |
@echo done. [See utest.report] |
| 46 |
@echo -n Looking for memory leaks... |
| 47 |
@${srcdir}/valgrind_report.pl .. ${srcdir}/.. > valgrind.report |
| 48 |
@echo done. [See valgrind.report] |
| 49 |
@echo -n Recompiling for coverage tests... |
| 50 |
@(cd ..; make clean > /dev/null; testsuite/${top_srcdir}/configure --enable-gcov > /dev/null; make tests > /dev/null) |
| 51 |
@echo done. |
| 52 |
@echo -n Measuring test code coverage... |
| 53 |
@${top_srcdir}/testsuite/coverage_report.pl .. ${top_srcdir} > coverage.report |
| 54 |
@echo done. [See coverage.report] |
| 55 |
@cat coverage.report valgrind.report utest.report > dcheck.report |
| 56 |
@echo |
| 57 |
@echo Finished developer testsuite. |
| 58 |
@echo For a complete report, see dcheck.report. |
| 59 |
|
| 60 |
clean: |
| 61 |
-rm -f *.gcno *.gcda *.gcov |
| 62 |
-rm -f esltmp?????? |
| 63 |
-rm -f *.o *~ |
| 64 |
-rm -f ${PROGS} |
| 65 |
ifndef V |
| 66 |
@echo ' ' CLEAN testsuite |
| 67 |
endif |
| 68 |
|
| 69 |
|
| 70 |
distclean: clean |
| 71 |
-rm -f coverage.report valgrind.report utest.report |
| 72 |
-rm -f Makefile |
| 73 |
|