Skip to content

Commit

Permalink
GitHub CI: Add afp_encodingtest to the slate
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmark committed Oct 27, 2024
1 parent 9f64dd3 commit 77253bc
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,24 @@ jobs:
- uses: docker://ghcr.io/netatalk/netatalk-testsuite:latest


afp-encodingtest-afp34:
name: AFP encoding test - AFP 3.4
needs: build-container-testsuite
runs-on: ubuntu-latest
timeout-minutes: 5
env:
AFP_USER: atalk1
AFP_PASS: afpafp
AFP_GROUP: afpusers
SHARE_NAME: test1
INSECURE_AUTH: 1
VERBOSE: 1
TESTSUITE: encoding
AFP_VERSION: 7
steps:
- uses: docker://ghcr.io/netatalk/netatalk-testsuite:latest



afp-spectest-afp21:
name: AFP spec test tier 1 - AFP 2.1
Expand Down Expand Up @@ -251,3 +269,21 @@ jobs:
AFP_VERSION: 1
steps:
- uses: docker://ghcr.io/netatalk/netatalk-testsuite:latest


afp-encodingtest-afp21:
name: AFP encoding test - AFP 2.1
needs: build-container-testsuite
runs-on: ubuntu-latest
timeout-minutes: 5
env:
AFP_USER: atalk1
AFP_PASS: afpafp
AFP_GROUP: afpusers
SHARE_NAME: test1
INSECURE_AUTH: 1
VERBOSE: 1
TESTSUITE: encoding
AFP_VERSION: 1
steps:
- uses: docker://ghcr.io/netatalk/netatalk-testsuite:latest
6 changes: 4 additions & 2 deletions contrib/shell_utils/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,11 @@ else
echo "testfile uno" > /mnt/afpshare/first.txt
echo "testfile dos" > /mnt/afpshare/second.txt
mkdir /mnt/afpshare/third
afp_spectest "${TEST_FLAGS}" -"${AFP_VERSION}" -F "$TESTSUITE" -h 127.0.0.1 -p 548 -u "${AFP_USER}" -w "${AFP_PASS}" -s "${SHARE_NAME}"
afp_spectest "${TEST_FLAGS}" -"${AFP_VERSION}" -C -F "$TESTSUITE" -h 127.0.0.1 -p 548 -u "${AFP_USER}" -w "${AFP_PASS}" -s "${SHARE_NAME}"
elif [ "$TESTSUITE" == "login" ]; then
afp_logintest "${TEST_FLAGS}" -"${AFP_VERSION}" -h 127.0.0.1 -p 548 -u "${AFP_USER}" -w "${AFP_PASS}"
afp_logintest "${TEST_FLAGS}" -"${AFP_VERSION}" -C -h 127.0.0.1 -p 548 -u "${AFP_USER}" -w "${AFP_PASS}"
elif [ "$TESTSUITE" == "encoding" ]; then
afp_encodingtest "${TEST_FLAGS}" -"${AFP_VERSION}" -C -h 127.0.0.1 -p 548 -u "${AFP_USER}" -w "${AFP_PASS}" -c /mnt/afpshare
else
echo "Unknown testsuite: ${TESTSUITE}"
exit 1
Expand Down

0 comments on commit 77253bc

Please sign in to comment.