diff options
author | David Robillard <d@drobilla.net> | 2021-02-25 10:27:59 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-08 23:23:05 -0500 |
commit | c4821c8e6bf1f81c6ea31e11ebc0fc1666e9337b (patch) | |
tree | a62995534f5f606ac2f8bae22d525532b824cb5e /subprojects/exess/test/meson.build | |
parent | 6bcd18ae60482790b645a345f718e7099250f261 (diff) | |
download | serd-c4821c8e6bf1f81c6ea31e11ebc0fc1666e9337b.tar.gz serd-c4821c8e6bf1f81c6ea31e11ebc0fc1666e9337b.tar.bz2 serd-c4821c8e6bf1f81c6ea31e11ebc0fc1666e9337b.zip |
Add exess from git@gitlab.com:drobilla/exess.git 4638b1f
Diffstat (limited to 'subprojects/exess/test/meson.build')
-rw-r--r-- | subprojects/exess/test/meson.build | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/subprojects/exess/test/meson.build b/subprojects/exess/test/meson.build new file mode 100644 index 00000000..972793f0 --- /dev/null +++ b/subprojects/exess/test/meson.build @@ -0,0 +1,76 @@ +autoship = find_program('autoship', required: false) + +test_args = [] + +if get_option('strict') + if cc.get_id() == 'clang' + test_args = [ + '-Wno-float-equal', + ] + elif cc.get_id() == 'gcc' + test_args = [ + '-Wno-float-equal', + '-Wno-suggest-attribute=pure', + ] + elif cc.get_id() == 'msvc' + test_args = [ + '/wd4996', # POSIX name is deprecated + ] + endif +endif + +private_tests = [ + 'bigint', + 'int_math', +] + +foreach unit : private_tests + test(unit, + executable('test_@0@'.format(unit), + 'test_@0@.c'.format(unit), + c_args: exess_c_args + prog_args + test_args, + dependencies: exess_static_dep, + include_directories: include_directories('../src')), + suite: 'private') +endforeach + +public_tests = [ + 'base64', + 'boolean', + 'byte', + 'canonical', + 'coerce', + 'datatype', + 'date', + 'datetime', + 'decimal', + 'double', + 'duration', + 'float', + 'hex', + 'int', + 'long', + 'short', + 'strerror', + 'time', + 'timezone', + 'ubyte', + 'uint', + 'ulong', + 'ushort', + 'variant', +] + +foreach unit : public_tests + test(unit, + executable('test_@0@'.format(unit), + 'test_@0@.c'.format(unit), + c_args: exess_c_args + prog_args + test_args, + dependencies: [m_dep, exess_dep], + include_directories: include_directories('../src')), + suite: 'public') +endforeach + +if autoship.found() + test('autoship', autoship, args: ['test', exess_src_root], suite: 'data') +endif |