From 1907a90783165d13a53f600a82cd00dbb75a10ed Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 1 May 2023 17:40:33 +0200 Subject: add a couple of the most basic tests using Pytest I'm super-unsure about this; I don't really like all the magic, but we'll see, I guess? --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 47312bf..e0eb0e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ ARG install_dir="/app/install" FROM base AS builder -RUN build_deps='bash bsd-compat-headers build-base clang cmake libgit2-dev python3 sqlite-dev' && \ +RUN build_deps='bash bsd-compat-headers build-base clang cmake libgit2-dev py3-pytest sqlite-dev' && \ apk add -q --no-cache $build_deps ARG C_COMPILER=clang @@ -21,7 +21,8 @@ RUN cd -- "$src_dir" && \ "C_COMPILER=$C_COMPILER" \ "BUILD_TYPE=$BUILD_TYPE" \ "DEFAULT_HOST=$DEFAULT_HOST" \ - "INSTALL_PREFIX=$install_dir" + "INSTALL_PREFIX=$install_dir" && \ + make test BUILD_TYPE="$BUILD_TYPE" FROM base -- cgit v1.2.3