-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathconfig.yml
More file actions
86 lines (76 loc) · 2.96 KB
/
config.yml
File metadata and controls
86 lines (76 loc) · 2.96 KB
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
version: 2
aliases:
- &run_units
name: run_units
environment:
command: |
mkdir -p build
cd build
eval cmake .. ${CMAKE_FLAGS} -DUNITS_ENABLE_ERROR_ON_WARNINGS=ON
make -j 4
ctest --verbose
- &run_fuzz
name: run_fuzz
environment:
command: |
mkdir -p build
cd build
eval cmake .. ${CMAKE_FLAGS} -DUNITS_BUILD_FUZZ_TARGETS=ON -DUNITS_ENABLE_TESTS=OFF -DUNITS_INSTALL=OFF -DUNITS_BASE_TYPE=std::uint64_t
make -j 4
make QUICK_RAW_FUZZ
jobs:
unitsTSan:
machine:
image: ubuntu-2204:2025.01.2
docker:
- image: helics/buildenv:sanitizers-14
environment:
CMAKE_FLAGS: '-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_FLAGS="-fsanitize=thread -nostdinc++ -nostdlib++ -L/root/develop/libcxx_tsan/lib -lc++ -lc++abi -I/root/develop/libcxx_tsan/include -I/root/develop/libcxx_tsan/include/c++/v1 -Wno-unused-command-line-argument -fno-omit-frame-pointer -g -O2 -Wl,-rpath,/root/develop/libcxx_tsan/lib" '
TSAN_OPTIONS: "second_deadlock_stack=1"
steps:
- checkout
- run: *run_units
unitsASan:
machine:
image: ubuntu-2204:2025.11.1
docker:
- image: helics/buildenv:sanitizers-19
environment:
CMAKE_FLAGS: '-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_FLAGS="-fsanitize=undefined,address -lc++ -lc++abi -fsanitize-address-use-after-scope -Wno-unused-command-line-argument -fno-omit-frame-pointer -g -O1 -fsanitize-blacklist=/root/project/.circleci/asan_blacklist.txt" '
LSAN_OPTIONS: "suppressions=/root/project/.circleci/leak_suppression.txt"
UBSAN_OPTIONS: "print_stacktrace=1"
ASAN_OPTIONS: "alloc_dealloc_mismatch=0"
steps:
- checkout
- run: *run_units
unitsMSan:
machine:
image: ubuntu-2204:2022.10.2
docker:
- image: helics/buildenv:sanitizers-14
environment:
CMAKE_FLAGS: '-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_FLAGS="-fsanitize=memory -nostdinc++ -nostdlib++ -L/root/develop/libcxx_msan/lib -lc++ -lc++abi -I/root/develop/libcxx_msan/include -I/root/develop/libcxx_msan/include/c++/v1 -Wno-unused-command-line-argument -fno-omit-frame-pointer -g -O1 -Wl,-rpath,/root/develop/libcxx_msan/lib" '
steps:
- checkout
- run: *run_units
unitsFuzz:
docker:
- image: helics/buildenv:clang-builder8
environment:
CMAKE_FLAGS: '-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_COMPILER_FORCED=ON -DCMAKE_CXX_FLAGS="-g -O1 -fsanitize=fuzzer,undefined,address" '
UBSAN_OPTIONS: "print_stacktrace=1"
steps:
- checkout
- run: *run_fuzz
- store_artifacts:
path: /root/project/build/FuzzTargets/units_fail_string_artifact.txt
- store_artifacts:
path: /root/project/build/FuzzTargets/units_fail_measurement_artifact.txt
workflows:
version: 2
units_test:
jobs:
# - unitsMSan
- unitsASan
# - unitsTSan
- unitsFuzz