Skip to content

Commit 110536a

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

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/build.yml

Lines changed: 30 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,32 @@ 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+
85+
- name: smoke test
86+
run: |
87+
export BABELTRACE_PLUGIN_PATH="$GITHUB_WORKSPACE/build"
88+
apt-get install -y babeltrace2 jq
89+
babeltrace2 "$GITHUB_WORKSPACE/trace.dat"
90+
babeltrace2 --component=meta:sink.ftrace.tracemeta "$GITHUB_WORKSPACE/trace.dat" | jq
91+
mkdir -p /tmp/traceout
92+
./build/ftrace-to-ctf --lttng "$GITHUB_WORKSPACE/trace.dat" /tmp/traceout
93+
94+
generate-trace-data:
95+
runs-on: ubuntu-24.04
96+
steps:
97+
- name: install dependencies
98+
run: |
99+
sudo apt-get update
100+
sudo apt-get install -y trace-cmd
101+
102+
- name: generate trace.dat sample data
103+
run: sudo trace-cmd record -C mono -e "sched:*" sleep 1
104+
- uses: actions/upload-artifact@v5
105+
with:
106+
name: trace-data
107+
path: trace.dat

0 commit comments

Comments
 (0)