Skip to content

Commit f37d110

Browse files
committed
ci: add simple integration test
This integration test helps to identify runtime issues on the various supported platforms. Signed-off-by: Felix Moessbauer <[email protected]>
1 parent 324fbca commit f37d110

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build.yml

Lines changed: 40 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,42 @@ 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 deps
86+
run: apt-get install -y babeltrace2 jq
87+
- name: smoke test source.ftrace.tracedat
88+
env:
89+
BABELTRACE_PLUGIN_PATH: ${{ github.workspace }}/build
90+
run: babeltrace2 trace.dat
91+
- name: smoke test sink.ftrace.tracemeta
92+
env:
93+
BABELTRACE_PLUGIN_PATH: ${{ github.workspace }}/build
94+
run: babeltrace2 --component=meta:sink.ftrace.tracemeta trace.dat | jq
95+
- name: smoke test query inteface
96+
env:
97+
BABELTRACE_PLUGIN_PATH: ${{ github.workspace }}/build
98+
run: babeltrace2 query -p "inputs=[trace.dat]" source.ftrace.tracedat babeltrace.trace-infos
99+
- name: smoke test ftrace-to-ctf
100+
env:
101+
BABELTRACE_PLUGIN_PATH: ${{ github.workspace }}/build
102+
run: ./build/ftrace-to-ctf --lttng trace.dat /tmp
103+
104+
generate-trace-data:
105+
runs-on: ubuntu-24.04
106+
steps:
107+
- name: install dependencies
108+
run: |
109+
sudo apt-get update
110+
sudo apt-get install -y trace-cmd
111+
112+
- name: generate trace.dat sample data
113+
run: sudo trace-cmd record -C mono -e "sched:*" sleep 1
114+
- uses: actions/upload-artifact@v5
115+
with:
116+
name: trace-data
117+
path: trace.dat

0 commit comments

Comments
 (0)