From: Erik Skultety Date: Thu, 24 Aug 2023 13:48:46 +0000 (+0200) Subject: ci: build.sh: Add a wrapper function over the 'test' job X-Git-Tag: v9.8.0-rc1~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e660c5286d7e2d07dd61681074bf1555955552d;p=thirdparty%2Flibvirt.git ci: build.sh: Add a wrapper function over the 'test' job This helper is a shell function transcript of its original GitLab CI counterpart. Signed-off-by: Erik Skultety Reviewed-by: Daniel P. Berrangé --- diff --git a/ci/build.sh b/ci/build.sh index 0c2385ee32..9af6d807f9 100644 --- a/ci/build.sh +++ b/ci/build.sh @@ -52,3 +52,8 @@ run_dist() { git update-index --refresh run_cmd meson dist -C build --no-tests } + +run_test() { + test -f $GIT_ROOT/build/build.ninja || run_meson_setup + run_cmd meson test -C build $TEST_ARGS +}