mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-07 06:04:59 +00:00
coverage.sh: Start coveraging -m32
This commit is contained in:
parent
befef7e52a
commit
23e820aa25
2 changed files with 11 additions and 1 deletions
2
.github/workflows/coverage.yml
vendored
2
.github/workflows/coverage.yml
vendored
|
@ -59,6 +59,8 @@ jobs:
|
|||
cmake \
|
||||
docbook2x \
|
||||
dos2unix \
|
||||
gcc-multilib \
|
||||
g++-multilib \
|
||||
lcov \
|
||||
libbsd-dev \
|
||||
lzip \
|
||||
|
|
|
@ -59,7 +59,12 @@ _get_build_dir() {
|
|||
xml_attr_part=__attr_info
|
||||
fi
|
||||
|
||||
echo "build__${version}__unicode_${unicode_enabled}__xml_context_${xml_context}${libbsd_part}${mingw_part}${char_part}${xml_attr_part}"
|
||||
local m32_part=
|
||||
if ${with_m32}; then
|
||||
m32_part=__m32
|
||||
fi
|
||||
|
||||
echo "build__${version}__unicode_${unicode_enabled}__xml_context_${xml_context}${libbsd_part}${mingw_part}${char_part}${xml_attr_part}${m32_part}"
|
||||
}
|
||||
|
||||
|
||||
|
@ -85,6 +90,7 @@ _call_cmake() {
|
|||
|
||||
${with_libbsd} && cmake_args+=( -DEXPAT_WITH_LIBBSD=ON )
|
||||
${with_mingw} && cmake_args+=( -DCMAKE_TOOLCHAIN_FILE="${abs_source_dir}"/cmake/mingw-toolchain.cmake )
|
||||
${with_m32} && cmake_args+=( -D_EXPAT_M32=ON )
|
||||
|
||||
(
|
||||
set -x
|
||||
|
@ -276,6 +282,7 @@ _main() {
|
|||
# All combinations:
|
||||
with_unsigned_char=false
|
||||
with_libbsd=false
|
||||
with_m32=false
|
||||
for with_mingw in true false ; do
|
||||
for unicode_enabled in true false ; do
|
||||
if ${unicode_enabled} && ! ${with_mingw} ; then
|
||||
|
@ -293,6 +300,7 @@ _main() {
|
|||
# Single cases:
|
||||
with_libbsd=true _build_case
|
||||
with_unsigned_char=true _build_case
|
||||
with_m32=true _build_case
|
||||
|
||||
echo
|
||||
echo 'Merging coverage files...'
|
||||
|
|
Loading…
Add table
Reference in a new issue