1
0
mirror of https://github.com/pumpitupdev/pumptools.git synced 2024-11-24 07:00:09 +01:00

Add Dockerfile.test for running pumptool's tests in a container

This commit is contained in:
icex2 2021-01-17 00:40:32 +01:00
parent 6c944ab9a0
commit d261a905b3
2 changed files with 13 additions and 0 deletions

9
Dockerfile.test Normal file
View File

@ -0,0 +1,9 @@
FROM pumptools:build
LABEL description="Test environment for pumptools"
WORKDIR /pumptools
COPY scripts/run-tests.sh scripts/run-tests.sh
RUN make test

View File

@ -23,6 +23,7 @@ usage:
$(V)echo " clean: Clean up all build output"
$(V)echo " test: Run pumptools's unit tests"
$(V)echo " build-docker: Build the pumptools project in a docker container"
$(V)echo " test-docker: Run pumptools's unit tests in a docker container"
$(V)echo " git-version: Generate a text file with the current git revision"
$(V)echo " libc-version: Generate a text file with the libc version available"
$(V)echo " clang-format: Apply code style defined in .clang-format style to all code in src/"
@ -51,6 +52,9 @@ build-docker:
$(V)docker rm -f pumptools-build
$(V)echo "Build output of docker build can be found in build/docker subfolder."
test-docker:
$(V)docker build -f Dockerfile.test -t pumptools:test .
# Generate a version file to identify the build
git-version:
$(V)mkdir -p $(BUILDDIR)