#!/usr/bin/make -f # resolve DEB_DISTRIBUTION include /usr/share/dpkg/pkg-info.mk # resolve if release is experimental DEB_SUITE_EXP = $(filter experimental% UNRELEASED,$(DEB_DISTRIBUTION)) TEST_BROKEN = \ accept_headers_populated_by_default \ header_can_be_inserted_in_httpclient_builder \ headers_in_request_builder_must_override_headers_in_httpclient_builder \ headers_in_request_builder_must_override_multiple_headers_in_httpclient_builder \ multiple_headers_with_same_key_can_be_inserted_in_httpclient_builder \ deflate_encoded_response_is_decoded_automatically \ gzip_encoded_response_is_decoded_automatically %: dh $@ # avoid checking examples, too broken (possibly due to use of newer tiny-http) # tolerate test failures when targeted experimental override_dh_auto_test: dh_auto_test --buildsystem rust -- \ --lib --bins --tests --benches --no-fail-fast -- \ $(addprefix --skip ,$(TEST_BROKEN)) \ $(if $(DEB_SUITE_EXP),|| true)