gui: Check return value of para_exec_cmdline_pid().
[paraslash.git] / t / makefile.test
1 RM ?= rm -f
2
3 results_dir := $(test_dir)/test-results
4 trash_dir := $(test_dir)/trashes
5
6 test_options := --executables-dir $(shell pwd)
7 test_options += --results-dir $(results_dir)
8 test_options += --trash-dir $(trash_dir)
9 test_options += --executables "$(executables)"
10 test_options += --objects "$(basename $(notdir $(all_objs)))"
11
12 ifdef V
13 ifeq ("$(origin V)", "command line")
14 test_options += --verbose=$(V)
15 endif
16 endif
17
18 tests := $(sort $(wildcard $(test_dir)/t[0-9][0-9][0-9][0-9]-*.sh))
19
20 test: $(tests)
21
22 $(tests): all
23 $(Q) $@ $(test_options)
24
25 test-help:
26 $(Q) for t in $(tests); do $$t $(test_options) -h; done
27
28 test-clean:
29 $(RM) -r $(results_dir)
30 $(RM) -r $(trash_dir)
31
32 .PHONY: $(tests) test-help