Skip to content

Commit 935eee4

Browse files
committed
ci: add simple integration test
Signed-off-by: Felix Moessbauer <[email protected]>
1 parent f101dd5 commit 935eee4

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
3636
build:
3737
runs-on: ubuntu-24.04
38+
needs: generate-trace-data
3839
strategy:
3940
matrix:
4041
distro:
@@ -75,3 +76,35 @@ jobs:
7576
run: |
7677
meson setup -Dbuildtype=debugoptimized ${{ matrix.meson_opts }} build
7778
cd build && ninja
79+
80+
- name: download sample trace data
81+
uses: actions/download-artifact@v5
82+
with:
83+
name: trace-data
84+
path: ${{ github.workspace }}/build
85+
86+
- name: smoke test
87+
env:
88+
BABELTRACE_PLUGIN_PATH: ${{ github.workspace }}/build
89+
run: |
90+
find ${{ github.workspace }}/build
91+
apt-get install -y babeltrace2 jq
92+
babeltrace2 trace.dat
93+
babeltrace2 --component=meta:sink.ftrace.tracemeta trace.dat | jq
94+
mkdir -p /tmp/traceout
95+
./ftrace-to-ctf --lttng trace.dat /tmp/traceout
96+
97+
generate-trace-data:
98+
runs-on: ubuntu-24.04
99+
steps:
100+
- name: install dependencies
101+
run: |
102+
sudo apt-get update
103+
sudo apt-get install -y trace-cmd
104+
105+
- name: generate trace.dat sample data
106+
run: sudo trace-cmd record -C mono -e "sched:*" sleep 1
107+
- uses: actions/upload-artifact@v5
108+
with:
109+
name: trace-data
110+
path: trace.dat

0 commit comments

Comments
 (0)