mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-28 06:10:06 +01:00
test: print the usage from the symbols-leak-test
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
5db44d9b68
commit
2f3e943e14
1 changed files with 7 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# simple check for exported symbols
|
# simple check for exported symbols
|
||||||
#
|
#
|
||||||
|
|
@ -9,6 +9,12 @@ shift
|
||||||
srcdir="$1"
|
srcdir="$1"
|
||||||
shift
|
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 \
|
diff -a -u \
|
||||||
<(cat "$mapfile" | \
|
<(cat "$mapfile" | \
|
||||||
grep '^\s\+libinput_.*' | \
|
grep '^\s\+libinput_.*' | \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue