Skip to content

Commit 103903b

Browse files
authored
workflow to run attach tests (eunomia-bpf#240)
* workflow to run attach tests * added the workflow * fixed the error * execute with previlage
1 parent 9b9b3a4 commit 103903b

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed

.github/workflows/test-attach.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build and Attach Tests Workflow
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: "*"
7+
pull_request:
8+
branches: "master"
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
build_and_test_attach:
16+
runs-on: "ubuntu-latest"
17+
strategy:
18+
matrix:
19+
container:
20+
- ubuntu-2204
21+
- fedora-39
22+
container:
23+
image: "manjusakalza/bpftime-base-image:${{matrix.container}}"
24+
options: --privileged -v /sys/kernel/debug/:/sys/kernel/debug:rw -v /sys/kernel/tracing:/sys/kernel/tracing:rw
25+
steps:
26+
- uses: actions/checkout@v2
27+
with:
28+
submodules: 'recursive'
29+
30+
- name: Build for frida uprobe attach tests
31+
run: |
32+
cmake -B build
33+
cmake --build build --config Debug --target bpftime_frida_uprobe_attach_tests -j$(nproc)
34+
35+
- name: Run frida uprobe attach tests
36+
run: |
37+
./build/attach/frida_uprobe_attach_impl/bpftime_frida_uprobe_attach_tests
38+
39+
- name: Remove the build
40+
run: rm -rf build
41+
42+
- name: Build syscall trace uprobe attach tests
43+
run: |
44+
cmake -B build
45+
cmake --build build --config Debug --target bpftime_syscall_trace_attach_tests -j$(nproc)
46+
47+
- name: Run syscall trace uprobe attach tests
48+
run: |
49+
./build/attach/syscall_trace_attach_impl/bpftime_syscall_trace_attach_tests

.github/workflows/test-llvm-jit.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,4 @@ jobs:
3838
3939
- name: build vm as a standalone library
4040
run: |
41-
cd vm && make build-llvm -j
42-
41+
cd vm && make build-llvm -j

0 commit comments

Comments
 (0)