Workaround for parallel writing of LLVM profiler data

Skip failing tests on cygwin: we'll just have to mark the unix socket feature as "experimental", but shouldn't block merging it due to cygwin being weird
This commit is contained in:
Alexey Sokolov
2025-05-01 22:24:10 +01:00
parent 5184d662d3
commit 5974d0ff3b
4 changed files with 48 additions and 2 deletions

2
.github/build.sh vendored
View File

@@ -47,7 +47,7 @@ case "${CC:-gcc}" in
export PATH=$PATH:/Library/Developer/CommandLineTools/usr/bin
fi
llvm-profdata merge unittest.profraw -o unittest.profdata
llvm-profdata merge inttest.profraw -o inttest.profdata
llvm-profdata merge inttest.profraw* -o inttest.profdata
llvm-cov show -show-line-counts-or-regions -instr-profile=unittest.profdata test/unittest_bin > unittest-cmake-coverage.txt
llvm-cov show -show-line-counts-or-regions -instr-profile=inttest.profdata /usr/local/bin/znc > inttest-znc-coverage.txt
find /usr/local/lib/znc -name '*.so' -or -name '*.bundle' | while read f; do llvm-cov show -show-line-counts-or-regions -instr-profile=inttest.profdata $f > inttest-$(basename $f)-coverage.txt; done