From d8cb9c2a8b207ff8ef8e8bd7f3012fd401c049e0 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Tue, 12 Jan 2016 21:12:37 +0100 Subject: test: add make check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can now test all the protocol files by running make check (or distcheck) which will pass them through the scanner. Signed-off-by: Derek Foreman Reviewed-by: Quentin Glidic Acked-by: Peter Hutterer Acked-by: Jonas Ã…dahl --- tests/scan.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 tests/scan.sh (limited to 'tests') diff --git a/tests/scan.sh b/tests/scan.sh new file mode 100755 index 0000000..15dd39f --- /dev/null +++ b/tests/scan.sh @@ -0,0 +1,10 @@ +#!/bin/sh -e + +if [ "x$SCANNER" = "x" ] ; then + echo "No scanner present, test skipped." 1>&2 + exit 77 +fi + +$SCANNER client-header $1 /dev/null +$SCANNER server-header $1 /dev/null +$SCANNER code $1 /dev/null -- cgit v1.2.3