mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-10 01:17:44 +03:00
ci: also set -Dfuzz-tests=true if -Dslow-tests=true
This commit is contained in:
parent
1763ef1d49
commit
85a03fda7d
2
.github/workflows/ubuntu-build-check.sh
vendored
2
.github/workflows/ubuntu-build-check.sh
vendored
@ -103,7 +103,7 @@ for args in "${ARGS[@]}"; do
|
|||||||
SECONDS=0
|
SECONDS=0
|
||||||
|
|
||||||
info "Checking build with $args"
|
info "Checking build with $args"
|
||||||
if ! AR="$AR" CC="$CC" CXX="$CXX" CFLAGS="-Werror" CXXFLAGS="-Werror" meson -Dtests=unsafe -Dslow-tests=true --werror $args build; then
|
if ! AR="$AR" CC="$CC" CXX="$CXX" CFLAGS="-Werror" CXXFLAGS="-Werror" meson -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true --werror $args build; then
|
||||||
fatal "meson failed with $args"
|
fatal "meson failed with $args"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ EOF
|
|||||||
# disable autopkgtests which are not for upstream
|
# disable autopkgtests which are not for upstream
|
||||||
sed -i '/# NOUPSTREAM/ q' debian/tests/control
|
sed -i '/# NOUPSTREAM/ q' debian/tests/control
|
||||||
# enable more unit tests
|
# enable more unit tests
|
||||||
sed -i '/^CONFFLAGS =/ s/=/= --werror -Dtests=unsafe -Dsplit-usr=true -Dslow-tests=true -Dman=true /' debian/rules
|
sed -i '/^CONFFLAGS =/ s/=/= --werror -Dtests=unsafe -Dsplit-usr=true -Dslow-tests=true -Dfuzz-tests=true -Dman=true /' debian/rules
|
||||||
# no orig tarball
|
# no orig tarball
|
||||||
echo '1.0' > debian/source/format
|
echo '1.0' > debian/source/format
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ for phase in "${PHASES[@]}"; do
|
|||||||
ENV_VARS="-e CC=clang -e CXX=clang++"
|
ENV_VARS="-e CC=clang -e CXX=clang++"
|
||||||
MESON_ARGS="--optimization=1"
|
MESON_ARGS="--optimization=1"
|
||||||
fi
|
fi
|
||||||
docker exec $ENV_VARS -it $CONT_NAME meson --werror -Dtests=unsafe -Dslow-tests=true -Dsplit-usr=true -Dman=true $MESON_ARGS build
|
docker exec $ENV_VARS -it $CONT_NAME meson --werror -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true -Dsplit-usr=true -Dman=true $MESON_ARGS build
|
||||||
$DOCKER_EXEC ninja -v -C build
|
$DOCKER_EXEC ninja -v -C build
|
||||||
docker exec -e "TRAVIS=$TRAVIS" -it $CONT_NAME ninja -C build test
|
docker exec -e "TRAVIS=$TRAVIS" -it $CONT_NAME ninja -C build test
|
||||||
;;
|
;;
|
||||||
|
@ -83,12 +83,12 @@ for phase in "${PHASES[@]}"; do
|
|||||||
RUN)
|
RUN)
|
||||||
info "Run phase"
|
info "Run phase"
|
||||||
# Build systemd
|
# Build systemd
|
||||||
$DOCKER_EXEC meson --werror -Dtests=unsafe -Dslow-tests=true build
|
$DOCKER_EXEC meson --werror -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true build
|
||||||
$DOCKER_EXEC ninja -v -C build
|
$DOCKER_EXEC ninja -v -C build
|
||||||
$DOCKER_EXEC ninja -C build test
|
$DOCKER_EXEC ninja -C build test
|
||||||
;;
|
;;
|
||||||
RUN_CLANG)
|
RUN_CLANG)
|
||||||
docker exec -e CC=clang -e CXX=clang++ -it $CONT_NAME meson --werror -Dtests=unsafe -Dslow-tests=true -Dman=true build
|
docker exec -e CC=clang -e CXX=clang++ -it $CONT_NAME meson --werror -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true -Dman=true build
|
||||||
$DOCKER_EXEC ninja -v -C build
|
$DOCKER_EXEC ninja -v -C build
|
||||||
$DOCKER_EXEC ninja -C build test
|
$DOCKER_EXEC ninja -C build test
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user