diff options
-rw-r--r-- | .gitlab-ci.yml | 1 | ||||
-rwxr-xr-x | .gitlab-ci/check-ddx-build.sh | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3ed206db2..48fca7a9c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -169,6 +169,7 @@ meson: - .gitlab-ci/meson-build.sh --run-test - .gitlab-ci/check-piglit-results.sh - .gitlab-ci/manpages-check + - .gitlab-ci/check-ddx-build.sh variables: XTEST_DIR: /root/xts PIGLIT_DIR: /root/piglit diff --git a/.gitlab-ci/check-ddx-build.sh b/.gitlab-ci/check-ddx-build.sh new file mode 100755 index 000000000..df6f0c029 --- /dev/null +++ b/.gitlab-ci/check-ddx-build.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +set -e +set -o xtrace + +check_executable () { + if [[ ! -x $MESON_BUILDDIR/$1 ]]; then + echo "$1 not found after build" + exit 1 + fi + return 0 +} + +if [[ -z "$MESON_BUILDDIR" ]]; then + echo "\$MESON_BUILDDIR not set" + exit 1 +fi + +[[ "$BUILD_XEPHYR" == true ]] && check_executable "hw/kdrive/ephyr/Xephyr" +[[ "$BUILD_XNEST" == true ]] && check_executable "hw/xnest/Xnest" +[[ "$BUILD_XORG" == true ]] && check_executable "hw/xfree86/Xorg" +[[ "$BUILD_XVFB" == true ]] && check_executable "hw/vfb/Xvfb" +[[ "$BUILD_XWAYLAND" == true ]] && check_executable "hw/xwayland/Xwayland" + +exit 0 |