test: print the usage from the symbols-leak-test

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2022-11-22 13:59:09 +10:00 committed by José Expósito
parent 5db44d9b68
commit 2f3e943e14

View file

@ -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_.*' | \