test.mk 8.78 KB
Newer Older
1
LIBVPX_TEST_SRCS-yes += acm_random.h
2
LIBVPX_TEST_SRCS-yes += clear_system_state.h
3
4
LIBVPX_TEST_SRCS-yes += codec_factory.h
LIBVPX_TEST_SRCS-yes += md5_helper.h
5
LIBVPX_TEST_SRCS-yes += register_state_check.h
6
LIBVPX_TEST_SRCS-yes += test.mk
7
LIBVPX_TEST_SRCS-yes += test_libvpx.cc
8
9
LIBVPX_TEST_SRCS-yes += test_vectors.cc
LIBVPX_TEST_SRCS-yes += test_vectors.h
10
LIBVPX_TEST_SRCS-yes += util.h
11
LIBVPX_TEST_SRCS-yes += video_source.h
Yi Luo's avatar
Yi Luo committed
12
LIBVPX_TEST_SRCS-yes += transform_test_base.h
Jim Bankoski's avatar
Jim Bankoski committed
13

14
15
16
17
18
##
## BLACK BOX TESTS
##
## Black box tests only use the public API.
##
19
LIBVPX_TEST_SRCS-yes                   += ../md5_utils.h ../md5_utils.c
20
21
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS)    += ivf_video_source.h
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += ../y4minput.h ../y4minput.c
22
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += altref_test.cc
23
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += aq_segment_test.cc
24
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += datarate_test.cc
25
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += encode_api_test.cc
26
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += error_resilience_test.cc
27
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += i420_video_source.h
James Zern's avatar
James Zern committed
28
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += resize_test.cc
29
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += y4m_video_source.h
30
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += yuv_video_source.h
31
32
33

LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += config_test.cc
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += cq_test.cc
34
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += keyframe_test.cc
35

36
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += byte_alignment_test.cc
37
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += external_frame_buffer_test.cc
38
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += invalid_file_test.cc
39
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += user_priv_test.cc
40
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += vp9_frame_parallel_test.cc
41
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += borders_test.cc
Jim Bankoski's avatar
Jim Bankoski committed
42
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += cpu_speed_test.cc
43
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += frame_size_tests.cc
Yaowu Xu's avatar
Yaowu Xu committed
44
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_lossless_test.cc
45
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_ethread_test.cc
46

47
48
LIBVPX_TEST_SRCS-yes                   += decode_test_driver.cc
LIBVPX_TEST_SRCS-yes                   += decode_test_driver.h
49
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += encode_test_driver.cc
50
LIBVPX_TEST_SRCS-yes                   += encode_test_driver.h
51
52
LIBVPX_TEST_SRCS-yes                   += randomise.h
LIBVPX_TEST_SRCS-yes                   += randomise.cc
53

54
55
56
## IVF writing.
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += ../ivfenc.c ../ivfenc.h

57
58
59
## Y4m parsing.
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += y4m_test.cc ../y4menc.c ../y4menc.h

John Koleszar's avatar
John Koleszar committed
60
## WebM Parsing
61
ifeq ($(CONFIG_WEBM_IO), yes)
62
63
64
65
LIBWEBM_PARSER_SRCS += ../third_party/libwebm/mkvparser/mkvparser.cc
LIBWEBM_PARSER_SRCS += ../third_party/libwebm/mkvparser/mkvreader.cc
LIBWEBM_PARSER_SRCS += ../third_party/libwebm/mkvparser/mkvparser.h
LIBWEBM_PARSER_SRCS += ../third_party/libwebm/mkvparser/mkvreader.h
66
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS)    += $(LIBWEBM_PARSER_SRCS)
67
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS)    += ../tools_common.h
68
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS)    += ../webmdec.cc
69
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS)    += ../webmdec.h
John Koleszar's avatar
John Koleszar committed
70
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS)    += webm_video_source.h
71
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += vp9_skip_loopfilter_test.cc
72
endif
73

James Zern's avatar
James Zern committed
74
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS)    += decode_api_test.cc
John Koleszar's avatar
John Koleszar committed
75
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS)    += test_vector_test.cc
76

77
78
79
80
# Currently we only support decoder perf tests for vp9. Also they read from WebM
# files, so WebM IO is required.
ifeq ($(CONFIG_DECODE_PERF_TESTS)$(CONFIG_VP9_DECODER)$(CONFIG_WEBM_IO), \
      yesyesyes)
81
82
LIBVPX_TEST_SRCS-yes                   += decode_perf_test.cc
endif
83

Joshua Litt's avatar
Joshua Litt committed
84
85
86
87
88
# encode perf tests are vp9 only
ifeq ($(CONFIG_ENCODE_PERF_TESTS)$(CONFIG_VP9_ENCODER), yesyes)
LIBVPX_TEST_SRCS-yes += encode_perf_test.cc
endif

