diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index ea2d3530..6a85d95a 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -35,7 +35,8 @@ jobs: libmiroil-dev libmirrenderer-dev libgles2-mesa-dev libmirwayland-dev libjson-c-dev sudo apt install mir-platform-graphics-virtual xwayland \ - mir-platform-graphics-gbm-kms mir-platform-rendering-egl-generic gedit gnome-chess + mir-platform-graphics-gbm-kms mir-platform-rendering-egl-generic gedit gnome-chess \ + libwayland-dev gnome-calculator - name: Configure CMake run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} @@ -50,11 +51,11 @@ jobs: run: cd ${{github.workspace}}/build && ./bin/miracle-wm-tests - name: IPC Tests - if: false run: | + export NO_AT_BRIDGE=1 + sudo systemd-run --uid 1001 -p Environment=XDG_SESSION_TYPE=wayland -p PAMName=login -p TTYPath=/dev/tty1 -- tail -f /dev/null + cd ${{github.workspace}}/tests/ipc - python -m venv venv - source venv/bin/activate pip install -r requirements.txt MIRACLE_IPC_TEST_BIN=/usr/local/bin/miracle-wm pytest -s diff --git a/tests/ipc/conftest.py b/tests/ipc/conftest.py index bb2227e9..08e4d769 100644 --- a/tests/ipc/conftest.py +++ b/tests/ipc/conftest.py @@ -37,7 +37,7 @@ def server(): with process.stdout: for line in iter(process.stdout.readline, b''): data = line.decode("utf-8").strip() - # print(data) + print(data) if to_find in data: i = data.index(to_find) i = i + len(to_find) @@ -46,9 +46,9 @@ def server(): yield Server(socket, env["WAYLAND_DISPLAY"]) - # for line in iter(process.stdout.readline, b''): - # data = line.decode("utf-8").strip() - # print(data) + for line in iter(process.stdout.readline, b''): + data = line.decode("utf-8").strip() + print(data) process.terminate() return @@ -80,4 +80,4 @@ def multi_win_server(): # print(data) process.terminate() - return \ No newline at end of file + return