2 # Dpkg functional testsuite (kind of)
4 # Copyright © 2008-2015 Guillem Jover <guillem@debian.org>
8 -include .pkg-tests.conf
10 ## Feature checks setup ##
17 TESTS_MANUAL
+= t-deb-lfs
18 TESTS_MANUAL
+= t-conffile-prompt
21 TESTS_FAIL
+= t-dir-leftover-deadlock
22 TESTS_FAIL
+= t-dir-shared-replaces-lost
23 TESTS_FAIL
+= t-breaks-multiarch
27 TESTS_PASS
+= t-normal
28 TESTS_PASS
+= t-field-priority
29 TESTS_PASS
+= t-option-dry-run
30 TESTS_PASS
+= t-option-recursive
31 TESTS_PASS
+= t-control-bogus
32 TESTS_PASS
+= t-control-no-arch
33 TESTS_PASS
+= t-unpack-symlink
34 TESTS_PASS
+= t-unpack-hardlink
35 TESTS_PASS
+= t-unpack-divert-hardlink
36 TESTS_PASS
+= t-unpack-divert-nowarn
37 TESTS_PASS
+= t-unpack-divert-overwrite
38 TESTS_PASS
+= t-unpack-fifo
40 # No permissions for devices
41 TESTS_PASS
+= t-unpack-device
43 TESTS_PASS
+= t-maintscript-leak
44 TESTS_PASS
+= t-filtering
45 TESTS_PASS
+= t-depends
46 TESTS_PASS
+= t-dir-leftover-parents
47 TESTS_PASS
+= t-dir-leftover-conffile
48 TESTS_PASS
+= t-disappear
49 TESTS_PASS
+= t-disappear-depended
50 TESTS_PASS
+= t-disappear-diverted
51 TESTS_PASS
+= t-disappear-diverted-other
52 TESTS_PASS
+= t-disappear-empty
53 TESTS_PASS
+= t-provides
54 TESTS_PASS
+= t-provides-self
55 TESTS_PASS
+= t-provides-arch-implicit
56 TESTS_PASS
+= t-provides-arch-qualified
57 TESTS_PASS
+= t-breaks
58 TESTS_PASS
+= t-breaks-protected
59 TESTS_PASS
+= t-breaks-essential
60 TESTS_PASS
+= t-conflicts
61 TESTS_PASS
+= t-conflicts-replaces
62 TESTS_PASS
+= t-conflict-provide-replace-real
63 TESTS_PASS
+= t-conflict-provide-replace-virtual
64 TESTS_PASS
+= t-conflict-provide-replace-virtual-multiarch
65 TESTS_PASS
+= t-conflict-provide-replace-interface
66 TESTS_PASS
+= t-predepends-no-triggers
67 TESTS_PASS
+= t-triggers
68 TESTS_PASS
+= t-triggers-db
69 TESTS_PASS
+= t-triggers-configure
70 TESTS_PASS
+= t-triggers-path
71 TESTS_PASS
+= t-triggers-depends
72 TESTS_PASS
+= t-triggers-depcycle
73 TESTS_PASS
+= t-triggers-depfarcycle
74 TESTS_PASS
+= t-triggers-selfcycle
75 TESTS_PASS
+= t-triggers-cycle
76 TESTS_PASS
+= t-triggers-halt
77 TESTS_PASS
+= t-file-conflicts
78 TESTS_PASS
+= t-file-replaces
79 TESTS_PASS
+= t-file-replaces-disappear
80 TESTS_PASS
+= t-file-replaces-versioned
81 TESTS_PASS
+= t-conffile-normal
82 TESTS_PASS
+= t-conffile-obsolete
83 TESTS_PASS
+= t-conffile-orphan
84 TESTS_PASS
+= t-conffile-forcemiss
85 TESTS_PASS
+= t-conffile-forcenew
86 TESTS_PASS
+= t-conffile-forceask
87 TESTS_PASS
+= t-conffile-root-option
88 TESTS_PASS
+= t-conffile-divert-normal
89 TESTS_PASS
+= t-conffile-divert-conffile
90 TESTS_PASS
+= t-conffile-conflict
91 TESTS_PASS
+= t-conffile-replaces
92 TESTS_PASS
+= t-conffile-replaces-upgrade
93 TESTS_PASS
+= t-conffile-replaces-downgrade
94 TESTS_PASS
+= t-conffile-replaces-existing
95 TESTS_PASS
+= t-conffile-replaces-existing-and-upgrade
96 TESTS_PASS
+= t-conffile-replaces-disappear
97 TESTS_PASS
+= t-conffile-replaces-diverted
98 TESTS_PASS
+= t-conffile-versioned-replaces-downgrade
99 TESTS_PASS
+= t-conffile-rename
100 TESTS_PASS
+= t-conffile-declarative-removal
101 TESTS_PASS
+= t-queue-process-deconf-dupe
102 TESTS_PASS
+= t-symlink-dir
103 TESTS_PASS
+= t-switch-symlink-abs-to-dir
104 TESTS_PASS
+= t-switch-symlink-rel-to-dir
105 TESTS_PASS
+= t-switch-dir-to-symlink-abs
106 TESTS_PASS
+= t-switch-dir-to-symlink-rel
107 TESTS_PASS
+= t-failinst-failrm
108 TESTS_PASS
+= t-dir-extension-check
109 TESTS_PASS
+= t-multiarch
111 ifneq (,$(filter test-all
,$(DPKG_TESTSUITE_OPTIONS
)))
112 TESTS
:= $(TESTS_PASS
) $(TESTS_FAIL
) $(TESTS_MANUAL
)
114 TESTS
:= $(TESTS_PASS
)
118 # By default do nothing
120 @echo
"Run 'make test' to run all the tests"
121 @echo
"Run 'make installtest' to run all the tests as installed"
122 @echo
"Run 'make <test-id>-test' to run a specifict test"
123 @echo
"Run 'make clean' to remove all intermediary files"
125 @echo
"The available tests are: $(TESTS)"
127 build_targets
= $(addsuffix -build
,$(TESTS
))
129 build
:: $(build_targets
)
131 $(MAKE
) -C
$(subst -build
,,$@
) build
133 .PHONY
: build
$(build_targets
)
136 test_targets
= $(addsuffix -test,$(TESTS
))
138 test:: export DPKG_BUILDTREE
=$(realpath ..
)
139 test:: $(test_targets
)
141 $(MAKE
) -C
$(subst -test,,$@
) test
143 installtest
: $(test_targets
)
145 .PHONY
: test $(test_targets
)
148 test_clean_targets
= $(addsuffix -test-clean
,$(TESTS
))
150 test-clean
:: $(test_clean_targets
)
151 $(test_clean_targets
)::
152 $(MAKE
) -C
$(subst -test-clean
,,$@
) test-clean
154 .PHONY
: test-clean
$(test_clean_targets
)
157 clean_targets
= $(addsuffix -clean,$(TESTS
))
159 clean:: $(clean_targets
)
161 $(MAKE
) -C
$(subst -clean,,$@
) clean
163 .PHONY
: clean $(clean_targets
)