mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
tests: move examples and tests to subfolders
This makes way for adding unit (check) tests.
This commit is contained in:
parent
8af5ef8a0b
commit
97aabe8784
42 changed files with 85 additions and 85 deletions
|
@ -164,9 +164,7 @@ libsinc = include_directories('gst-libs')
|
||||||
|
|
||||||
subdir('gst-libs')
|
subdir('gst-libs')
|
||||||
subdir('gst')
|
subdir('gst')
|
||||||
if not get_option('examples').disabled()
|
subdir('tests')
|
||||||
subdir('tests')
|
|
||||||
endif
|
|
||||||
subdir('docs')
|
subdir('docs')
|
||||||
|
|
||||||
python3 = import('python').find_installation()
|
python3 = import('python').find_installation()
|
||||||
|
|
81
tests/internal/meson.build
Normal file
81
tests/internal/meson.build
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
libdecutils_sources = [
|
||||||
|
'decoder.c',
|
||||||
|
'test-h264.c',
|
||||||
|
'test-jpeg.c',
|
||||||
|
'test-mpeg2.c',
|
||||||
|
'test-mpeg4.c',
|
||||||
|
'test-vc1.c',
|
||||||
|
]
|
||||||
|
|
||||||
|
libdecutils_headers = [
|
||||||
|
'decoder.h',
|
||||||
|
'test-h264.h',
|
||||||
|
'test-jpeg.h',
|
||||||
|
'test-mpeg2.h',
|
||||||
|
'test-mpeg4.h',
|
||||||
|
'test-vc1.h',
|
||||||
|
]
|
||||||
|
|
||||||
|
libutils_sources = [
|
||||||
|
'codec.c',
|
||||||
|
'image.c',
|
||||||
|
'output.c',
|
||||||
|
'test-subpicture-data.c',
|
||||||
|
'y4mreader.c',
|
||||||
|
]
|
||||||
|
|
||||||
|
libutils_headers = [
|
||||||
|
'codec.h',
|
||||||
|
'image.h',
|
||||||
|
'output.h',
|
||||||
|
'test-subpicture-data.h',
|
||||||
|
'y4mreader.h',
|
||||||
|
]
|
||||||
|
|
||||||
|
test_examples = [
|
||||||
|
'simple-decoder',
|
||||||
|
'test-decode',
|
||||||
|
'test-display',
|
||||||
|
'test-filter',
|
||||||
|
'test-surfaces',
|
||||||
|
'test-windows',
|
||||||
|
'test-subpicture',
|
||||||
|
]
|
||||||
|
|
||||||
|
if USE_ENCODERS
|
||||||
|
test_examples += [ 'simple-encoder' ]
|
||||||
|
endif
|
||||||
|
|
||||||
|
if USE_H264_FEI_ENCODER
|
||||||
|
test_examples += [
|
||||||
|
'test-fei-enc-out',
|
||||||
|
'test-fei-enc-in',
|
||||||
|
]
|
||||||
|
endif
|
||||||
|
|
||||||
|
if USE_GLX
|
||||||
|
test_examples += [ 'test-textures' ]
|
||||||
|
endif
|
||||||
|
|
||||||
|
libutils = static_library('libutils',
|
||||||
|
libutils_sources + libutils_headers,
|
||||||
|
c_args : gstreamer_vaapi_args,
|
||||||
|
include_directories: [configinc, libsinc],
|
||||||
|
dependencies : gstlibvaapi_deps,
|
||||||
|
install: false)
|
||||||
|
|
||||||
|
libdecutils = static_library('libdecutils',
|
||||||
|
libdecutils_sources + libdecutils_headers,
|
||||||
|
c_args : gstreamer_vaapi_args,
|
||||||
|
include_directories: [configinc, libsinc],
|
||||||
|
dependencies : gstlibvaapi_deps,
|
||||||
|
install: false)
|
||||||
|
|
||||||
|
foreach example : test_examples
|
||||||
|
executable(example, '@0@.c'.format(example),
|
||||||
|
c_args : gstreamer_vaapi_args,
|
||||||
|
include_directories: [configinc, libsinc],
|
||||||
|
dependencies : [gst_dep, libva_dep, gstlibvaapi_dep],
|
||||||
|
link_with: [libutils, libdecutils],
|
||||||
|
install: false)
|
||||||
|
endforeach
|
|
@ -1,83 +1,4 @@
|
||||||
libdecutils_sources = [
|
if not get_option('examples').disabled()
|
||||||
'decoder.c',
|
subdir('examples')
|
||||||
'test-h264.c',
|
subdir('internal')
|
||||||
'test-jpeg.c',
|
|
||||||
'test-mpeg2.c',
|
|
||||||
'test-mpeg4.c',
|
|
||||||
'test-vc1.c',
|
|
||||||
]
|
|
||||||
|
|
||||||
libdecutils_headers = [
|
|
||||||
'decoder.h',
|
|
||||||
'test-h264.h',
|
|
||||||
'test-jpeg.h',
|
|
||||||
'test-mpeg2.h',
|
|
||||||
'test-mpeg4.h',
|
|
||||||
'test-vc1.h',
|
|
||||||
]
|
|
||||||
|
|
||||||
libutils_sources = [
|
|
||||||
'codec.c',
|
|
||||||
'image.c',
|
|
||||||
'output.c',
|
|
||||||
'test-subpicture-data.c',
|
|
||||||
'y4mreader.c',
|
|
||||||
]
|
|
||||||
|
|
||||||
libutils_headers = [
|
|
||||||
'codec.h',
|
|
||||||
'image.h',
|
|
||||||
'output.h',
|
|
||||||
'test-subpicture-data.h',
|
|
||||||
'y4mreader.h',
|
|
||||||
]
|
|
||||||
|
|
||||||
test_examples = [
|
|
||||||
'simple-decoder',
|
|
||||||
'test-decode',
|
|
||||||
'test-display',
|
|
||||||
'test-filter',
|
|
||||||
'test-surfaces',
|
|
||||||
'test-windows',
|
|
||||||
'test-subpicture',
|
|
||||||
]
|
|
||||||
|
|
||||||
if USE_ENCODERS
|
|
||||||
test_examples += [ 'simple-encoder' ]
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if USE_H264_FEI_ENCODER
|
|
||||||
test_examples += [
|
|
||||||
'test-fei-enc-out',
|
|
||||||
'test-fei-enc-in',
|
|
||||||
]
|
|
||||||
endif
|
|
||||||
|
|
||||||
if USE_GLX
|
|
||||||
test_examples += [ 'test-textures' ]
|
|
||||||
endif
|
|
||||||
|
|
||||||
libutils = static_library('libutils',
|
|
||||||
libutils_sources + libutils_headers,
|
|
||||||
c_args : gstreamer_vaapi_args,
|
|
||||||
include_directories: [configinc, libsinc],
|
|
||||||
dependencies : gstlibvaapi_deps,
|
|
||||||
install: false)
|
|
||||||
|
|
||||||
libdecutils = static_library('libdecutils',
|
|
||||||
libdecutils_sources + libdecutils_headers,
|
|
||||||
c_args : gstreamer_vaapi_args,
|
|
||||||
include_directories: [configinc, libsinc],
|
|
||||||
dependencies : gstlibvaapi_deps,
|
|
||||||
install: false)
|
|
||||||
|
|
||||||
foreach example : test_examples
|
|
||||||
executable(example, '@0@.c'.format(example),
|
|
||||||
c_args : gstreamer_vaapi_args,
|
|
||||||
include_directories: [configinc, libsinc],
|
|
||||||
dependencies : [gst_dep, libva_dep, gstlibvaapi_dep],
|
|
||||||
link_with: [libutils, libdecutils],
|
|
||||||
install: false)
|
|
||||||
endforeach
|
|
||||||
|
|
||||||
subdir('elements')
|
|
||||||
|
|
Loading…
Reference in a new issue