| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
|
| 5 |
# skip tests failing on official build daemons: |
| 6 |
# * test-wsc: unit/test-wsc.c:435: wsc_test_uuid_from_addr: Assertion `wsc_uuid_from_addr(test->addr, uuid)' failed. |
| 7 |
# * test-eap-sim: unit/test-eap-sim.c:193: test_calc_mac: Assertion `!memcmp(ex_mac, pkt + pos - EAP_SIM_MAC_LEN, EAP_SIM_MAC_LEN)' failed. |
| 8 |
# cause could be kernel modules: <https://bugs.debian.org/1003536> |
| 9 |
# or (less likely) network-related: <https://bugs.debian.org/813471#40> |
| 10 |
TESTS = $(basename $(wildcard unit/*.c)) |
| 11 |
TESTS_FLAKY = unit/test-wsc unit/test-eap-sim |
| 12 |
|
| 13 |
override_dh_auto_configure: |
| 14 |
dh_auto_configure -- --enable-external-ell |
| 15 |
|
| 16 |
override_dh_auto_test: |
| 17 |
make -j2 check VERBOSE=1 TESTS='$(filter-out $(TESTS_FLAKY),$(TESTS))' |
| 18 |
make -j2 check VERBOSE=1 TESTS='$(TESTS_FLAKY)' || true |
| 19 |
|
| 20 |
override_dh_installinit: |
| 21 |
dh_installinit --no-enable --no-start --no-stop-on-upgrade |
| 22 |
|
| 23 |
override_dh_installsystemd: |
| 24 |
dh_installsystemd --no-enable --no-start --no-stop-on-upgrade |
| 25 |
|
| 26 |
%: |
| 27 |
dh $@ |