From: Jason Ish Date: Sun, 1 Oct 2017 10:28:07 +0000 (+0100) Subject: template: script to check the setup scripts X-Git-Tag: suricata-4.0.1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40a1a972d6567b29ae2c3f8d24b261e3a97a783b;p=thirdparty%2Fsuricata.git template: script to check the setup scripts This script applies the setup scripts one by one followed by a make distcheck. --- diff --git a/scripts/check-setup.sh b/scripts/check-setup.sh new file mode 100755 index 0000000000..11cb494e5d --- /dev/null +++ b/scripts/check-setup.sh @@ -0,0 +1,36 @@ +#! /bin/sh + +set -e + +# Create temp. directory and copy in sources. +tmpdir=$(mktemp -d) +trap "rm -rf ${tmpdir}" EXIT + +(cd .. && tar cf - $(git ls-files)) | (cd ${tmpdir} && tar xf -) + +if [ -e ../libhtp ]; then + (cd ../libhtp && git archive --format=tar --prefix=libhtp/ HEAD) | \ + (cd ${tmpdir} && tar xvf -) +else + echo "error: this script required bundled libhtp..." + exit 1 +fi + +cd ${tmpdir} + +# Do initial build. +./autogen.sh +./configure + +./scripts/setup-app-layer.sh Echo + +./scripts/setup-app-layer-detect.sh Echo request + +./scripts/setup-app-layer-logger.sh Echo + +./scripts/setup-decoder.sh Udplite + +./scripts/setup-simple-detect.sh simpledetect + +make distcheck +