@@ -21,7 +21,7 @@ for f in "$@"; do
2121 [ " ${ec} " -eq 0 ] || exit " ${ec} "
2222done
2323
24- # Make sure all internal library functions have tests exercising them:
24+ echo Make sure all internal library functions have tests exercising them
2525grep ' ^/\* FUNCTION:' ../* /library/* | cut -f3 -d" " | sort -u > __functions
2626
2727# Some functions are not expected to have tests:
@@ -62,7 +62,7 @@ perl -p -i -e 's/^__vfprintf_chk\n//' __functions # vfprintf-01/__vfprintf_chk.d
6262
6363# Some functions are covered by tests in other folders:
6464perl -p -i -e ' s/^__spawned_thread\n//' __functions # any pthread_create tests
65- perl -p -i -e ' s/^__builtin_ffsl?l?\n//' __functions # cbmc/__builtin_ffs-01
65+ # perl -p -i -e 's/^__builtin_ffsl?l?\n//' __functions # cbmc/__builtin_ffs-01
6666perl -p -i -e ' s/^__builtin_[su]addl?l?_overflow\n//' __functions # cbmc/gcc_builtin_add_overflow
6767perl -p -i -e ' s/^__builtin_[su]mull?l?_overflow\n//' __functions # cbmc/gcc_builtin_mul_overflow
6868perl -p -i -e ' s/^__builtin_[su]subl?l?_overflow\n//' __functions # cbmc/gcc_builtin_sub_overflow
@@ -82,13 +82,14 @@ perl -p -i -e 's/^_mm_setr_epi(16|32)\n//' __functions # cbmc/SIMD1
8282perl -p -i -e ' s/^_mm_setr_pi16\n//' __functions # cbmc/SIMD1
8383perl -p -i -e ' s/^_mm_subs_ep[iu]16\n//' __functions # cbmc/SIMD1
8484
85- ls ../../regression/cbmc-library/ | grep -- - | cut -f1 -d- | sort -u > __tests
85+ ls ../../regression/cbmc-library/ | grep -- -0 | cut -f1 -d- | sort -u > __tests
8686diff -u __tests __functions
8787ec=" ${?} "
88- rm __functions __tests
8988if [ $ec != 0 ]; then
9089 echo " Tests and library functions don't match."
9190 echo " Lines prefixed with - are tests not matching any library function."
9291 echo " Lines prefixed with + are functions lacking a test."
92+ else
93+ rm __functions __tests
9394fi
9495exit " ${ec} "
0 commit comments