2025-03-15 04:23:24 +00:00
|
|
|
# syntax = docker/dockerfile:1.11-labs
|
|
|
|
|
|
2025-06-06 02:30:42 +00:00
|
|
|
FROM input AS smoke-version
|
|
|
|
|
COPY --link --from=input . .
|
2025-03-15 04:23:24 +00:00
|
|
|
RUN <<EOF
|
|
|
|
|
set -eux
|
|
|
|
|
tuwunel -V
|
|
|
|
|
version=$(tuwunel -V)
|
|
|
|
|
/bin/test -n "$version"
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
2025-06-06 02:30:42 +00:00
|
|
|
FROM input AS smoke-startup
|
|
|
|
|
COPY --link --from=input . .
|
2025-03-15 04:23:24 +00:00
|
|
|
ENV TUWUNEL_LOG="info"
|
|
|
|
|
ENV TUWUNEL_DATABASE_PATH="/tmp/smoketest.db"
|
|
|
|
|
RUN <<EOF
|
|
|
|
|
set -eux
|
|
|
|
|
tuwunel \
|
|
|
|
|
-Otest='["smoke"]' \
|
|
|
|
|
-Oserver_name=\"localhost\" \
|
2026-01-29 17:19:44 -05:00
|
|
|
-Odatabase_path=\"${TUWUNEL_DATABASE_PATH}\" \
|
|
|
|
|
-Oerror_on_unknown_config_opts=true
|
2025-03-15 04:23:24 +00:00
|
|
|
|
|
|
|
|
rm -rf "${TUWUNEL_DATABASE_PATH}"
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
2025-06-06 02:30:42 +00:00
|
|
|
FROM input AS smoke-valgrind
|
|
|
|
|
ARG leak_check="no"
|
|
|
|
|
ARG undef_value_errors="no"
|
2026-01-16 08:52:57 +00:00
|
|
|
ARG db_pool_max_workers=128
|
2025-06-06 02:30:42 +00:00
|
|
|
COPY --link --from=input . .
|
2025-03-15 04:23:24 +00:00
|
|
|
ENV TUWUNEL_LOG="info"
|
|
|
|
|
ENV TUWUNEL_DATABASE_PATH="/tmp/smoketest.db"
|
|
|
|
|
RUN <<EOF
|
|
|
|
|
set -eux
|
2025-06-06 02:30:42 +00:00
|
|
|
ulimit -n 65535
|
2025-03-15 04:23:24 +00:00
|
|
|
valgrind \
|
2025-06-06 02:30:42 +00:00
|
|
|
--leak-check=${leak_check} \
|
|
|
|
|
--undef-value-errors=${undef_value_errors} \
|
2025-03-15 04:23:24 +00:00
|
|
|
--exit-on-first-error=yes \
|
|
|
|
|
--error-exitcode=1 \
|
|
|
|
|
tuwunel \
|
|
|
|
|
-Otest='["smoke"]' \
|
|
|
|
|
-Oserver_name=\"localhost\" \
|
2026-01-16 08:52:57 +00:00
|
|
|
-Odatabase_path=\"${TUWUNEL_DATABASE_PATH}\" \
|
2026-01-29 17:19:44 -05:00
|
|
|
-Odb_pool_max_workers=${db_pool_max_workers} \
|
|
|
|
|
-Oerror_on_unknown_config_opts=true
|
2025-03-15 04:23:24 +00:00
|
|
|
|
|
|
|
|
rm -rf "${TUWUNEL_DATABASE_PATH}"
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
2025-06-06 02:30:42 +00:00
|
|
|
FROM input AS smoke-perf
|
|
|
|
|
COPY --link --from=input . .
|
2025-03-15 04:23:24 +00:00
|
|
|
ENV TUWUNEL_LOG="error"
|
|
|
|
|
ENV TUWUNEL_DATABASE_PATH="/tmp/smoketest.db"
|
|
|
|
|
RUN <<EOF
|
|
|
|
|
set -eux
|
|
|
|
|
perf stat \
|
|
|
|
|
-j \
|
|
|
|
|
-ddd \
|
|
|
|
|
tuwunel \
|
|
|
|
|
-Otest='["smoke"]' \
|
|
|
|
|
-Oserver_name=\"localhost\" \
|
2026-01-29 17:19:44 -05:00
|
|
|
-Odatabase_path=\"${TUWUNEL_DATABASE_PATH}\" \
|
|
|
|
|
-Oerror_on_unknown_config_opts=true
|
2025-03-15 04:23:24 +00:00
|
|
|
|
|
|
|
|
rm -rf "${TUWUNEL_DATABASE_PATH}"
|
|
|
|
|
EOF
|