Skip to content

Commit 2f5df64

Browse files
moonlight83340yashi
authored andcommitted
github: workflow: python: Add kiss test support
In the previous commit, we add kiss parameter to the server python binding example, so we also have to modify the python workflow to be able to test kiss interface as well. Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
1 parent 371a806 commit 2f5df64

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build-test-python.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup packages on Linux
2828
run: |
2929
sudo apt-get update
30-
sudo apt-get install libzmq3-dev libsocketcan-dev
30+
sudo apt-get install libzmq3-dev libsocketcan-dev socat
3131
3232
- name: Setup build system packages on Linux
3333
run: |
@@ -62,3 +62,11 @@ jobs:
6262
PYTHONPATH=builddir python3 examples/python_bindings_example_server.py -z localhost -a 3 &
6363
PYTHONPATH=builddir python3 examples/python_bindings_example_client.py -z localhost -s 3 -a 2
6464
pkill zmqproxy
65+
66+
- name: Run KISS Python binding Test
67+
run: |
68+
socat -d -d -d pty,raw,echo=0,link=/tmp/pty1 pty,raw,echo=0,link=/tmp/pty2 &
69+
sleep 1
70+
PYTHONPATH=builddir python3 examples/python_bindings_example_server.py -k /tmp/pty2 -a 1 &
71+
PYTHONPATH=builddir python3 examples/python_bindings_example_client.py -k /tmp/pty1 -a 2 -s 1
72+
pkill socat

0 commit comments

Comments
 (0)