#!/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)) %: dh $@ override_dh_auto_test: dh_auto_test --buildsystem rust -- --no-fail-fast $(if $(DEB_SUITE_EXP), || true) # cleanup after test execute_after_dh_auto_test: rm -rf rustls/sslkeylogfile.txt # mangle system-shared code to use system-shared test-ca and fuzz data execute_after_dh_auto_install: perl -pi -e 's,\Q../../../test-ca,/usr/share/rust-rustls/test-ca,' \ debian/librust-*-dev/usr/share/cargo/registry/*/tests/common/mod.rs perl -pi -e 's,\Q../fuzz,/usr/share/rust-rustls/fuzz,' \ debian/librust-*-dev/usr/share/cargo/registry/*/src/msgs/message_test.rs