Add whitelist for uECC files for check-names.sh

Whitelist currently includes the unmatching symbols from uECC files.
This is now specific for the baremetal branch.
This commit is contained in:
Jarno Lamsa 2019-04-26 16:22:10 +03:00
parent 95de220ade
commit 8557fc9220
2 changed files with 45 additions and 4 deletions

View file

@ -26,12 +26,15 @@ tests/scripts/list-symbols.sh
FAIL=0
printf "\nExported symbols declared in header: "
UNDECLARED=$( diff exported-symbols identifiers | sed -n -e 's/^< //p' )
if [ "x$UNDECLARED" = "x" ]; then
diff exported-symbols identifiers | sed -n -e 's/^< //p' > undeclared
FILTERED=$( diff tests/scripts/whitelist undeclared | sed -n -e 's/^< //p')
if [ "x$FILTERED" = "x" ]; then
echo "PASS"
else
echo "FAIL"
echo "$UNDECLARED"
echo "$FILTERED"
FAIL=1
fi
@ -84,7 +87,7 @@ fi
printf "\nOverall: "
if [ "$FAIL" -eq 0 ]; then
rm macros actual-macros enum-consts identifiers exported-symbols
rm macros actual-macros enum-consts identifiers exported-symbols undeclared
echo "PASSED"
exit 0
else

38
tests/scripts/whitelist Normal file
View file

@ -0,0 +1,38 @@
EccPoint_compute_public_key
EccPoint_isZero
EccPoint_mult
regularize_k
uECC_compute_public_key
uECC_curve_private_key_size
uECC_curve_public_key_size
uECC_generate_random_int
uECC_get_rng
uECC_make_key
uECC_make_key_with_d
uECC_secp256r1
uECC_set_rng
uECC_shared_secret
uECC_sign
uECC_sign_with_k
uECC_valid_point
uECC_valid_public_key
uECC_verify
uECC_vli_bytesToNative
uECC_vli_clear
uECC_vli_cmp
uECC_vli_cmp_unsafe
uECC_vli_equal
uECC_vli_isZero
uECC_vli_mmod
uECC_vli_modAdd
uECC_vli_modInv
uECC_vli_modMult
uECC_vli_modMult_fast
uECC_vli_modSub
uECC_vli_nativeToBytes
uECC_vli_numBits
uECC_vli_set
uECC_vli_sub
uECC_vli_testBit
vli_mmod_fast_secp256r1
x_side_default