]> git.mdlowis.com Git - proto/labwc.git/commitdiff
CI: make the smoke test start foot
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 26 Nov 2024 03:30:38 +0000 (04:30 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 26 Nov 2024 05:12:46 +0000 (06:12 +0100)
.github/workflows/build.yml
scripts/ci/ci_autostart.sh

index aaad886497d168d02aae983d5547b2fdfcec164d..7684423c5773722bbaafd20e3cf15495f13a576e 100644 (file)
@@ -71,7 +71,7 @@ jobs:
           pacman -Syu --noconfirm
           pacman -S --noconfirm git meson clang wlroots libdrm libinput \
             wayland-protocols cairo pango libxml2 xorg-xwayland librsvg \
-            libdisplay-info gdb ttf-dejavu
+            libdisplay-info gdb ttf-dejavu foot
 
       - name: Install Debian Testing dependencies
         if: matrix.name == 'Debian'
@@ -107,7 +107,7 @@ jobs:
           xbps-install -y git meson gcc clang pkg-config scdoc \
             cairo-devel glib-devel libpng-devel librsvg-devel libxml2-devel \
             pango-devel wlroots0.18-devel gdb bash xorg-server-xwayland \
-            dejavu-fonts-ttf libsfdo-devel
+            dejavu-fonts-ttf libsfdo-devel foot
 
       # These build are executed on all runners
       - name: Build with gcc
@@ -235,5 +235,5 @@ jobs:
             export CC=gcc
             meson setup build-gcc-gdb -Dxwayland=enabled --werror
             meson compile -C build-gcc-gdb
-            LABWC_RUNS=20 scripts/ci/smoke-test.sh build-gcc-gdb
+            LABWC_RUNS=2 scripts/ci/smoke-test.sh build-gcc-gdb
           ' | $TARGET
index 4aa1c7f9332377f0ffd5338b3c9a18bfc789ee41..fa5697d7979b0fe138e2e0dbd066768abc13261a 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/env bash
+exec 1>&2
 
 if test -z "$LABWC_PID"; then
        echo "LABWC_PID not set" >&2
@@ -7,7 +8,10 @@ fi
 
 echo "Running with pid $LABWC_PID"
 
-# Could add runtime tests here
+# Runtime tests
+echo "Executing foot"
+foot sh -c 'sleep 1; exit'
+echo "Foot exited with $?"
 
-echo "killing labwc"
+echo "Killing labwc"
 kill -s TERM $LABWC_PID