build: Add a test that runs shellcheck on the toolbox script
https://github.com/debarshiray/toolbox/pull/83
This commit is contained in:
parent
fdafbdf360
commit
d0cd536bc2
1 changed files with 8 additions and 1 deletions
|
@ -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'),
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue