From 0f36fa2d73b4d2ea2f3430c237953880943baaaf Mon Sep 17 00:00:00 2001 From: Kasper Peeters Date: Thu, 19 Dec 2024 21:05:55 +0000 Subject: [PATCH] Try to test cadabra2-gtk. --- .github/workflows/homebrew-devel.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/homebrew-devel.yml b/.github/workflows/homebrew-devel.yml index b39b94a81f..55a01ee89c 100644 --- a/.github/workflows/homebrew-devel.yml +++ b/.github/workflows/homebrew-devel.yml @@ -79,3 +79,17 @@ jobs: - name: test simple cli run run: printf "ex:=(A+B) (C+D);\ndistribute(ex);\nquit()\n" > tst.cdb && cadabra2 tst.cdb + - name: test gtk app launch + run: | + cadabra2-gtk & + APP_PID=$! + sleep 10 + + if kill -0 $APP_PID 2>/dev/null; then + echo "Application started successfully" + kill $APP_PID + exit 0 + else + echo "Application failed to start" + exit 1 + fi