shithub: dav1d

Download patch

ref: ea707934502d7591e14b62860c0d2f65a6543082
parent: 8fbd87e5041a340a30c20428f4caa540cb931550
author: Marvin Scholz <[email protected]>
date: Sun Oct 14 11:10:40 EDT 2018

Add option to include extra testdata tests

--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
 *~
 tags
 .DS_Store
+/tests/dav1d-test-data
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -20,6 +20,11 @@
     value: true,
     description: 'Build dav1d tests')
 
+option('testdata_tests',
+    type: 'boolean',
+    value: false,
+    description: 'Run tests requiring the test data repository')
+
 option('fuzzing_engine',
     type: 'combo',
     choices : ['none', 'libfuzzer', 'oss-fuzz'],
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -117,3 +117,8 @@
     build_by_default: true,
     dependencies : [thread_dependency],
     )
+
+# Include dav1d test data repository with additional tests
+if get_option('testdata_tests')
+    subdir('dav1d-test-data')
+endif