description : 'package origin URL to use in plugins')
option('doc', type : 'feature', value : 'auto', yield: true,
description: 'Enable documentation.')
-option('validate', type : 'feature', value : 'auto', yield: true,
- description: 'Enable validate tests.')
if not get_option('tests').disabled() and gst_check_dep.found()
subdir('check')
subdir('icles')
+ subdir('validate')
endif
if not get_option('examples').disabled()
subdir('examples')
endif
-
-if not get_option('validate').disabled()
- subdir('validate')
-endif
if gst_dep.type_name() == 'internal'
- gst_tester = gst_proj.get_variable('gst_tester')
+ gst_tester = gst_proj.get_variable('gst_tester', false)
+ if gst_tester == false
+ if get_option('tests').enabled()
+ error('Tests are enabled for gst-plugins-base but were not enabled for the gstreamer subproject')
+ endif
+ subdir_done()
+ endif
else
- gst_tester = find_program('gst-tester-@0@'.format(api_version), required: get_option('validate'))
+ gst_tester = find_program('gst-tester-@0@'.format(api_version), required: get_option('tests'))
if not gst_tester.found()
subdir_done()
endif
test_file = join_paths(meson.current_source_dir(), t + '.validatetest')
test(test_name, gst_tester, args: [test_file, '--use-fakesinks'],
env: test_env, timeout : 3 * 60, protocol: 'tap')
-endforeach
\ No newline at end of file
+endforeach