#!/usr/bin/make -f # needed to resolve DEB_HOST_ARCH DEB_DISTRIBUTION include /usr/share/dpkg/pkg-info.mk # detect if build targets experimental suite (or is a draft) DEB_SUITE_EXP = $(filter experimental% UNRELEASED,$(DEB_DISTRIBUTION)) # avoid shipping sandbox test files export DH_OPTIONS = -O--buildsystem=pybuild TESTFILES_BROKEN = \ tests/test_doctests.py \ tests/test_timeout.py TESTS_NET = \ test_audio_transcode \ test_bits_per_coded_sample \ test_codec_delay \ test_codec_tag \ test_container_probing \ test_context_manager \ test_data \ test_decode_audio_sample_count \ test_decode_close_then_use \ test_decoded_motion_vectors \ test_decoded_time_base \ test_decoded_video_frame_count \ test_decode_half \ test_deprecated_stream_seek \ test_encoding \ test_filter_flush \ test_filter_h264_mp4toannexb \ test_filter_output_parameters \ test_flush_decoded_video_frame_count \ test_frame_index \ test_is_corrupt \ test_is_discard \ test_is_disposable \ test_is_keyframe \ test_movtext \ test_noside_data \ test_parse \ test_path_input \ test_path_output \ test_penguin_joke \ test_reading \ test_seek_end \ test_seek_float \ test_seek_int64 \ test_seek_middle \ test_seek_start \ test_selection \ test_set_duration \ test_side_data \ test_sky_timelapse \ test_stream_probing \ test_stream_seek \ test_stream_tuples \ test_str_input \ test_str_output \ test_subtitle_flush \ test_transcode \ test_vobsub ifeq (,$(filter ppc64 ppc64el,$(DEB_HOST_ARCH))) TESTS_NET += \ test_reformat_pixel_format_align \ test_encoding_h264 endif # ignore test failure on 64-bit PowerPC # https://github.com/PyAV-Org/PyAV/issues/834 # https://github.com/PyAV-Org/PyAV/issues/1452 export PYBUILD_TEST_ARGS = \ $(patsubst %,--ignore=%,$(TESTFILES_BROKEN)) \ -k 'not $(subst $() , and not ,$(strip $(TESTS_NET)))' %: dh $@ # avoid shipping sandbox test files execute_after_dh_auto_install: find debian/*/usr/lib -path '*/sandbox*' -delete