-
Notifications
You must be signed in to change notification settings - Fork 0
105 lines (88 loc) · 2.8 KB
/
valgrind.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: Leak Checks
on:
push:
branches:
- not-a-branch
jobs:
leak_checks:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
env:
LD_LIBRARY_PATH: /usr/local/lib
steps:
#------------------------------------
# Setup:
#------------------------------------
- name: Set up base system
run: |
sudo apt update
sudo apt-get -qq install -y \
libev-dev \
libyaml-dev \
apache2-utils \
valgrind
mkdir -p ./build/bsat
mkdir -p ./build/yimmo
#------------------------------------
# Dependencies:
#------------------------------------
- name: Checkout libbsat
uses: actions/checkout@v4
with:
repository: 'andrew-canaday/libbsat'
path: 'libbsat'
- name: Generate BSAT Configuration
run: ./autogen.sh
working-directory: ./libbsat
- name: Install libbsat
run: |
../../libbsat/configure \
--enable-silent-rules \
--silent
sudo make install
sudo ldconfig -v || echo "FYI: ldconfig failed"
working-directory: ./build/bsat
#--------------------------------------------------------------------
# Build libyimmo:
#--------------------------------------------------------------------
- name: Checkout libyimmo
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}
path: 'libyimmo'
- name: Generate Configuration
run: ./autogen.sh
working-directory: ./libyimmo
- name: Configure
run: |
../../libyimmo/configure \
--enable-maintainer-debug \
--enable-examples \
--enable-wsgi \
--enable-silent-rules \
CFLAGS=-fdiagnostics-color=always
working-directory: ./build/yimmo
- name: Install
run: |
sudo make install
working-directory: ./build/yimmo
#--------------------------------------------------------------------
# Valgrind leak check:
#--------------------------------------------------------------------
- name: valgrind_leak_check
run: |
export YIMMO_CI_PIDFILE=${PWD}/ws-echo.pid
export YIMMO_LOG_LEVEL=WARNING
valgrind \
--trace-children=yes \
--track-origins=yes \
--leak-check=full \
--show-leak-kinds=all \
--suppressions=../../libyimmo/ci/ws/valgrind.supp \
./ci/ws/yimmo-ws-echo >./valgrind.out 2>&1
../../libyimmo/ci/ws/autobahn-local.sh >/dev/null 2>&1
kill -s INT $( cat ./ws-echo.pid )
cat ./valgrind.out
working-directory: ./build/yimmo