diff options
author | David Robillard <d@drobilla.net> | 2023-03-28 12:12:34 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-04-05 09:45:15 -0400 |
commit | 4bfbbd357d4e12522f5e8ba0a0ebc3bfc037b706 (patch) | |
tree | 89ece7e437e820a01560522f738f8ee9a8070afb /test/meson.build | |
parent | d25435678a9ced05bd3a8c78ae3534c230fdfc5d (diff) | |
download | serd-4bfbbd357d4e12522f5e8ba0a0ebc3bfc037b706.tar.gz serd-4bfbbd357d4e12522f5e8ba0a0ebc3bfc037b706.tar.bz2 serd-4bfbbd357d4e12522f5e8ba0a0ebc3bfc037b706.zip |
Clean up Python scripts and add a formatting test
Diffstat (limited to 'test/meson.build')
-rw-r--r-- | test/meson.build | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/meson.build b/test/meson.build index 6a4bbc55..1d126f61 100644 --- a/test/meson.build +++ b/test/meson.build @@ -28,6 +28,32 @@ if get_option('strict') endif endif +########### +# Scripts # +########### + +python_scripts = files( + '../scripts/serd_bench.py', + 'run_suite.py', + 'run_test_suite.py', + 'serd_test_util/__init__.py', + 'test_quiet.py', + 'test_stdin.py', + 'test_write_error.py', +) + +if get_option('strict') + # Check script formatting + black = find_program('black', required: false) + if black.found() + black_opts = ['--check', '-q', '-l', '79'] + foreach script : python_scripts + name = '@0@'.format(script) + test(name, black, args: black_opts + [script], suite: 'scripts') + endforeach + endif +endif + ################### # Header Warnings # ################### |