test.mk 8.26 KB
Newer Older
1 2 3 4 5 6
LIBAOM_TEST_SRCS-yes += acm_random.h
LIBAOM_TEST_SRCS-yes += clear_system_state.h
LIBAOM_TEST_SRCS-yes += codec_factory.h
LIBAOM_TEST_SRCS-yes += md5_helper.h
LIBAOM_TEST_SRCS-yes += register_state_check.h
LIBAOM_TEST_SRCS-yes += test.mk
Yaowu Xu's avatar
Yaowu Xu committed
7
LIBAOM_TEST_SRCS-yes += test_libaom.cc
8 9 10 11
LIBAOM_TEST_SRCS-yes += util.h
LIBAOM_TEST_SRCS-yes += video_source.h
LIBAOM_TEST_SRCS-yes += transform_test_base.h
LIBAOM_TEST_SRCS-yes += function_equivalence_test.h
Jim Bankoski's avatar
Jim Bankoski committed
12

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

Yaowu Xu's avatar
Yaowu Xu committed
32 33 34 35 36 37 38 39
#LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += level_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += active_map_refresh_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += active_map_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += borders_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += cpu_speed_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += frame_size_tests.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += lossless_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += ethread_test.cc
40 41 42 43 44

LIBAOM_TEST_SRCS-yes                   += decode_test_driver.cc
LIBAOM_TEST_SRCS-yes                   += decode_test_driver.h
LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS)    += encode_test_driver.cc
LIBAOM_TEST_SRCS-yes                   += encode_test_driver.h
45

46
## IVF writing.
47
LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS)    += ../ivfenc.c ../ivfenc.h
48

49
## Y4m parsing.
50
LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS)    += y4m_test.cc ../y4menc.c ../y4menc.h
51

John Koleszar's avatar
John Koleszar committed
52
## WebM Parsing
53
ifeq ($(CONFIG_WEBM_IO), yes)
54 55 56 57
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
58 59 60 61 62
LIBAOM_TEST_SRCS-$(CONFIG_DECODERS)    += $(LIBWEBM_PARSER_SRCS)
LIBAOM_TEST_SRCS-$(CONFIG_DECODERS)    += ../tools_common.h
LIBAOM_TEST_SRCS-$(CONFIG_DECODERS)    += ../webmdec.cc
LIBAOM_TEST_SRCS-$(CONFIG_DECODERS)    += ../webmdec.h
LIBAOM_TEST_SRCS-$(CONFIG_DECODERS)    += webm_video_source.h
63
endif
64

65
LIBAOM_TEST_SRCS-$(CONFIG_DECODERS)    += decode_api_test.cc
66

Yaowu Xu's avatar
Yaowu Xu committed
67
# Currently we only support decoder perf tests for av1. Also they read from WebM
68
# files, so WebM IO is required.
Yaowu Xu's avatar
Yaowu Xu committed
69
ifeq ($(CONFIG_DECODE_PERF_TESTS)$(CONFIG_AV1_DECODER)$(CONFIG_WEBM_IO), \
70
      yesyesyes)
71
LIBAOM_TEST_SRCS-yes                   += decode_perf_test.cc
72
endif
73

Yaowu Xu's avatar
Yaowu Xu committed
74 75
# encode perf tests are av1 only
ifeq ($(CONFIG_ENCODE_PERF_TESTS)$(CONFIG_AV1_ENCODER), yesyes)
76
LIBAOM_TEST_SRCS-yes += encode_perf_test.cc
Joshua Litt's avatar
Joshua Litt committed
77 78
endif

James Zern's avatar
James Zern committed
79
## Multi-codec / unconditional black box tests.
Yaowu Xu's avatar
Yaowu Xu committed
80
ifeq ($(findstring yes,$(CONFIG_AV1_ENCODER)),yes)
81 82 83
LIBAOM_TEST_SRCS-yes += active_map_refresh_test.cc
LIBAOM_TEST_SRCS-yes += active_map_test.cc
LIBAOM_TEST_SRCS-yes += end_to_end_test.cc
84 85
endif

86 87 88 89 90 91 92 93
##
## 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),)

Yaowu Xu's avatar
Yaowu Xu committed
94 95
## AV1
ifeq ($(CONFIG_AV1),yes)
96 97

# These tests require both the encoder and decoder to be built.
Yaowu Xu's avatar
Yaowu Xu committed
98
ifeq ($(CONFIG_AV1_ENCODER)$(CONFIG_AV1_DECODER),yesyes)
99
# IDCT test currently depends on FDCT function
100 101 102 103
LIBAOM_TEST_SRCS-yes                   += idct8x8_test.cc
LIBAOM_TEST_SRCS-yes                   += partial_idct_test.cc
LIBAOM_TEST_SRCS-yes                   += superframe_test.cc
LIBAOM_TEST_SRCS-yes                   += tile_independence_test.cc
104
ifeq ($(CONFIG_ANS),yes)
105
LIBAOM_TEST_SRCS-yes                   += ans_test.cc
106
else
107
LIBAOM_TEST_SRCS-yes                   += boolcoder_test.cc
Michael Bebenita's avatar
Michael Bebenita committed
108 109 110
ifeq ($(CONFIG_ACCOUNTING),yes)
LIBAOM_TEST_SRCS-yes                   += accounting_test.cc
endif
111
endif
112 113
LIBAOM_TEST_SRCS-yes                   += divu_small_test.cc
#LIBAOM_TEST_SRCS-yes                   += encoder_parms_get_to_decoder.cc
114
endif
115

