@@ -22,7 +22,7 @@ for f in "$@"; do
22
22
[ " ${ec} " -eq 0 ] || exit " ${ec} "
23
23
done
24
24
25
- # Make sure all internal library functions have tests exercising them:
25
+ echo Make sure all internal library functions have tests exercising them
26
26
grep ' ^/\* FUNCTION:' ../* /library/* | cut -f3 -d" " | sort -u > __functions
27
27
28
28
# Some functions are not expected to have tests:
@@ -81,7 +81,7 @@ perl -p -i -e 's/^__vfprintf_chk\n//' __functions # vfprintf-01/__vfprintf_chk.d
81
81
82
82
# Some functions are covered by tests in other folders:
83
83
perl -p -i -e ' s/^__spawned_thread\n//' __functions # any pthread_create tests
84
- perl -p -i -e ' s/^__builtin_ffsl?l?\n//' __functions # cbmc/__builtin_ffs-01
84
+ # perl -p -i -e 's/^__builtin_ffsl?l?\n//' __functions # cbmc/__builtin_ffs-01
85
85
perl -p -i -e ' s/^__builtin_[su]addl?l?_overflow\n//' __functions # cbmc/gcc_builtin_add_overflow
86
86
perl -p -i -e ' s/^__builtin_[su]mull?l?_overflow\n//' __functions # cbmc/gcc_builtin_mul_overflow
87
87
perl -p -i -e ' s/^__builtin_[su]subl?l?_overflow\n//' __functions # cbmc/gcc_builtin_sub_overflow
@@ -101,13 +101,14 @@ perl -p -i -e 's/^_mm_setr_epi(16|32)\n//' __functions # cbmc/SIMD1
101
101
perl -p -i -e ' s/^_mm_setr_pi16\n//' __functions # cbmc/SIMD1
102
102
perl -p -i -e ' s/^_mm_subs_ep[iu]16\n//' __functions # cbmc/SIMD1
103
103
104
- ls ../../regression/cbmc-library/ | grep -- - | cut -f1 -d- | sort -u > __tests
104
+ ls ../../regression/cbmc-library/ | grep -- -0 | cut -f1 -d- | sort -u > __tests
105
105
diff -u __tests __functions
106
106
ec=" ${?} "
107
- rm __functions __tests
108
107
if [ $ec != 0 ]; then
109
108
echo " Tests and library functions don't match."
110
109
echo " Lines prefixed with - are tests not matching any library function."
111
110
echo " Lines prefixed with + are functions lacking a test."
111
+ else
112
+ rm __functions __tests
112
113
fi
113
114
exit " ${ec} "
0 commit comments