forked from enlightenment/terminology
ci: add some sanitizers
This commit is contained in:
parent
026bf7f1c8
commit
09e0875adc
|
@ -116,12 +116,128 @@ jobs:
|
||||||
meson configure build
|
meson configure build
|
||||||
cd build
|
cd build
|
||||||
ninja -j4
|
ninja -j4
|
||||||
|
build_and_test_clang_asan_efl_latest:
|
||||||
|
docker:
|
||||||
|
- image: borisfaure/terminology-ci:latest
|
||||||
|
environment:
|
||||||
|
- CC: clang
|
||||||
|
- CFLAGS: -O0 -pipe -g -fno-omit-frame-pointer -fsanitize=address -fno-sanitize-recover=address
|
||||||
|
- COLUMNS: 150
|
||||||
|
- TERM: xterm-256color
|
||||||
|
steps:
|
||||||
|
- restore_cache:
|
||||||
|
key: checkout-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
|
- run:
|
||||||
|
name: Install EFL
|
||||||
|
command: apk add /pkg/efl-latest.apk /pkg/efl-dev-latest.apk
|
||||||
|
- run:
|
||||||
|
name: Compile with Clang
|
||||||
|
command: |
|
||||||
|
cd /terminology
|
||||||
|
meson -Dnls=false -Dtests=true . build
|
||||||
|
meson configure build
|
||||||
|
cd build
|
||||||
|
ninja -j4
|
||||||
|
- run:
|
||||||
|
name: Launch tests
|
||||||
|
command: |
|
||||||
|
cd /terminology
|
||||||
|
tests/run_tests.sh -v -t build/src/bin/tytest -r tests/tests.results -d tests/
|
||||||
|
build/src/bin/tytest dummy
|
||||||
|
build/src/bin/tytest all
|
||||||
|
build_and_test_clang_msan_efl_latest:
|
||||||
|
docker:
|
||||||
|
- image: borisfaure/terminology-ci:latest
|
||||||
|
environment:
|
||||||
|
- CC: clang
|
||||||
|
- CFLAGS: -O0 -pipe -g -fno-omit-frame-pointer -fsanitize=memory -fno-sanitize-recover=memory
|
||||||
|
- COLUMNS: 150
|
||||||
|
- TERM: xterm-256color
|
||||||
|
steps:
|
||||||
|
- restore_cache:
|
||||||
|
key: checkout-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
|
- run:
|
||||||
|
name: Install EFL
|
||||||
|
command: apk add /pkg/efl-latest.apk /pkg/efl-dev-latest.apk
|
||||||
|
- run:
|
||||||
|
name: Compile with Clang
|
||||||
|
command: |
|
||||||
|
cd /terminology
|
||||||
|
meson -Dnls=false -Dtests=true . build
|
||||||
|
meson configure build
|
||||||
|
cd build
|
||||||
|
ninja -j4
|
||||||
|
- run:
|
||||||
|
name: Launch tests
|
||||||
|
command: |
|
||||||
|
cd /terminology
|
||||||
|
tests/run_tests.sh -v -t build/src/bin/tytest -r tests/tests.results -d tests/
|
||||||
|
build/src/bin/tytest dummy
|
||||||
|
build/src/bin/tytest all
|
||||||
|
build_and_test_clang_lsan_efl_latest:
|
||||||
|
docker:
|
||||||
|
- image: borisfaure/terminology-ci:latest
|
||||||
|
environment:
|
||||||
|
- CC: clang
|
||||||
|
- CFLAGS: -O0 -pipe -g -fno-omit-frame-pointer -fsanitize=leak -fno-sanitize-recover=leak
|
||||||
|
- COLUMNS: 150
|
||||||
|
- TERM: xterm-256color
|
||||||
|
steps:
|
||||||
|
- restore_cache:
|
||||||
|
key: checkout-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
|
- run:
|
||||||
|
name: Install EFL
|
||||||
|
command: apk add /pkg/efl-latest.apk /pkg/efl-dev-latest.apk
|
||||||
|
- run:
|
||||||
|
name: Compile with Clang
|
||||||
|
command: |
|
||||||
|
cd /terminology
|
||||||
|
meson -Dnls=false -Dtests=true . build
|
||||||
|
meson configure build
|
||||||
|
cd build
|
||||||
|
ninja -j4
|
||||||
|
- run:
|
||||||
|
name: Launch tests
|
||||||
|
command: |
|
||||||
|
cd /terminology
|
||||||
|
tests/run_tests.sh -v -t build/src/bin/tytest -r tests/tests.results -d tests/
|
||||||
|
build/src/bin/tytest dummy
|
||||||
|
build/src/bin/tytest all
|
||||||
|
build_and_test_clang_isan_efl_latest:
|
||||||
|
docker:
|
||||||
|
- image: borisfaure/terminology-ci:latest
|
||||||
|
environment:
|
||||||
|
- CC: clang
|
||||||
|
- CFLAGS: -O0 -pipe -g -fno-omit-frame-pointer -fsanitize=integer -fno-sanitize-recover=integer
|
||||||
|
- COLUMNS: 150
|
||||||
|
- TERM: xterm-256color
|
||||||
|
steps:
|
||||||
|
- restore_cache:
|
||||||
|
key: checkout-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
|
- run:
|
||||||
|
name: Install EFL
|
||||||
|
command: apk add /pkg/efl-latest.apk /pkg/efl-dev-latest.apk
|
||||||
|
- run:
|
||||||
|
name: Compile with Clang
|
||||||
|
command: |
|
||||||
|
cd /terminology
|
||||||
|
meson -Dnls=false -Dtests=true . build
|
||||||
|
meson configure build
|
||||||
|
cd build
|
||||||
|
ninja -j4
|
||||||
|
- run:
|
||||||
|
name: Launch tests
|
||||||
|
command: |
|
||||||
|
cd /terminology
|
||||||
|
tests/run_tests.sh -v -t build/src/bin/tytest -r tests/tests.results -d tests/
|
||||||
|
build/src/bin/tytest dummy
|
||||||
|
build/src/bin/tytest all
|
||||||
build_and_test_clang_ubsan_efl_latest:
|
build_and_test_clang_ubsan_efl_latest:
|
||||||
docker:
|
docker:
|
||||||
- image: borisfaure/terminology-ci:latest
|
- image: borisfaure/terminology-ci:latest
|
||||||
environment:
|
environment:
|
||||||
- CC: clang
|
- CC: clang
|
||||||
- CFLAGS: -O0 -pipe -g -fno-omit-frame-pointer -fsanitize=undefined,float-divide-by-zero,unsigned-integer-overflow,implicit-conversion,local-bounds,nullability -fno-sanitize-recover=undefined,float-divide-by-zero,unsigned-integer-overflow,implicit-conversion,local-bounds,nullability
|
- CFLAGS: -O0 -pipe -g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined
|
||||||
- COLUMNS: 150
|
- COLUMNS: 150
|
||||||
- TERM: xterm-256color
|
- TERM: xterm-256color
|
||||||
steps:
|
steps:
|
||||||
|
@ -160,6 +276,15 @@ workflows:
|
||||||
- build_full_clang_efl_latest:
|
- build_full_clang_efl_latest:
|
||||||
requires:
|
requires:
|
||||||
- checkout_code
|
- checkout_code
|
||||||
|
- build_and_test_clang_asan_efl_latest:
|
||||||
|
requires:
|
||||||
|
- checkout_code
|
||||||
|
- build_and_test_clang_msan_efl_latest:
|
||||||
|
requires:
|
||||||
|
- checkout_code
|
||||||
|
- build_and_test_clang_lsan_efl_latest:
|
||||||
|
requires:
|
||||||
|
- checkout_code
|
||||||
- build_and_test_clang_ubsan_efl_latest:
|
- build_and_test_clang_ubsan_efl_latest:
|
||||||
requires:
|
requires:
|
||||||
- checkout_code
|
- checkout_code
|
||||||
|
|
Loading…
Reference in New Issue