Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # needed to resolve DEB_HOST_ARCH DEB_DISTRIBUTION
4 include /usr/share/dpkg/pkg-info.mk
5
6 # detect if build targets experimental suite (or is a draft)
7 DEB_SUITE_EXP = $(filter experimental% UNRELEASED,$(DEB_DISTRIBUTION))
8
9 ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
10 export PYBUILD_TEST_ARGS=-vv
11 endif
12
13 # avoid shipping sandbox test files
14 export DH_OPTIONS = -O--buildsystem=pybuild
15
16 TESTFILES_BROKEN = \
17 tests/test_doctests.py \
18 tests/test_timeout.py
19 TESTS_NET = \
20 test_add_mux_stream_video \
21 test_add_stream_from_template_copies_time_base \
22 test_attachment_stream \
23 test_audio_transcode \
24 test_bits_per_coded_sample \
25 test_buffer_protocol \
26 test_chapters \
27 test_codec_delay \
28 test_codec_tag \
29 test_container_probing \
30 test_context_manager \
31 test_data \
32 test_decode_audio_sample_count \
33 test_decode_close_then_use \
34 test_decoded_motion_vectors \
35 test_decoded_time_base \
36 test_decoded_video_enc_params \
37 test_decoded_video_enc_params_no_flag \
38 test_decoded_video_frame_count \
39 test_decode_half \
40 test_deprecated_stream_seek \
41 test_discard \
42 test_encoding \
43 test_filter_flush \
44 test_filter_h264_mp4toannexb \
45 test_filter_output_parameters \
46 test_flush_decoded_video_frame_count \
47 test_frame_duration_matches_packet \
48 test_frame_index \
49 test_index_entries_in_bounds \
50 test_index_entries_len_mp4 \
51 test_index_entries_len_webm \
52 test_index_entries_matches_packet_mp4 \
53 test_index_entries_out_of_bounds \
54 test_index_entries_search_timestamp_options_mp4 \
55 test_index_entries_slice \
56 test_interpolation \
57 test_is_corrupt \
58 test_is_discard \
59 test_is_disposable \
60 test_is_keyframe \
61 test_iter \
62 test_loudnorm \
63 test_movtext \
64 test_no_side_data \
65 test_opaque \
66 test_palette \
67 test_parse \
68 test_path_input \
69 test_path_output \
70 test_penguin_joke \
71 test_printing_video_stream \
72 test_printing_video_stream2 \
73 test_reading \
74 test_seek_end \
75 test_seek_float \
76 test_seek_int64 \
77 test_seek_middle \
78 test_seek_start \
79 test_selection \
80 test_set_chapters \
81 test_set_duration \
82 test_side_data \
83 test_skip_samples_remux \
84 test_sky_timelapse \
85 test_stream_probing \
86 test_stream_seek \
87 test_stream_tuples \
88 test_str_input \
89 test_str_output \
90 test_subset \
91 test_subtitle_flush \
92 test_subtitle_header_read \
93 test_subtitle_muxing \
94 test_transcode \
95 test_video_codec_id \
96 test_video_plane_dlpack_export_keeps_frame_alive_after_gc \
97 test_video_remux \
98 test_vobsub
99 ifeq (,$(filter ppc64 ppc64el,$(DEB_HOST_ARCH)))
100 TESTS_NET += \
101 test_reformat_pixel_format_align \
102 test_encoding_h264
103 endif
104
105 # ignore test failure on 64-bit PowerPC
106 # https://github.com/PyAV-Org/PyAV/issues/834
107 # https://github.com/PyAV-Org/PyAV/issues/1452
108 export PYBUILD_TEST_ARGS += \
109 $(patsubst %,--ignore=%,$(TESTFILES_BROKEN)) \
110 -k 'not $(subst $() , and not ,$(strip $(TESTS_NET)))'
111
112 %:
113 dh $@
114
115 # avoid shipping sandbox test files
116 execute_after_dh_auto_install:
117 find debian/*/usr/lib -path '*/sandbox*' -delete