mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-27 05:53:49 +02:00
Fix check-names.sh
This commit is contained in:
@@ -26,10 +26,11 @@ tests/scripts/list-symbols.sh
|
||||
FAIL=0
|
||||
|
||||
printf "\nExported symbols declared in header: "
|
||||
diff exported-symbols identifiers | sed -n -e 's/^< //p' > undeclared
|
||||
UNDECLARED=$(diff exported-symbols identifiers | sed -n -e 's/^< //p') > undeclared
|
||||
|
||||
FILTERED=$( diff tests/scripts/whitelist undeclared | sed -n -e 's/^< //p')
|
||||
|
||||
if [ "x$UNDECLARED" != "x" ]; then
|
||||
if [ "x$FILTERED" = "x" ]; then
|
||||
echo "PASS"
|
||||
else
|
||||
@@ -37,6 +38,9 @@ else
|
||||
echo "$FILTERED"
|
||||
FAIL=1
|
||||
fi
|
||||
else
|
||||
echo "PASS"
|
||||
fi
|
||||
|
||||
diff macros identifiers | sed -n -e 's/< //p' > actual-macros
|
||||
|
||||
|
||||
Reference in New Issue
Block a user