test.mk 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. LIBVPX_TEST_SRCS-yes += acm_random.h
  2. LIBVPX_TEST_SRCS-yes += bench.h
  3. LIBVPX_TEST_SRCS-yes += bench.cc
  4. LIBVPX_TEST_SRCS-yes += buffer.h
  5. LIBVPX_TEST_SRCS-yes += clear_system_state.h
  6. LIBVPX_TEST_SRCS-yes += codec_factory.h
  7. LIBVPX_TEST_SRCS-yes += md5_helper.h
  8. LIBVPX_TEST_SRCS-yes += register_state_check.h
  9. LIBVPX_TEST_SRCS-yes += test.mk
  10. LIBVPX_TEST_SRCS-yes += test_libvpx.cc
  11. LIBVPX_TEST_SRCS-yes += test_vectors.cc
  12. LIBVPX_TEST_SRCS-yes += test_vectors.h
  13. LIBVPX_TEST_SRCS-yes += util.h
  14. LIBVPX_TEST_SRCS-yes += video_source.h
  15. ##
  16. ## BLACK BOX TESTS
  17. ##
  18. ## Black box tests only use the public API.
  19. ##
  20. LIBVPX_TEST_SRCS-yes += ../md5_utils.h ../md5_utils.c
  21. LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += ivf_video_source.h
  22. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += ../y4minput.h ../y4minput.c
  23. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += altref_test.cc
  24. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += aq_segment_test.cc
  25. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += alt_ref_aq_segment_test.cc
  26. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += vp8_datarate_test.cc
  27. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += vp9_datarate_test.cc
  28. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += encode_api_test.cc
  29. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += error_resilience_test.cc
  30. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += i420_video_source.h
  31. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += realtime_test.cc
  32. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += resize_test.cc
  33. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += y4m_video_source.h
  34. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += yuv_video_source.h
  35. LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += config_test.cc
  36. LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += cq_test.cc
  37. LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += keyframe_test.cc
  38. LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += byte_alignment_test.cc
  39. LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += decode_svc_test.cc
  40. LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += external_frame_buffer_test.cc
  41. LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += user_priv_test.cc
  42. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += active_map_refresh_test.cc
  43. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += active_map_test.cc
  44. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += borders_test.cc
  45. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += cpu_speed_test.cc
  46. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += frame_size_tests.cc
  47. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_lossless_test.cc
  48. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_end_to_end_test.cc
  49. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += decode_corrupted.cc
  50. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_ethread_test.cc
  51. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_motion_vector_test.cc
  52. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += level_test.cc
  53. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += svc_datarate_test.cc
  54. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += svc_test.cc
  55. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += svc_test.h
  56. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += svc_end_to_end_test.cc
  57. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += timestamp_test.cc
  58. LIBVPX_TEST_SRCS-yes += decode_test_driver.cc
  59. LIBVPX_TEST_SRCS-yes += decode_test_driver.h
  60. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += encode_test_driver.cc
  61. LIBVPX_TEST_SRCS-yes += encode_test_driver.h
  62. ## IVF writing.
  63. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += ../ivfenc.c ../ivfenc.h
  64. ## Y4m parsing.
  65. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += y4m_test.cc ../y4menc.c ../y4menc.h
  66. ## WebM Parsing
  67. ifeq ($(CONFIG_WEBM_IO), yes)
  68. LIBWEBM_PARSER_SRCS += ../third_party/libwebm/mkvparser/mkvparser.cc
  69. LIBWEBM_PARSER_SRCS += ../third_party/libwebm/mkvparser/mkvreader.cc
  70. LIBWEBM_PARSER_SRCS += ../third_party/libwebm/mkvparser/mkvparser.h
  71. LIBWEBM_PARSER_SRCS += ../third_party/libwebm/mkvparser/mkvreader.h
  72. LIBWEBM_PARSER_SRCS += ../third_party/libwebm/common/webmids.h
  73. LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += $(LIBWEBM_PARSER_SRCS)
  74. LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += ../tools_common.h
  75. LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += ../webmdec.cc
  76. LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += ../webmdec.h
  77. LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += webm_video_source.h
  78. LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += vp9_skip_loopfilter_test.cc
  79. endif
  80. LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += decode_api_test.cc
  81. LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += test_vector_test.cc
  82. # Currently we only support decoder perf tests for vp9. Also they read from WebM
  83. # files, so WebM IO is required.
  84. ifeq ($(CONFIG_DECODE_PERF_TESTS)$(CONFIG_VP9_DECODER)$(CONFIG_WEBM_IO), \
  85. yesyesyes)
  86. LIBVPX_TEST_SRCS-yes += decode_perf_test.cc
  87. endif
  88. # encode perf tests are vp9 only
  89. ifeq ($(CONFIG_ENCODE_PERF_TESTS)$(CONFIG_VP9_ENCODER), yesyes)
  90. LIBVPX_TEST_SRCS-yes += encode_perf_test.cc
  91. endif
  92. ## Multi-codec blackbox tests.
  93. ifeq ($(findstring yes,$(CONFIG_VP8_DECODER)$(CONFIG_VP9_DECODER)), yes)
  94. LIBVPX_TEST_SRCS-yes += invalid_file_test.cc
  95. endif
  96. ##
  97. ## WHITE BOX TESTS
  98. ##
  99. ## Whitebox tests invoke functions not exposed via the public API. Certain
  100. ## shared library builds don't make these functions accessible.
  101. ##
  102. ifeq ($(CONFIG_SHARED),)
  103. ## VP8
  104. ifeq ($(CONFIG_VP8),yes)
  105. # These tests require both the encoder and decoder to be built.
  106. ifeq ($(CONFIG_VP8_ENCODER)$(CONFIG_VP8_DECODER),yesyes)
  107. LIBVPX_TEST_SRCS-yes += vp8_boolcoder_test.cc
  108. LIBVPX_TEST_SRCS-yes += vp8_fragments_test.cc
  109. endif
  110. LIBVPX_TEST_SRCS-$(CONFIG_POSTPROC) += add_noise_test.cc
  111. LIBVPX_TEST_SRCS-$(CONFIG_POSTPROC) += pp_filter_test.cc
  112. LIBVPX_TEST_SRCS-$(CONFIG_VP8_DECODER) += vp8_decrypt_test.cc
  113. LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += quantize_test.cc
  114. LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += set_roi.cc
  115. LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += variance_test.cc
  116. LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += vp8_fdct4x4_test.cc
  117. LIBVPX_TEST_SRCS-yes += idct_test.cc
  118. LIBVPX_TEST_SRCS-yes += predict_test.cc
  119. LIBVPX_TEST_SRCS-yes += vpx_scale_test.cc
  120. LIBVPX_TEST_SRCS-yes += vpx_scale_test.h
  121. ifeq ($(CONFIG_VP8_ENCODER)$(CONFIG_TEMPORAL_DENOISING),yesyes)
  122. LIBVPX_TEST_SRCS-$(HAVE_SSE2) += vp8_denoiser_sse2_test.cc
  123. endif
  124. endif # VP8
  125. ## VP9
  126. ifeq ($(CONFIG_VP9),yes)
  127. # These tests require both the encoder and decoder to be built.
  128. ifeq ($(CONFIG_VP9_ENCODER)$(CONFIG_VP9_DECODER),yesyes)
  129. # IDCT test currently depends on FDCT function
  130. LIBVPX_TEST_SRCS-yes += idct8x8_test.cc
  131. LIBVPX_TEST_SRCS-yes += partial_idct_test.cc
  132. LIBVPX_TEST_SRCS-yes += superframe_test.cc
  133. LIBVPX_TEST_SRCS-yes += tile_independence_test.cc
  134. LIBVPX_TEST_SRCS-yes += vp9_boolcoder_test.cc
  135. LIBVPX_TEST_SRCS-yes += vp9_encoder_parms_get_to_decoder.cc
  136. endif
  137. LIBVPX_TEST_SRCS-yes += convolve_test.cc
  138. LIBVPX_TEST_SRCS-yes += lpf_test.cc
  139. LIBVPX_TEST_SRCS-yes += vp9_intrapred_test.cc
  140. LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += vp9_decrypt_test.cc
  141. LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += vp9_thread_test.cc
  142. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += avg_test.cc
  143. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += comp_avg_pred_test.cc
  144. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += dct16x16_test.cc
  145. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += dct32x32_test.cc
  146. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += dct_partial_test.cc
  147. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += dct_test.cc
  148. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += fdct8x8_test.cc
  149. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += hadamard_test.cc
  150. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += minmax_test.cc
  151. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_scale_test.cc
  152. ifneq ($(CONFIG_REALTIME_ONLY),yes)
  153. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += yuv_temporal_filter_test.cc
  154. endif
  155. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += variance_test.cc
  156. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_block_error_test.cc
  157. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_quantize_test.cc
  158. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_subtract_test.cc
  159. ifeq ($(CONFIG_VP9_ENCODER),yes)
  160. LIBVPX_TEST_SRCS-$(CONFIG_INTERNAL_STATS) += blockiness_test.cc
  161. LIBVPX_TEST_SRCS-$(CONFIG_INTERNAL_STATS) += consistency_test.cc
  162. endif
  163. ifeq ($(CONFIG_VP9_ENCODER)$(CONFIG_VP9_TEMPORAL_DENOISING),yesyes)
  164. LIBVPX_TEST_SRCS-yes += vp9_denoiser_test.cc
  165. endif
  166. LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_arf_freq_test.cc
  167. endif # VP9
  168. ## Multi-codec / unconditional whitebox tests.
  169. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += sad_test.cc
  170. LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += sum_squares_test.cc
  171. TEST_INTRA_PRED_SPEED_SRCS-yes := test_intra_pred_speed.cc
  172. TEST_INTRA_PRED_SPEED_SRCS-yes += ../md5_utils.h ../md5_utils.c
  173. endif # CONFIG_SHARED
  174. include $(SRC_PATH_BARE)/test/test-data.mk