tests: Investigate test failure on bionic

This commit is contained in:
Jakub Jelen 2021-03-16 12:09:27 +01:00 committed by Jakub Jelen
parent 16b7c60fd3
commit d5dea2dd1b
1 changed files with 4 additions and 3 deletions

View File

@ -1,13 +1,14 @@
#!/bin/bash
SOURCE_PATH=../
SOURCE_PATH=..
EXPORTS=`find "${SOURCE_PATH}" -name "*exports"`
ERRORS=0
for E in $EXPORTS; do
NUM_DUPES=`sort $E | uniq -d | wc -l`
DUPES=`sort $E | uniq -d`
NUM_DUPES=`echo -n "$DUPES" | wc -l`
if [[ "$NUM_DUPES" != 0 ]]; then
echo "There are duplicate symbols in '$E'"
echo "There are $NUM_DUPES duplicate symbols in '$E': $DUPES"
ERRORS=1
fi
done