build-style/meson.sh: add generic do_check function.
Closes #9594. Signed-off-by: Enno Boland <gottox@voidlinux.eu>
This commit is contained in:
parent
7a8cc5b861
commit
84a9ac51db
|
@ -67,6 +67,14 @@ do_build() {
|
|||
${make_cmd} -C ${meson_builddir} ${makejobs} ${make_build_args} ${make_build_target}
|
||||
}
|
||||
|
||||
do_check() {
|
||||
: ${make_cmd:=ninja}
|
||||
: ${make_check_target:=test}
|
||||
: ${meson_builddir:=build}
|
||||
|
||||
${make_cmd} -C ${meson_builddir} ${makejobs} ${make_check_args} ${make_check_target}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
: ${make_cmd:=ninja}
|
||||
: ${make_install_target:=install}
|
||||
|
|
Loading…
Reference in New Issue