Makefile.dir 1.13 KB
Newer Older
1

2
TRANS_SYS_TESTS := \
3
	help \
4
	install \
5
	remove \
6 7
	remove-nonexistent \
	reboot-recover
8

9
UPD_SYS_TESTS := \
10
	help \
11
	plan \
12
	steal-confs \
13
	simple-update \
14
	multiple-repos \
15
	reboot \
16
	provides \
17
	provides-replace \
Karel Koci's avatar
Karel Koci committed
18
	abi-change \
19
	replan \
20
	replan-no-effect \
21
	list-dir \
22
	force-downgrade \
23
	conflicts \
24
	postinst \
25
	reboot-recover-update
26

27 28 29 30
.PHONY: test-sys valgrind-sys check

check: test-sys valgrind-sys

31
# As secondary tool we use pkgupdate in reboot-recover test
32 33
test-sys-pkgtransaction-reboot-recover: $(O)/bin/pkgupdate
valgrind-sys-pkgtransaction-reboot-recover: $(O)/bin/pkgupdate
34

35 36 37 38 39 40 41
define DO_SYS_TEST

test-sys: test-sys-$(1)-$(2)
valgrind-sys: valgrind-sys-$(1)-$(2)
.PHONY: test-sys-$(1)-$(2) valgrind-sys-$(1)-$(2)

test-sys-$(1)-$(2): $(O)/bin/$(1)
42
	LAUNCHER= S=$(S) O=$(abspath $(O)) $(S)/tests/system/run $(1) $(S)/tests/system/$(2)
43 44

valgrind-sys-$(1)-$(2): $(O)/bin/$(1)
45
	LAUNCHER="$(VALGRIND)" S=$(S) O=$(abspath $(O)) $(S)/tests/system/run $(1) $(S)/tests/system/$(2)
46 47 48

endef

49
$(eval $(foreach TEST,$(TRANS_SYS_TESTS),$(call DO_SYS_TEST,pkgtransaction,$(TEST))))
50
$(eval $(foreach TEST,$(UPD_SYS_TESTS),$(call DO_SYS_TEST,pkgupdate,$(TEST))))