Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 1 | LIBAOM_TEST_SRCS-yes += acm_random.h |
| 2 | LIBAOM_TEST_SRCS-yes += clear_system_state.h |
| 3 | LIBAOM_TEST_SRCS-yes += codec_factory.h |
| 4 | LIBAOM_TEST_SRCS-yes += md5_helper.h |
| 5 | LIBAOM_TEST_SRCS-yes += register_state_check.h |
| 6 | LIBAOM_TEST_SRCS-yes += test.mk |
| 7 | LIBAOM_TEST_SRCS-yes += test_libaom.cc |
| 8 | LIBAOM_TEST_SRCS-yes += util.h |
| 9 | LIBAOM_TEST_SRCS-yes += video_source.h |
Daniel Kang | 58156f1 | 2012-06-26 18:11:33 -0700 | [diff] [blame] | 10 | |
John Koleszar | acd147c | 2012-06-29 12:15:00 -0700 | [diff] [blame] | 11 | ## |
| 12 | ## BLACK BOX TESTS |
| 13 | ## |
| 14 | ## Black box tests only use the public API. |
| 15 | ## |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 16 | LIBAOM_TEST_SRCS-yes += ../md5_utils.h ../md5_utils.c |
| 17 | LIBAOM_TEST_SRCS-$(CONFIG_DECODERS) += ivf_video_source.h |
| 18 | LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS) += ../y4minput.h ../y4minput.c |
| 19 | LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS) += aq_segment_test.cc |
| 20 | LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS) += datarate_test.cc |
| 21 | LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS) += encode_api_test.cc |
| 22 | LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS) += error_resilience_test.cc |
| 23 | LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS) += i420_video_source.h |
Jim Bankoski | c96ecc2 | 2016-01-20 10:15:20 -0800 | [diff] [blame] | 24 | ##TODO(jimbankoski): Figure out why resize is failing. |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 25 | ##LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS) += resize_test.cc |
| 26 | LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS) += y4m_video_source.h |
| 27 | LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS) += yuv_video_source.h |
James Zern | bfdd4aa | 2014-02-27 14:11:46 -0800 | [diff] [blame] | 28 | |
Yaowu Xu | 01dee0b | 2016-03-25 12:43:01 -0700 | [diff] [blame] | 29 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += active_map_refresh_test.cc |
| 30 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += active_map_test.cc |
| 31 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += borders_test.cc |
| 32 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += cpu_speed_test.cc |
| 33 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += frame_size_tests.cc |
| 34 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += lossless_test.cc |
| 35 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += end_to_end_test.cc |
| 36 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += ethread_test.cc |
Yunqing Wang | 15dffcf | 2012-10-04 12:59:36 -0700 | [diff] [blame] | 37 | |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 38 | LIBAOM_TEST_SRCS-yes += decode_test_driver.cc |
| 39 | LIBAOM_TEST_SRCS-yes += decode_test_driver.h |
| 40 | LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS) += encode_test_driver.cc |
| 41 | LIBAOM_TEST_SRCS-yes += encode_test_driver.h |
Deb Mukherjee | 01cafaa | 2013-01-15 06:43:35 -0800 | [diff] [blame] | 42 | |
Jim Bankoski | c2638bd | 2014-12-09 12:44:45 -0800 | [diff] [blame] | 43 | ## IVF writing. |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 44 | LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS) += ../ivfenc.c ../ivfenc.h |
Jim Bankoski | c2638bd | 2014-12-09 12:44:45 -0800 | [diff] [blame] | 45 | |
Deb Mukherjee | 5820c5d | 2014-06-12 16:53:13 -0700 | [diff] [blame] | 46 | ## Y4m parsing. |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 47 | LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS) += y4m_test.cc ../y4menc.c ../y4menc.h |
Deb Mukherjee | 5820c5d | 2014-06-12 16:53:13 -0700 | [diff] [blame] | 48 | |
John Koleszar | 119c981 | 2013-06-13 12:42:05 -0700 | [diff] [blame] | 49 | ## WebM Parsing |
Vignesh Venkatasubramanian | 68ff368 | 2014-04-18 11:24:02 -0700 | [diff] [blame] | 50 | ifeq ($(CONFIG_WEBM_IO), yes) |
Tom Finegan | 54a3af6 | 2016-03-24 13:12:51 -0700 | [diff] [blame] | 51 | LIBWEBM_PARSER_SRCS += ../third_party/libwebm/mkvparser/mkvparser.cc |
| 52 | LIBWEBM_PARSER_SRCS += ../third_party/libwebm/mkvparser/mkvreader.cc |
| 53 | LIBWEBM_PARSER_SRCS += ../third_party/libwebm/mkvparser/mkvparser.h |
| 54 | LIBWEBM_PARSER_SRCS += ../third_party/libwebm/mkvparser/mkvreader.h |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 55 | LIBAOM_TEST_SRCS-$(CONFIG_DECODERS) += $(LIBWEBM_PARSER_SRCS) |
| 56 | LIBAOM_TEST_SRCS-$(CONFIG_DECODERS) += ../tools_common.h |
| 57 | LIBAOM_TEST_SRCS-$(CONFIG_DECODERS) += ../webmdec.cc |
| 58 | LIBAOM_TEST_SRCS-$(CONFIG_DECODERS) += ../webmdec.h |
| 59 | LIBAOM_TEST_SRCS-$(CONFIG_DECODERS) += webm_video_source.h |
Vignesh Venkatasubramanian | 68ff368 | 2014-04-18 11:24:02 -0700 | [diff] [blame] | 60 | endif |
Deb Mukherjee | 01cafaa | 2013-01-15 06:43:35 -0800 | [diff] [blame] | 61 | |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 62 | LIBAOM_TEST_SRCS-$(CONFIG_DECODERS) += decode_api_test.cc |
James Zern | bfdd4aa | 2014-02-27 14:11:46 -0800 | [diff] [blame] | 63 | |
Adrian Grange | fa8ca9f | 2016-03-28 12:56:02 -0700 | [diff] [blame] | 64 | # Currently we only support decoder perf tests for av1. Also they read from WebM |
Vignesh Venkatasubramanian | 68ff368 | 2014-04-18 11:24:02 -0700 | [diff] [blame] | 65 | # files, so WebM IO is required. |
Yaowu Xu | 01dee0b | 2016-03-25 12:43:01 -0700 | [diff] [blame] | 66 | ifeq ($(CONFIG_DECODE_PERF_TESTS)$(CONFIG_AV1_DECODER)$(CONFIG_WEBM_IO), \ |
Vignesh Venkatasubramanian | 68ff368 | 2014-04-18 11:24:02 -0700 | [diff] [blame] | 67 | yesyesyes) |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 68 | LIBAOM_TEST_SRCS-yes += decode_perf_test.cc |
Joshua Litt | a782d63 | 2013-11-15 12:29:26 -0800 | [diff] [blame] | 69 | endif |
Dmitry Kovalev | 26cec5c | 2013-03-15 18:21:55 -0700 | [diff] [blame] | 70 | |
Adrian Grange | fa8ca9f | 2016-03-28 12:56:02 -0700 | [diff] [blame] | 71 | # encode perf tests are av1 only |
Yaowu Xu | 01dee0b | 2016-03-25 12:43:01 -0700 | [diff] [blame] | 72 | ifeq ($(CONFIG_ENCODE_PERF_TESTS)$(CONFIG_AV1_ENCODER), yesyes) |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 73 | LIBAOM_TEST_SRCS-yes += encode_perf_test.cc |
Joshua Litt | 83b843f | 2014-07-21 10:57:16 -0700 | [diff] [blame] | 74 | endif |
| 75 | |
John Koleszar | acd147c | 2012-06-29 12:15:00 -0700 | [diff] [blame] | 76 | ## |
| 77 | ## WHITE BOX TESTS |
| 78 | ## |
| 79 | ## Whitebox tests invoke functions not exposed via the public API. Certain |
| 80 | ## shared library builds don't make these functions accessible. |
| 81 | ## |
| 82 | ifeq ($(CONFIG_SHARED),) |
| 83 | |
Yaowu Xu | 01dee0b | 2016-03-25 12:43:01 -0700 | [diff] [blame] | 84 | ## AV1 |
| 85 | ifeq ($(CONFIG_AV1),yes) |
John Koleszar | 2c08c28 | 2012-11-07 10:40:37 -0800 | [diff] [blame] | 86 | |
John Koleszar | acd147c | 2012-06-29 12:15:00 -0700 | [diff] [blame] | 87 | # These tests require both the encoder and decoder to be built. |
Yaowu Xu | 01dee0b | 2016-03-25 12:43:01 -0700 | [diff] [blame] | 88 | ifeq ($(CONFIG_AV1_ENCODER)$(CONFIG_AV1_DECODER),yesyes) |
John Koleszar | 5ebe94f | 2012-12-23 07:20:10 -0800 | [diff] [blame] | 89 | # IDCT test currently depends on FDCT function |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 90 | LIBAOM_TEST_SRCS-yes += idct8x8_test.cc |
| 91 | LIBAOM_TEST_SRCS-yes += partial_idct_test.cc |
| 92 | LIBAOM_TEST_SRCS-yes += superframe_test.cc |
| 93 | LIBAOM_TEST_SRCS-yes += tile_independence_test.cc |
Alex Converse | 6b7ef9e | 2016-06-08 11:57:19 -0700 | [diff] [blame] | 94 | ifeq ($(CONFIG_ANS),yes) |
| 95 | LIBAOM_TEST_SRCS-yes += ans_test.cc |
| 96 | else |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 97 | LIBAOM_TEST_SRCS-yes += boolcoder_test.cc |
Michael Bebenita | e6b1294 | 2016-08-25 14:40:54 -0700 | [diff] [blame] | 98 | ifeq ($(CONFIG_ACCOUNTING),yes) |
| 99 | LIBAOM_TEST_SRCS-yes += accounting_test.cc |
| 100 | endif |
Alex Converse | 6b7ef9e | 2016-06-08 11:57:19 -0700 | [diff] [blame] | 101 | endif |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 102 | LIBAOM_TEST_SRCS-yes += divu_small_test.cc |
| 103 | LIBAOM_TEST_SRCS-yes += encoder_parms_get_to_decoder.cc |
Jim Bankoski | a0d9a9d | 2014-12-11 17:34:32 -0800 | [diff] [blame] | 104 | endif |
John Koleszar | 2c08c28 | 2012-11-07 10:40:37 -0800 | [diff] [blame] | 105 | |
Angie Chiang | 211f2ac | 2016-09-02 16:05:03 -0700 | [diff] [blame] | 106 | LIBAOM_TEST_SRCS-$(CONFIG_ADAPT_SCAN) += scan_test.cc |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 107 | LIBAOM_TEST_SRCS-yes += convolve_test.cc |
Angie Chiang | 8cf6f15 | 2016-07-21 14:43:56 -0700 | [diff] [blame] | 108 | LIBAOM_TEST_SRCS-yes += convolve_test.cc |
Angie Chiang | f16387b | 2016-06-07 18:15:08 -0700 | [diff] [blame] | 109 | LIBAOM_TEST_SRCS-yes += av1_convolve_test.cc |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 110 | LIBAOM_TEST_SRCS-yes += lpf_8_test.cc |
Steinar Midtskogen | b87cc92 | 2016-08-05 12:12:38 +0200 | [diff] [blame] | 111 | LIBAOM_TEST_SRCS-$(CONFIG_CLPF) += clpf_test.cc |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 112 | LIBAOM_TEST_SRCS-yes += intrapred_test.cc |
Yaowu Xu | 01dee0b | 2016-03-25 12:43:01 -0700 | [diff] [blame] | 113 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += dct16x16_test.cc |
| 114 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += dct32x32_test.cc |
Angie Chiang | 8cf6f15 | 2016-07-21 14:43:56 -0700 | [diff] [blame] | 115 | LIBAOM_TEST_SRCS-yes += convolve_test.cc |
| 116 | LIBAOM_TEST_SRCS-yes += av1_convolve_optimz_test.cc |
Yaowu Xu | 01dee0b | 2016-03-25 12:43:01 -0700 | [diff] [blame] | 117 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += fdct4x4_test.cc |
| 118 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += fdct8x8_test.cc |
| 119 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += variance_test.cc |
| 120 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += quantize_test.cc |
| 121 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += subtract_test.cc |
Yue Chen | 2478bed | 2016-07-25 15:40:39 -0700 | [diff] [blame] | 122 | LIBAOM_TEST_SRCS-yes += function_equivalence_test.h |
| 123 | LIBAOM_TEST_SRCS-yes += blend_a64_mask_test.cc |
| 124 | LIBAOM_TEST_SRCS-yes += blend_a64_mask_1d_test.cc |
Yue Chen | 72d3ba8 | 2016-07-27 11:35:34 -0700 | [diff] [blame] | 125 | ifeq ($(CONFIG_MOTION_VAR),yes) |
| 126 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += obmc_sad_test.cc |
| 127 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += obmc_variance_test.cc |
| 128 | endif |
Deb Mukherjee | 01cafaa | 2013-01-15 06:43:35 -0800 | [diff] [blame] | 129 | |
Yaowu Xu | 01dee0b | 2016-03-25 12:43:01 -0700 | [diff] [blame] | 130 | ifeq ($(CONFIG_AV1_ENCODER)$(CONFIG_AV1_TEMPORAL_DENOISING),yesyes) |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 131 | LIBAOM_TEST_SRCS-$(HAVE_SSE2) += denoiser_sse2_test.cc |
JackyChen | 80465da | 2014-09-18 16:45:53 -0700 | [diff] [blame] | 132 | endif |
Yaowu Xu | 01dee0b | 2016-03-25 12:43:01 -0700 | [diff] [blame] | 133 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += arf_freq_test.cc |
James Zern | 2c9c2e0 | 2015-11-24 18:50:35 -0800 | [diff] [blame] | 134 | |
Yaowu Xu | fe5f8a8 | 2016-03-25 09:16:38 -0700 | [diff] [blame] | 135 | LIBAOM_TEST_SRCS-yes += av1_inv_txfm_test.cc |
Yaowu Xu | 01dee0b | 2016-03-25 12:43:01 -0700 | [diff] [blame] | 136 | LIBAOM_TEST_SRCS-$(CONFIG_AV1_ENCODER) += av1_dct_test.cc |
James Zern | 2c9c2e0 | 2015-11-24 18:50:35 -0800 | [diff] [blame] | 137 | |
Yaowu Xu | 01dee0b | 2016-03-25 12:43:01 -0700 | [diff] [blame] | 138 | endif # AV1 |
James Zern | 2c9c2e0 | 2015-11-24 18:50:35 -0800 | [diff] [blame] | 139 | |
| 140 | ## Multi-codec / unconditional whitebox tests. |
James Zern | d36659c | 2015-12-11 12:40:53 -0800 | [diff] [blame] | 141 | |
Yaowu Xu | 01dee0b | 2016-03-25 12:43:01 -0700 | [diff] [blame] | 142 | ifeq ($(findstring yes,$(CONFIG_AV1_ENCODER)$(CONFIG_AV1_ENCODER)),yes) |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 143 | LIBAOM_TEST_SRCS-yes += avg_test.cc |
James Zern | d36659c | 2015-12-11 12:40:53 -0800 | [diff] [blame] | 144 | endif |
Yaowu Xu | 28049b7 | 2016-04-29 16:11:27 -0700 | [diff] [blame] | 145 | ifeq ($(CONFIG_INTERNAL_STATS),yes) |
| 146 | LIBAOM_TEST_SRCS-$(CONFIG_AOM_HIGHBITDEPTH) += hbd_metrics_test.cc |
| 147 | endif |
Yaowu Xu | 3d26d91 | 2016-03-22 12:33:42 -0700 | [diff] [blame] | 148 | LIBAOM_TEST_SRCS-$(CONFIG_ENCODERS) += sad_test.cc |
John Koleszar | acd147c | 2012-06-29 12:15:00 -0700 | [diff] [blame] | 149 | |
James Zern | 1138b98 | 2015-11-24 18:42:20 -0800 | [diff] [blame] | 150 | TEST_INTRA_PRED_SPEED_SRCS-yes := test_intra_pred_speed.cc |
| 151 | TEST_INTRA_PRED_SPEED_SRCS-yes += ../md5_utils.h ../md5_utils.c |
James Zern | 0d2f348 | 2015-05-11 19:36:59 -0700 | [diff] [blame] | 152 | |
James Zern | 2f6fc64 | 2014-02-27 14:03:55 -0800 | [diff] [blame] | 153 | endif # CONFIG_SHARED |
John Koleszar | acd147c | 2012-06-29 12:15:00 -0700 | [diff] [blame] | 154 | |
James Zern | a51d45a | 2014-10-03 16:18:58 -0700 | [diff] [blame] | 155 | include $(SRC_PATH_BARE)/test/test-data.mk |