File: rules

package info (click to toggle)
rust-isahc 1.7.2%2Bds-33
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,184 kB
  • sloc: makefile: 26; sh: 1
file content (27 lines) | stat: -rwxr-xr-x 956 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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)