build-style/meson.sh: add generic do_check function.

Closes #9594.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
This commit is contained in:
maxice8 2017-11-27 20:22:24 -02:00 committed by Enno Boland
parent 7a8cc5b861
commit 84a9ac51db
1 changed files with 8 additions and 0 deletions

View File

@ -67,6 +67,14 @@ do_build() {
${make_cmd} -C ${meson_builddir} ${makejobs} ${make_build_args} ${make_build_target} ${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() { do_install() {
: ${make_cmd:=ninja} : ${make_cmd:=ninja}
: ${make_install_target:=install} : ${make_install_target:=install}