Skip to content

Commit 23637b5

Browse files
ltekielirmaddikery
authored andcommitted
Run QNX ITF tests (eclipse-score#162)
1 parent c2a9843 commit 23637b5

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

.github/workflows/build_and_test_qnx.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,32 @@ jobs:
5757
sudo mkdir -p "${LICENSE_DIR}"
5858
echo "${SCORE_QNX_LICENSE}" | base64 --decode | sudo tee "${LICENSE_DIR}/licenses" >/dev/null
5959
60+
- name: Install qemu
61+
run: |
62+
sudo apt-get update
63+
sudo apt-get install -y qemu-system
64+
65+
- name: Enable KVM group perms
66+
run: |
67+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
68+
sudo udevadm control --reload-rules
69+
sudo udevadm trigger --name-match=kvm
70+
71+
- name: Allow unprivileged user namespaces
72+
run: |
73+
sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0
74+
6075
- name: Build with QNX toolchain
6176
env:
6277
SCORE_QNX_USER: ${{ secrets.SCORE_QNX_USER }}
6378
SCORE_QNX_PASSWORD: ${{ secrets.SCORE_QNX_PASSWORD }}
6479
run: |
6580
bazel build --config qnx-x86_64 //images/qnx_x86_64:image
6681
82+
- name: Run integration tests
83+
run: |
84+
bazel test --config=itf-qnx-x86_64 //feature_integration_tests/itf:qnx_x86_64
85+
6786
- name: Cleanup QNX license
6887
if: always()
69-
run: sudo rm -rf /opt/score_qnx
88+
run: sudo rm -rf /opt/score_qnx

feature_integration_tests/itf/BUILD

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@score_itf//:defs.bzl", "py_itf_test")
2-
load("@score_itf//score/itf/plugins:plugins.bzl", "docker")
2+
load("@score_itf//score/itf/plugins:plugins.bzl", "docker", "qemu")
33

44

55
filegroup(
@@ -28,4 +28,28 @@ py_itf_test(
2828
plugins = [
2929
docker,
3030
],
31+
tags = [
32+
"manual",
33+
],
34+
)
35+
36+
py_itf_test(
37+
name = "qnx_x86_64",
38+
srcs = [
39+
":all_tests",
40+
],
41+
args = [
42+
"--qemu-config=$(location //feature_integration_tests/configs:qemu_bridge_config.json)",
43+
"--qemu-image=$(location //images/qnx_x86_64:image)",
44+
],
45+
data = [
46+
"//feature_integration_tests/configs:qemu_bridge_config.json",
47+
"//images/qnx_x86_64:image",
48+
],
49+
plugins = [
50+
qemu,
51+
],
52+
tags = [
53+
"manual",
54+
],
3155
)

0 commit comments

Comments
 (0)