diff options
author | Vignesh Venkatasubramanian <vigneshv@google.com> | 2014-04-18 11:24:02 -0700 |
---|---|---|
committer | Vignesh Venkatasubramanian <vigneshv@google.com> | 2014-04-23 19:10:43 -0700 |
commit | 68ff368d19e8de7c7250d4d6d76c1fb6889655ca (patch) | |
tree | 05438463f96e07085c5acb0d3125b9a9166b856d /test/test_vector_test.cc | |
parent | 400973c3610e9cd423a475b3a8ad5b4fd110a942 (diff) | |
download | libvpx-68ff368d19e8de7c7250d4d6d76c1fb6889655ca.tar libvpx-68ff368d19e8de7c7250d4d6d76c1fb6889655ca.tar.gz libvpx-68ff368d19e8de7c7250d4d6d76c1fb6889655ca.tar.bz2 libvpx-68ff368d19e8de7c7250d4d6d76c1fb6889655ca.zip |
Enable tests using WebM files only if webm_io is enabled
There are a few tests which read/write directly to/from WebM files. They should
be disabled when --disable-webm-io is passed.
Change-Id: Ibac4732e27c66da33082151ba6e6993eaa9a1efd
Diffstat (limited to 'test/test_vector_test.cc')
-rw-r--r-- | test/test_vector_test.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_vector_test.cc b/test/test_vector_test.cc index 9ba18daef..1f294f20b 100644 --- a/test/test_vector_test.cc +++ b/test/test_vector_test.cc @@ -12,13 +12,16 @@ #include <cstdlib> #include <string> #include "third_party/googletest/src/include/gtest/gtest.h" +#include "./vpx_config.h" #include "test/codec_factory.h" #include "test/decode_test_driver.h" #include "test/ivf_video_source.h" #include "test/md5_helper.h" #include "test/test_vectors.h" #include "test/util.h" +#if CONFIG_WEBM_IO #include "test/webm_video_source.h" +#endif #include "vpx_mem/vpx_mem.h" namespace { @@ -75,7 +78,13 @@ TEST_P(TestVectorTest, MD5Match) { if (filename.substr(filename.length() - 3, 3) == "ivf") { video = new libvpx_test::IVFVideoSource(filename); } else if (filename.substr(filename.length() - 4, 4) == "webm") { +#if CONFIG_WEBM_IO video = new libvpx_test::WebMVideoSource(filename); +#else + fprintf(stderr, "WebM IO is disabled, skipping test vector %s\n", + filename.c_str()); + return; +#endif } video->Init(); |