test: print the usage from the symbols-leak-test
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 22 Nov 2022 03:59:09 +0000 (13:59 +1000)
committerJosé Expósito <jose.exposito89@gmail.com>
Tue, 22 Nov 2022 19:02:03 +0000 (19:02 +0000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/symbols-leak-test

index 7b612f414b9d9b424c6abccce16d2d42be4fc697..1cf0ffafc9ff1a01d59bd46c51fa85d71753a80f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash -e
+#!/bin/bash
 #
 # simple check for exported symbols
 #
@@ -9,6 +9,12 @@ shift
 srcdir="$1"
 shift
 
+if [[ -z "$mapfile" || -z "$srcdir" ]]; then
+       echo "Usage: symbols-leak-test /path/to/mapfile /path/to/libinput/src"
+       exit 2
+fi
+
+set -e
 diff -a -u \
        <(cat "$mapfile" | \
                grep '^\s\+libinput_.*' | \