Skip to content

When installing in standalone mode, don't modify system config #810

When installing in standalone mode, don't modify system config

When installing in standalone mode, don't modify system config #810

Workflow file for this run

name: rsync Tests
on:
push:
branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_wolfprovider:
uses: ./.github/workflows/build-wolfprovider.yml
with:
wolfssl_ref: ${{ matrix.wolfssl_ref }}
openssl_ref: ${{ matrix.openssl_ref }}
fips_ref: ${{ matrix.fips_ref }}
replace_default: ${{ matrix.replace_default }}
strategy:
matrix:
wolfssl_ref: [ 'v5.8.2-stable' ]
openssl_ref: [ 'openssl-3.5.2' ]
fips_ref: [ 'FIPS', 'non-FIPS' ]
replace_default: [ true ]
test_rsync:
runs-on: ubuntu-22.04
needs: build_wolfprovider
timeout-minutes: 15
container:
image: debian:bookworm
options: --user root
env:
DEBIAN_FRONTEND: noninteractive
WOLFSSL_PACKAGES_PATH: /tmp/wolfssl-packages
OPENSSL_PACKAGES_PATH: /tmp/openssl-packages
WOLFPROV_PACKAGES_PATH: /tmp/wolfprov-packages
strategy:
matrix:
rsync_ref: [ 'v3.2.7' ]
wolfssl_ref: [ 'v5.8.2-stable' ]
openssl_ref: [ 'openssl-3.5.2' ]
fips_ref: [ 'FIPS', 'non-FIPS' ]
force_fail: [ 'WOLFPROV_FORCE_FAIL=1', '' ]
replace_default: [ true ]
steps:
- name: Checkout wolfProvider
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Download packages from build job
uses: actions/download-artifact@v4
with:
name: debian-packages-${{ matrix.fips_ref }}${{ matrix.replace_default && '-replace-default' || '' }}-${{ matrix.wolfssl_ref }}-${{ matrix.openssl_ref }}
path: /tmp
- name: Install wolfSSL/OpenSSL/wolfprov packages
run: |
apt install --reinstall -y --allow-downgrades --allow-change-held-packages \
${{ env.WOLFSSL_PACKAGES_PATH }}/libwolfssl_*.deb
apt install --reinstall -y --allow-downgrades --allow-change-held-packages \
${{ env.OPENSSL_PACKAGES_PATH }}/openssl_*.deb \
${{ env.OPENSSL_PACKAGES_PATH }}/libssl3_*.deb \
${{ env.OPENSSL_PACKAGES_PATH }}/libssl-dev_*.deb
apt install --reinstall -y --allow-downgrades --allow-change-held-packages \
${{ env.WOLFPROV_PACKAGES_PATH }}/libwolfprov_*.deb
- name: Verify wolfProvider is properly installed
run: |
$GITHUB_WORKSPACE/scripts/verify-install.sh \
${{ matrix.replace_default && '--replace-default' || '' }} \
${{ matrix.fips_ref == 'FIPS' && '--fips' || '' }}
- name: Install rsync dependencies
run: |
apt-get update
apt-get install -y gcc g++ gawk autoconf automake python3-cmarkgfm \
acl libacl1-dev attr libattr1-dev libxxhash-dev \
libzstd-dev liblz4-dev build-essential
- name: Checkout rsync
uses: actions/checkout@v4
with:
repository: RsyncProject/rsync
path: rsync_repo
ref: ${{ matrix.rsync_ref }}
fetch-depth: 1
- name: Build and install rsync
working-directory: rsync_repo
run: |
./configure --disable-xxhash
# Run the patch script from wolfProvider
$GITHUB_WORKSPACE/.github/scripts/add-rsync-sha-test.sh
make -j$(nproc)
#export RSYNC_CHECKSUM_LIST="none"
#This can disable file checksums which currently use rsycs own implementation of MD4 and MD5
#Causes a lot of tests in the make check to fail so im keeping it disabled
- name: Run rsync tests
working-directory: rsync_repo
run: |
export ${{ matrix.force_fail }}
# Run rsync test suite including our SHA test
make check 2>&1 | tee rsync-test.log
# Check test results - look for "0 failed" in the output
if grep -q "overall result is 0" rsync-test.log; then
TEST_RESULT=0
else
TEST_RESULT=1
fi
$GITHUB_WORKSPACE/.github/scripts/check-workflow-result.sh $TEST_RESULT ${{ matrix.force_fail }} rsync