build: Add a test that runs shellcheck on the toolbox script

https://github.com/debarshiray/toolbox/pull/83
This commit is contained in:
Debarshi Ray 2019-04-10 14:03:15 +02:00
parent fdafbdf360
commit d0cd536bc2

View file

@ -6,12 +6,19 @@ project(
)
go_md2man = find_program('go-md2man')
shellcheck = find_program('shellcheck', required: false)
systemd_dep = dependency('systemd')
tmpfilesdir = systemd_dep.get_pkgconfig_variable('tmpfilesdir')
toolbox = files('toolbox')
if shellcheck.found()
test('shellcheck', shellcheck, args: [toolbox])
endif
install_data(
'toolbox',
toolbox,
install_dir: get_option('bindir'),
)