summaryrefslogtreecommitdiff
path: root/tests/check.mk
blob: f5c08a259e52b693bcf9f8063f7826ce63bf9a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# FIXME: add comment

# Ensure that all version-controlled executable files are listed in TESTS.
_v = TESTS
FIXME_hook_this_to_make_distcheck:
	sed -n '/^$(_v) =/,/[^\]$$/p' $(srcdir)/Makefile.am \
	  | sed 's/^  *//;/^\$$.*/d;/^$(_v) =/d' \
	  | tr -s '\012\\' '  ' | fmt -1 | sort -u > t1
	find `$(top_srcdir)/build-aux/vc-list-files $(srcdir)` \
	    -type f -perm -111 -printf '%f\n'|sort -u \
	  | diff -u t1 -

# Append this, because automake does the same.
TESTS_ENVIRONMENT +=			\
  abs_top_srcdir=$(abs_top_srcdir)	\
  srcdir=$(srcdir)

TEST_LOGS = $(TESTS:=.log)

# Parallel replacement of Automake's check-TESTS target.
# Include it last.
include $(top_srcdir)/build-aux/check.mk