diff --git a/tests/scripts/check-names.sh b/tests/scripts/check-names.sh index f18a162cc..a74950159 100755 --- a/tests/scripts/check-names.sh +++ b/tests/scripts/check-names.sh @@ -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 diff --git a/tests/scripts/whitelist b/tests/scripts/whitelist new file mode 100644 index 000000000..99c406096 --- /dev/null +++ b/tests/scripts/whitelist @@ -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