James Zern's avatar
James Zern committed
89
## Multi-codec / unconditional black box tests.
90
91
92
ifeq ($(findstring yes,$(CONFIG_VP9_ENCODER)$(CONFIG_VP10_ENCODER)),yes)
LIBVPX_TEST_SRCS-yes += active_map_refresh_test.cc
LIBVPX_TEST_SRCS-yes += active_map_test.cc
93
LIBVPX_TEST_SRCS-yes += end_to_end_test.cc
94
95
endif

96
97
98
99
100
101
102
103
##
## WHITE BOX TESTS
##
## Whitebox tests invoke functions not exposed via the public API. Certain
## shared library builds don't make these functions accessible.
##
ifeq ($(CONFIG_SHARED),)

104
## VP8
James Zern's avatar
James Zern committed
105
ifeq ($(CONFIG_VP8),yes)
106

107
108
# These tests require both the encoder and decoder to be built.
ifeq ($(CONFIG_VP8_ENCODER)$(CONFIG_VP8_DECODER),yesyes)
109
LIBVPX_TEST_SRCS-yes                   += vp8_boolcoder_test.cc
110
LIBVPX_TEST_SRCS-yes                   += vp8_fragments_test.cc
111
112
113
endif

LIBVPX_TEST_SRCS-$(CONFIG_POSTPROC)    += pp_filter_test.cc
114
LIBVPX_TEST_SRCS-$(CONFIG_VP8_DECODER) += vp8_decrypt_test.cc
James Zern's avatar
James Zern committed
115
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += quantize_test.cc
116
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += set_roi.cc
James Zern's avatar
James Zern committed
117
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += variance_test.cc
118
119
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += vp8_fdct4x4_test.cc

120
121
LIBVPX_TEST_SRCS-yes                   += idct_test.cc
LIBVPX_TEST_SRCS-yes                   += sixtap_predict_test.cc
Johann's avatar
Johann committed
122
LIBVPX_TEST_SRCS-yes                   += vpx_scale_test.cc
123

JackyChen's avatar
JackyChen committed
124
125
126
127
ifeq ($(CONFIG_VP8_ENCODER)$(CONFIG_TEMPORAL_DENOISING),yesyes)
LIBVPX_TEST_SRCS-$(HAVE_SSE2) += vp8_denoiser_sse2_test.cc
endif

128
129
130
endif # VP8

## VP9
James Zern's avatar
James Zern committed
131
ifeq ($(CONFIG_VP9),yes)
132
133
134

# These tests require both the encoder and decoder to be built.
ifeq ($(CONFIG_VP9_ENCODER)$(CONFIG_VP9_DECODER),yesyes)
135
136
# IDCT test currently depends on FDCT function
LIBVPX_TEST_SRCS-yes                   += idct8x8_test.cc
137
LIBVPX_TEST_SRCS-yes                   += partial_idct_test.cc
John Koleszar's avatar
John Koleszar committed
138
LIBVPX_TEST_SRCS-yes                   += superframe_test.cc
139
LIBVPX_TEST_SRCS-yes                   += tile_independence_test.cc
140
LIBVPX_TEST_SRCS-yes                   += vp9_boolcoder_test.cc
141
142
LIBVPX_TEST_SRCS-yes                   += vp9_encoder_parms_get_to_decoder.cc
endif
143

James Zern's avatar
James Zern committed
144
145
146
LIBVPX_TEST_SRCS-yes                   += convolve_test.cc
LIBVPX_TEST_SRCS-yes                   += lpf_8_test.cc
LIBVPX_TEST_SRCS-yes                   += vp9_intrapred_test.cc
147
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += vp9_decrypt_test.cc
James Zern's avatar
James Zern committed
148
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += vp9_thread_test.cc
149
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += dct16x16_test.cc
Yaowu Xu's avatar
Yaowu Xu committed
150
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += dct32x32_test.cc
151
152
153
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += fdct4x4_test.cc
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += fdct8x8_test.cc
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += variance_test.cc
154
155
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_error_block_test.cc
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_quantize_test.cc
156
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += subtract_test.cc
157

James Zern's avatar
James Zern committed
158
159
ifeq ($(CONFIG_VP9_ENCODER),yes)
LIBVPX_TEST_SRCS-$(CONFIG_SPATIAL_SVC) += svc_test.cc
160
LIBVPX_TEST_SRCS-$(CONFIG_INTERNAL_STATS) += blockiness_test.cc
161
LIBVPX_TEST_SRCS-$(CONFIG_INTERNAL_STATS) += consistency_test.cc
James Zern's avatar
James Zern committed
162
163
endif

