File: test-tracing.yml

package info (click to toggle)
dqlite 1.18.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,372 kB
  • sloc: ansic: 57,583; makefile: 336; sh: 243
file content (43 lines) | stat: -rw-r--r-- 841 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI Tracef Tests

on:
  - push
  - pull_request

jobs:
  test-tracef:
    strategy:
      fail-fast: false
      matrix:
        os:
          - ubuntu-24.04
          - ubuntu-24.04-arm
    runs-on: ${{ matrix.os }}

    steps:
    - uses: actions/checkout@v6

    - name: Set up dependencies
      run: |
        sudo apt update
        sudo apt install -y libuv1-dev python3

    - name: Generate tracef test
      shell: bash
      run: |
        python3 .github/scripts/generate_tracef_test.py

    - name: Build tracef test
      shell: bash
      run: |
        clang -g -O0 debug_trace_generated.c -o debug_trace_test

    - name: Run tracef test
      shell: bash
      run: |
        ./debug_trace_test

    - name: Compare tracef output
      shell: bash
      run: |
        python3 .github/scripts/compare_tracef_output.py