]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
ci: build.sh: Add a wrapper function over the 'test' job
authorErik Skultety <eskultet@redhat.com>
Thu, 24 Aug 2023 13:48:46 +0000 (15:48 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 12 Sep 2023 09:36:03 +0000 (11:36 +0200)
This helper is a shell function transcript of its original GitLab CI
counterpart.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
ci/build.sh

index 0c2385ee328686397386a77c1fc3cb82e280f341..9af6d807f9ae32ab534db7669d30073a2145f005 100644 (file)
@@ -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
+}