The most interesting tests that actually exercise network
require root access for setup.
libminiupnpc-dev:"$HOST" \
libvdeplug-dev:"$HOST" \
libcmocka-dev:"$HOST" \
+ libsystemd-dev:"$HOST" \
"$@"
if [ -n "$HOST" ]; then
yum install -y \
git binutils make ninja-build pkgconf gcc sudo texinfo-tex systemd perl-IPC-Cmd \
- lzo-devel zlib-devel lz4-devel ncurses-devel readline-devel libgcrypt-devel "$@"
+ lzo-devel zlib-devel lz4-devel ncurses-devel readline-devel libgcrypt-devel systemd-devel "$@"
if [ -z "$SKIP_MESON" ]; then
yum install -y meson
export CPPFLAGS='-DDEBUG'
export CFLAGS="-O0 -g -fsanitize=$SANITIZER -fno-omit-frame-pointer -fno-common -fsanitize-blacklist=$dir/ignore.txt $flags"
-bash .ci/test/run.sh "$@"
+sudo bash .ci/test/run.sh "$@"
# Check that the sanitizer has not created any log files.
# If it has, fail the job to notify the developer.
sudo pkill -KILL -x "$name" || true
done
- sudo chown -R "${USER:-$(whoami)}" . || true
+ if [ "$(id -u)" != 0 ]; then
+ sudo chown -R "${USER:-$(whoami)}" . || true
+ fi
mkdir -p sanitizer /tmp/logs
- name: Install deps
run: |
- sudo sh .ci/deps.sh
+ sudo sh .ci/deps.sh iputils-arping
sudo pip3 install --upgrade cryptography
- name: Run tests with OpenSSL 3