From: Jason Ish Date: Fri, 8 Dec 2017 22:46:34 +0000 (-0600) Subject: Makefile: docker-test target to run docker tests. X-Git-Tag: 1.0.0b1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4d2ec28283659360602a657b3d2eaf607a39501;p=thirdparty%2Fsuricata-update.git Makefile: docker-test target to run docker tests. --- diff --git a/Makefile b/Makefile index 65d93f3..f65902a 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,15 @@ test: tox integration-test: tox @tox -c tox-integration.ini +docker-test: + @if ! which docker 2>&1 > /dev/null; then \ + echo "error: docker is required to run docker tests"; \ + exit 1; \ + fi + @for test in $(wildcard tests/docker*); do \ + (cd $$test && $(MAKE)); \ + done + clean: find . -name \*.pyc -print0 | xargs -0 rm -f find . -name \*~ -print0 | xargs -0 rm -f