1
0
mirror of https://github.com/systemd/systemd synced 2026-03-31 20:24:50 +02:00

Compare commits

..

No commits in common. "0ad536c16a940b4557322f3f811db73c4b374898" and "0b5fe54ff5c35849316b916bd9dc042a7a2349e1" have entirely different histories.

3 changed files with 18 additions and 6 deletions

View File

@ -9,6 +9,7 @@ ADDITIONAL_DEPS=(
expect expect
fdisk fdisk
jekyll jekyll
lcov
libfdisk-dev libfdisk-dev
libfido2-dev libfido2-dev
libp11-kit-dev libp11-kit-dev
@ -47,9 +48,17 @@ for phase in "${PHASES[@]}"; do
# The docs build is slow and is not affected by compiler/flags, so do it just once # The docs build is slow and is not affected by compiler/flags, so do it just once
MESON_ARGS+=(-Dman=true) MESON_ARGS+=(-Dman=true)
fi fi
if [[ "$phase" = "RUN_GCC" ]]; then
MESON_ARGS+=(-Db_coverage=true)
# See FIXME below
(set +x; while :; do echo -ne "\n[WATCHDOG] $(date)\n"; sleep 30; done) &
fi
meson --werror -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true "${MESON_ARGS[@]}" build meson --werror -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true "${MESON_ARGS[@]}" build
ninja -C build -v ninja -C build -v
meson test -C build --print-errorlogs meson test -C build --print-errorlogs
if [[ "$phase" = "RUN_GCC" ]]; then
ninja -C build coverage
fi
;; ;;
RUN_ASAN_UBSAN|RUN_GCC_ASAN_UBSAN|RUN_CLANG_ASAN_UBSAN) RUN_ASAN_UBSAN|RUN_GCC_ASAN_UBSAN|RUN_CLANG_ASAN_UBSAN)
MESON_ARGS=(--optimization=1) MESON_ARGS=(--optimization=1)

View File

@ -29,3 +29,9 @@ jobs:
- name: Build & test (${{ matrix.run_phase }}) - name: Build & test (${{ matrix.run_phase }})
run: sudo -E .github/workflows/unit_tests.sh RUN_${{ matrix.run_phase }} run: sudo -E .github/workflows/unit_tests.sh RUN_${{ matrix.run_phase }}
if: github.event_name == 'pull_request' || matrix.run_phase == 'GCC' if: github.event_name == 'pull_request' || matrix.run_phase == 'GCC'
- name: Coveralls
if: matrix.run_phase == 'GCC' && github.repository == 'systemd/systemd'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./build/meson-logs/coverage.info

View File

@ -100,12 +100,9 @@ if install_tests
install_data('run-unit-tests.py', install_data('run-unit-tests.py',
install_mode : 'rwxr-xr-x', install_mode : 'rwxr-xr-x',
install_dir : testsdir) install_dir : testsdir)
if conf.get('ENABLE_NETWORKD') == 1
install_data('test-network-generator-conversion.sh', install_data('test-network-generator-conversion.sh',
install_mode : 'rwxr-xr-x', install_mode : 'rwxr-xr-x',
install_dir : testsdir) install_dir : testsdir)
endif
endif endif
############################################################ ############################################################