JackyChen's avatar
JackyChen committed
164
165
ifeq ($(CONFIG_VP9_ENCODER)$(CONFIG_VP9_TEMPORAL_DENOISING),yesyes)
LIBVPX_TEST_SRCS-$(HAVE_SSE2) += vp9_denoiser_sse2_test.cc
166
endif
167
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_arf_freq_test.cc
168

169
170
endif # VP9

171
## VP10
James Zern's avatar
James Zern committed
172
173
ifeq ($(CONFIG_VP10),yes)
LIBVPX_TEST_SRCS-yes                    += vp10_inv_txfm_test.cc
174
LIBVPX_TEST_SRCS-$(CONFIG_VP10_ENCODER) += vp10_dct_test.cc
Yi Luo's avatar
Yi Luo committed
175
LIBVPX_TEST_SRCS-$(CONFIG_VP10_ENCODER) += vp10_fht4x4_test.cc
Yi Luo's avatar
Yi Luo committed
176
LIBVPX_TEST_SRCS-$(CONFIG_VP10_ENCODER) += vp10_fht8x8_test.cc
177
LIBVPX_TEST_SRCS-$(CONFIG_VP10_ENCODER) += vp10_fht16x16_test.cc
178
LIBVPX_TEST_SRCS-$(CONFIG_ANS)          += vp10_ans_test.cc
179
LIBVPX_TEST_SRCS-$(CONFIG_EXT_TILE)     += vp10_ext_tile_test.cc
James Zern's avatar
James Zern committed
180

181
LIBVPX_TEST_SRCS-$(CONFIG_VP10_ENCODER) += sum_squares_test.cc
182
LIBVPX_TEST_SRCS-$(CONFIG_VP10_ENCODER) += subtract_test.cc
183
184
185
186

ifeq ($(CONFIG_EXT_INTER),yes)
LIBVPX_TEST_SRCS-$(HAVE_SSSE3) += masked_variance_test.cc
LIBVPX_TEST_SRCS-$(HAVE_SSSE3) += masked_sad_test.cc
Geza Lore's avatar
Geza Lore committed
187
LIBVPX_TEST_SRCS-$(CONFIG_VP10_ENCODER) += blend_mask6_test.cc
188
endif
189
190

ifeq ($(CONFIG_VP9_HIGHBITDEPTH),yes)
191
LIBVPX_TEST_SRCS-$(HAVE_SSE4_1) += vp10_highbd_iht_test.cc
192
endif # CONFIG_VP9_HIGHBITDEPTH
James Zern's avatar
James Zern committed
193
194
195
endif # VP10

## Multi-codec / unconditional whitebox tests.
James Zern's avatar
James Zern committed
196
197
198
ifeq ($(findstring yes,$(CONFIG_VP9_ENCODER)$(CONFIG_VP10_ENCODER)),yes)
LIBVPX_TEST_SRCS-yes += avg_test.cc
endif
199
200
201
ifeq ($(CONFIG_INTERNAL_STATS),yes)
LIBVPX_TEST_SRCS-$(CONFIG_VP9_HIGHBITDEPTH) += hbd_metrics_test.cc
endif
James Zern's avatar
James Zern committed
202
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += sad_test.cc
Angie Chiang's avatar
Angie Chiang committed
203
LIBVPX_TEST_SRCS-$(CONFIG_VP10) += vp10_txfm_test.h
204
LIBVPX_TEST_SRCS-$(CONFIG_VP10) += vp10_txfm_test.cc
Angie Chiang's avatar
Angie Chiang committed
205
LIBVPX_TEST_SRCS-$(CONFIG_VP10) += vp10_fwd_txfm1d_test.cc
Angie Chiang's avatar
Angie Chiang committed
206
LIBVPX_TEST_SRCS-$(CONFIG_VP10) += vp10_inv_txfm1d_test.cc
Angie Chiang's avatar
Angie Chiang committed
207
LIBVPX_TEST_SRCS-$(CONFIG_VP10) += vp10_fwd_txfm2d_test.cc
Angie Chiang's avatar
Angie Chiang committed
208
LIBVPX_TEST_SRCS-$(CONFIG_VP10) += vp10_inv_txfm2d_test.cc
209
LIBVPX_TEST_SRCS-$(CONFIG_VP10) += vp10_convolve_test.cc
210

211
212
TEST_INTRA_PRED_SPEED_SRCS-yes := test_intra_pred_speed.cc
TEST_INTRA_PRED_SPEED_SRCS-yes += ../md5_utils.h ../md5_utils.c
James Zern's avatar
James Zern committed
213

James Zern's avatar
James Zern committed
214
endif # CONFIG_SHARED
215

James Zern's avatar
James Zern committed
216
include $(SRC_PATH_BARE)/test/test-data.mk