summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-01-12 21:12:37 +0100
committerJonas Ådahl <jadahl@gmail.com>2016-01-14 15:49:00 +0800
commitd8cb9c2a8b207ff8ef8e8bd7f3012fd401c049e0 (patch)
treecc5c69726ce7561ad4fa558576854427940f183a /tests
parenta5585f3de3b4847b611b246526ccfe8c4a1473bb (diff)
test: add make check
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 <derekf@osg.samsung.com> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> Acked-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Jonas Ådahl <jadahl@gmail.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/scan.sh10
1 files changed, 10 insertions, 0 deletions
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