Angie Chiang's avatar
Angie Chiang committed
116
LIBAOM_TEST_SRCS-$(CONFIG_ADAPT_SCAN)  += scan_test.cc
Angie Chiang's avatar
Angie Chiang committed
117
LIBAOM_TEST_SRCS-yes                   += convolve_test.cc
118
LIBAOM_TEST_SRCS-yes                   += lpf_8_test.cc
119
LIBAOM_TEST_SRCS-$(CONFIG_CLPF)        += clpf_test.cc
120
LIBAOM_TEST_SRCS-yes                   += intrapred_test.cc
Yaowu Xu's avatar
Yaowu Xu committed
121 122 123 124 125 126 127 128 129 130 131 132 133 134
#LIBAOM_TEST_SRCS-$(CONFIG_AV1_DECODER) += av1_thread_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += dct16x16_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += dct32x32_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += fdct4x4_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += fdct8x8_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += hadamard_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += minmax_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += variance_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += error_block_test.cc
#LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += av1_quantize_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += subtract_test.cc

ifeq ($(CONFIG_AV1_ENCODER)$(CONFIG_AV1_TEMPORAL_DENOISING),yesyes)
#LIBAOM_TEST_SRCS-$(HAVE_SSE2) += denoiser_sse2_test.cc
135
endif
Yaowu Xu's avatar
Yaowu Xu committed
136
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += arf_freq_test.cc
137

138

Yaowu Xu's avatar
Yaowu Xu committed
139 140 141 142 143
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += av1_inv_txfm_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += av1_dct_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += av1_fht4x4_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += av1_fht8x8_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += av1_fht16x16_test.cc
144
ifeq ($(CONFIG_EXT_TX),yes)
145 146
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += av1_fht4x8_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += av1_fht8x4_test.cc
147 148
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += av1_fht8x16_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += av1_fht16x8_test.cc
149 150
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += av1_fht16x32_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += av1_fht32x16_test.cc
151
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += fht32x32_test.cc
152
endif
Yaowu Xu's avatar
Yaowu Xu committed
153
LIBAOM_TEST_SRCS-$(CONFIG_EXT_TILE)     += av1_ext_tile_test.cc
James Zern's avatar
James Zern committed
154

Yaowu Xu's avatar
Yaowu Xu committed
155 156 157 158
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += sum_squares_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += subtract_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += blend_a64_mask_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += blend_a64_mask_1d_test.cc
159 160

ifeq ($(CONFIG_EXT_INTER),yes)
161 162
LIBAOM_TEST_SRCS-$(HAVE_SSSE3) += masked_variance_test.cc
LIBAOM_TEST_SRCS-$(HAVE_SSSE3) += masked_sad_test.cc
Yaowu Xu's avatar
Yaowu Xu committed
163
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += av1_wedge_utils_test.cc
164
endif
165

166
ifeq ($(CONFIG_FILTER_INTRA),yes)
hui su's avatar
hui su committed
167
LIBAOM_TEST_SRCS-$(HAVE_SSE4_1) += filterintra_predictors_test.cc
168 169
endif

Yue Chen's avatar
Yue Chen committed
170
ifeq ($(CONFIG_MOTION_VAR),yes)
Yaowu Xu's avatar
Yaowu Xu committed
171 172
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += obmc_sad_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += obmc_variance_test.cc
173 174
endif

Yaowu Xu's avatar
Yaowu Xu committed
175 176 177 178 179
ifeq ($(CONFIG_AOM_HIGHBITDEPTH),yes)
LIBAOM_TEST_SRCS-$(HAVE_SSE4_1) += av1_quantize_test.cc
LIBAOM_TEST_SRCS-$(HAVE_SSE4_1) += av1_highbd_iht_test.cc
endif # CONFIG_AOM_HIGHBITDEPTH
endif # AV1
James Zern's avatar
James Zern committed
180 181

## Multi-codec / unconditional whitebox tests.
Yaowu Xu's avatar
Yaowu Xu committed
182

Yaowu Xu's avatar
Yaowu Xu committed
183
ifeq ($(CONFIG_AV1_ENCODER),yes)
184
LIBAOM_TEST_SRCS-yes += avg_test.cc
James Zern's avatar
James Zern committed
185
endif
186
ifeq ($(CONFIG_INTERNAL_STATS),yes)
Yaowu Xu's avatar
Yaowu Xu committed
187
LIBAOM_TEST_SRCS-$(CONFIG_AOM_HIGHBITDEPTH) += hbd_metrics_test.cc
188
endif
189
LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS) += sad_test.cc
Yaowu Xu's avatar
Yaowu Xu committed
190 191 192 193 194 195 196 197
LIBAOM_TEST_SRCS-$(CONFIG_AV1) += av1_txfm_test.h
LIBAOM_TEST_SRCS-$(CONFIG_AV1) += av1_txfm_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1) += av1_fwd_txfm1d_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1) += av1_inv_txfm1d_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1) += av1_fwd_txfm2d_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1) += av1_inv_txfm2d_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1) += av1_convolve_test.cc
LIBAOM_TEST_SRCS-$(CONFIG_AV1) += av1_convolve_optimz_test.cc
198

199 200
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
201

James Zern's avatar
James Zern committed
202
endif # CONFIG_SHARED
203

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