test.mk 6.03 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
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
LIBVPX_TEST_SRCS-yes                   += ../md5_utils.h ../md5_utils.c
19
20
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS)    += ivf_video_source.h
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += ../y4minput.h ../y4minput.c
21
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += aq_segment_test.cc
22
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += datarate_test.cc
23
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += error_resilience_test.cc
24
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += i420_video_source.h
25
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += y4m_video_source.h
26
27
28
29

LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += altref_test.cc
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += config_test.cc
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += cq_test.cc
30
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += keyframe_test.cc
31
32

LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += external_frame_buffer_test.cc
33
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += invalid_file_test.cc
34
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += user_priv_test.cc
Alex Converse's avatar
Alex Converse committed
35
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += active_map_test.cc
36
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += borders_test.cc
Jim Bankoski's avatar
Jim Bankoski committed
37
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += cpu_speed_test.cc
38
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += frame_size_tests.cc
39
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += resize_test.cc
Yaowu Xu's avatar
Yaowu Xu committed
40
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_lossless_test.cc
41

42
43
LIBVPX_TEST_SRCS-yes                   += decode_test_driver.cc
LIBVPX_TEST_SRCS-yes                   += decode_test_driver.h
44
45
LIBVPX_TEST_SRCS-yes                   += encode_test_driver.cc
LIBVPX_TEST_SRCS-yes                   += encode_test_driver.h
46

47
48
49
## Y4m parsing.
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += y4m_test.cc ../y4menc.c ../y4menc.h

John Koleszar's avatar
John Koleszar committed
50
## WebM Parsing
51
ifeq ($(CONFIG_WEBM_IO), yes)
52
53
54
55
56
LIBWEBM_PARSER_SRCS                    += ../third_party/libwebm/mkvparser.cpp
LIBWEBM_PARSER_SRCS                    += ../third_party/libwebm/mkvreader.cpp
LIBWEBM_PARSER_SRCS                    += ../third_party/libwebm/mkvparser.hpp
LIBWEBM_PARSER_SRCS                    += ../third_party/libwebm/mkvreader.hpp
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS)    += $(LIBWEBM_PARSER_SRCS)
57
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS)    += ../tools_common.h
58
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS)    += ../webmdec.cc
59
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS)    += ../webmdec.h
John Koleszar's avatar
John Koleszar committed
60
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS)    += webm_video_source.h
61
endif
62

James Zern's avatar
James Zern committed
63
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS)    += decode_api_test.cc
John Koleszar's avatar
John Koleszar committed
64
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS)    += test_vector_test.cc
65

66
67
68
69
# 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)
70
71
LIBVPX_TEST_SRCS-yes                   += decode_perf_test.cc
endif
72

Joshua Litt's avatar
Joshua Litt committed
73
74
75
76
77
# encode perf tests are vp9 only
ifeq ($(CONFIG_ENCODE_PERF_TESTS)$(CONFIG_VP9_ENCODER), yesyes)
LIBVPX_TEST_SRCS-yes += encode_perf_test.cc
endif

78
79
80
81
82
83
84
85
##
## 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),)

86
87
88
## VP8
ifneq ($(CONFIG_VP8_ENCODER)$(CONFIG_VP8_DECODER),)

89
90
# These tests require both the encoder and decoder to be built.
ifeq ($(CONFIG_VP8_ENCODER)$(CONFIG_VP8_DECODER),yesyes)
91
LIBVPX_TEST_SRCS-yes                   += vp8_boolcoder_test.cc
92
93
94
endif

LIBVPX_TEST_SRCS-$(CONFIG_POSTPROC)    += pp_filter_test.cc
95
LIBVPX_TEST_SRCS-$(CONFIG_VP8_DECODER) += vp8_decrypt_test.cc
96
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += set_roi.cc
97
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += subtract_test.cc
James Zern's avatar
James Zern committed
98
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += variance_test.cc
99
100
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += vp8_fdct4x4_test.cc

101
102
103
LIBVPX_TEST_SRCS-yes                   += idct_test.cc
LIBVPX_TEST_SRCS-yes                   += intrapred_test.cc
LIBVPX_TEST_SRCS-yes                   += sixtap_predict_test.cc
Johann's avatar
Johann committed
104
LIBVPX_TEST_SRCS-yes                   += vpx_scale_test.cc
105

JackyChen's avatar
JackyChen committed
106
107
108
109
ifeq ($(CONFIG_VP8_ENCODER)$(CONFIG_TEMPORAL_DENOISING),yesyes)
LIBVPX_TEST_SRCS-$(HAVE_SSE2) += vp8_denoiser_sse2_test.cc
endif

110
111
112
113
114
115
116
endif # VP8

## VP9
ifneq ($(CONFIG_VP9_ENCODER)$(CONFIG_VP9_DECODER),)

# These tests require both the encoder and decoder to be built.
ifeq ($(CONFIG_VP9_ENCODER)$(CONFIG_VP9_DECODER),yesyes)
117
118
# IDCT test currently depends on FDCT function
LIBVPX_TEST_SRCS-yes                   += idct8x8_test.cc
119
LIBVPX_TEST_SRCS-yes                   += partial_idct_test.cc
John Koleszar's avatar
John Koleszar committed
120
LIBVPX_TEST_SRCS-yes                   += superframe_test.cc
121
LIBVPX_TEST_SRCS-yes                   += tile_independence_test.cc
122
123
LIBVPX_TEST_SRCS-yes                   += vp9_boolcoder_test.cc

124
125
endif

John Koleszar's avatar
John Koleszar committed
126
LIBVPX_TEST_SRCS-$(CONFIG_VP9)         += convolve_test.cc
James Zern's avatar
James Zern committed
127
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += vp9_thread_test.cc
128
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += vp9_decrypt_test.cc
129
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += dct16x16_test.cc
Yaowu Xu's avatar
Yaowu Xu committed
130
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += dct32x32_test.cc
131
132
133
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
James Zern's avatar
James Zern committed
134
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_subtract_test.cc
135
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += lpf_8_test.cc
136
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_avg_test.cc
137
LIBVPX_TEST_SRCS-$(CONFIG_VP9)         += vp9_intrapred_test.cc
138

James Zern's avatar
James Zern committed
139
140
141
142
ifeq ($(CONFIG_VP9_ENCODER),yes)
LIBVPX_TEST_SRCS-$(CONFIG_SPATIAL_SVC) += svc_test.cc
endif

JackyChen's avatar
JackyChen committed
143
144
ifeq ($(CONFIG_VP9_ENCODER)$(CONFIG_VP9_TEMPORAL_DENOISING),yesyes)
LIBVPX_TEST_SRCS-$(HAVE_SSE2) += vp9_denoiser_sse2_test.cc
145
146
endif

147
148
endif # VP9

James Zern's avatar
James Zern committed
149
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS)    += sad_test.cc
150

James Zern's avatar
James Zern committed
151
endif # CONFIG_SHARED
152

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