@@ -21,7 +21,7 @@ for f in "$@"; do
21
21
[ " ${ec} " -eq 0 ] || exit " ${ec} "
22
22
done
23
23
24
- # Make sure all internal library functions have tests exercising them:
24
+ echo Make sure all internal library functions have tests exercising them
25
25
grep ' ^/\* FUNCTION:' ../* /library/* | cut -f3 -d" " | sort -u > __functions
26
26
27
27
# 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
62
62
63
63
# Some functions are covered by tests in other folders:
64
64
perl -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
66
66
perl -p -i -e ' s/^__builtin_[su]addl?l?_overflow\n//' __functions # cbmc/gcc_builtin_add_overflow
67
67
perl -p -i -e ' s/^__builtin_[su]mull?l?_overflow\n//' __functions # cbmc/gcc_builtin_mul_overflow
68
68
perl -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
82
82
perl -p -i -e ' s/^_mm_setr_pi16\n//' __functions # cbmc/SIMD1
83
83
perl -p -i -e ' s/^_mm_subs_ep[iu]16\n//' __functions # cbmc/SIMD1
84
84
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
86
86
diff -u __tests __functions
87
87
ec=" ${?} "
88
- rm __functions __tests
89
88
if [ $ec != 0 ]; then
90
89
echo " Tests and library functions don't match."
91
90
echo " Lines prefixed with - are tests not matching any library function."
92
91
echo " Lines prefixed with + are functions lacking a test."
92
+ else
93
+ rm __functions __tests
93
94
fi
94
95
exit " ${ec} "
0 commit comments