apk upgrade
apk add \
- git pkgconf gcc linux-headers shadow sudo libgcrypt-dev gzip \
+ git pkgconf gcc linux-headers shadow libgcrypt-dev gzip \
openssl-dev zlib-dev lzo-dev ncurses-dev readline-dev musl-dev lz4-dev vde2-dev cmocka-dev \
"$@"
apt update
apt upgrade -y
- apt install --no-install-recommends -y git pkgconf sudo texinfo
+ apt install --no-install-recommends -y git pkgconf texinfo
HOST=${HOST:-}
if [ "$HOST" = mingw ]; then
fi
yum install -y \
- git pkgconf gcc sudo \
+ git pkgconf gcc \
lzo-devel zlib-devel lz4-devel ncurses-devel readline-devel libgcrypt-devel systemd-devel \
libcmocka-devel cmake \
openssl-devel "$@"
header "Cleaning up leftovers from previous runs"
for name in tinc tincd; do
- sudo pkill -TERM -x "$name" || true
- sudo pkill -KILL -x "$name" || true
+ pkill -TERM -x "$name" || true
+ pkill -KILL -x "$name" || true
done
if [ "$(id -u)" != 0 ]; then
- sudo chown -R "${USER:-$(whoami)}" . || true
+ chown -R "${USER:-$(whoami)}" . || true
fi
mkdir -p sanitizer logs
code=0
meson test -C "$flavor" --timeout-multiplier $timeout --verbose || code=$?
- sudo tar -c -z -f "logs/tests.$flavor.tar.gz" "$flavor" sanitizer/ || true
+ tar -c -z -f "logs/tests.$flavor.tar.gz" "$flavor" sanitizer/ || true
return $code
}
-case "$(uname -s)" in
-MINGW* | Darwin) sudo() { "$@"; } ;;
-esac
-
flavor=$1
shift
run: .ci/test/prepare.sh
- name: Run tests with default settings
- run: sudo -Eu build .ci/test/run.sh default
+ run: .ci/test/run.sh default
- name: Run tests without legacy protocol
- run: sudo -Eu build .ci/test/run.sh nolegacy
+ run: .ci/test/run.sh nolegacy
if: always()
- name: Run tests with libgcrypt
- run: sudo -Eu build .ci/test/run.sh gcrypt
+ run: .ci/test/run.sh gcrypt
if: always()
- name: Upload test results
uses: actions/checkout@v6
- name: Install dependencies
- run: sudo .ci/deps.sh autoconf automake iperf3
+ run: .ci/deps.sh autoconf automake iperf3
- name: Compatibility with older versions of tinc
- run: sudo .ci/compat/run.sh
+ run: .ci/compat/run.sh
if: always()
- name: Install tools
run: |
- sudo apt install -y astyle clang-tidy-$CLANG shellcheck shfmt black pylint mypy
- sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-$CLANG 100
- sudo update-alternatives --install /usr/bin/run-clang-tidy run-clang-tidy /usr/bin/run-clang-tidy-$CLANG 100
+ apt install --no-install-recommends -y astyle clang-tidy-$CLANG shellcheck shfmt black pylint mypy
+ update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-$CLANG 100
+ update-alternatives --install /usr/bin/run-clang-tidy run-clang-tidy /usr/bin/run-clang-tidy-$CLANG 100
python3 -m venv /tmp/venv
. /tmp/venv/bin/activate
pip3 install markflow
if: always()
- name: Archive test results
- run: sudo tar -caf tests.tar.gz /usr/local/etc
+ run: tar -caf tests.tar.gz /usr/local/etc
continue-on-error: true
if: always()
- name: Install deps
run: |
- sudo .ci/deps.sh iputils-arping
- sudo pip3 install --upgrade cryptography
+ .ci/deps.sh iputils-arping
+ pip3 install --upgrade cryptography
- name: Sanitize tests with default settings
run: .ci/sanitizers/run.sh default
run: .ci/test/prepare.sh
- name: Run tests with default settings
- run: sudo -u build .ci/test/run.sh default
+ run: .ci/test/run.sh default
if: always()
- name: Run tests without legacy protocol
- run: sudo -u build .ci/test/run.sh nolegacy
+ run: .ci/test/run.sh nolegacy
if: always()
- name: Run tests with libgcrypt
- run: sudo -u build .ci/test/run.sh gcrypt
+ run: .ci/test/run.sh gcrypt
if: always()
- name: Upload test results