blob: 404903b12f62f7a9027837764523d1cef2f7c281 (
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
28
29
30
31
32
33
34
35
|
RM = rm -f
results_dir := $(test_dir)/test-results
trash_dir := $(test_dir)/trashes
test_options := --executables-dir $(shell pwd)
test_options += --results-dir $(results_dir)
test_options += --trash-dir $(trash_dir)
test_options += --executables "$(prefixed_executables)"
test_options += --objects "$(basename $(dep_objs))"
test_options += --man-dir $(man_dir)
ifdef V
ifeq ("$(origin V)", "command line")
test_options += --verbose=$(V)
endif
endif
tests := $(sort $(wildcard $(test_dir)/t[0-9][0-9][0-9][0-9]-*.bash))
check: $(tests)
test: $(tests)
$(tests): all
$(call SAY, $(@))
$@ $(test_options)
test-help:
@for t in $(tests); do $$t $(test_options) -h; done
test-clean:
$(RM) -r $(results_dir)
$(RM) -r $(trash_dir)
.PHONY: $(tests) test-help test-clean test check
|