Add Caddy Hurl tests.

This commit is contained in:
Jean-Christophe Amiel 2025-10-25 22:34:53 +02:00
parent 3d91fb70cd
commit cacc94b53d
No known key found for this signature in database
GPG Key ID: 07FF11CFD55356CC
1 changed files with 21 additions and 0 deletions

21
bin/release/test_caddy.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
set -Eeuo pipefail
echo "Test Caddy Hurl tests <https://github.com/caddyserver/caddy>"
echo "------------------------------------------------------------"
work_dir=build/
mkdir -p build/
cd "$work_dir".
rm -rf caddy || true
git clone --branch hurl-tests --no-depth https://github.com/caddyserver/caddy.git
cd caddy
# TODO: Install caddy depending on the system
caddy stop || true
caddy start 2>/dev/null
hurl --jobs 1 --variables-file caddytest/spec/hurl_vars.properties --test caddytest/spec/
caddy stop