From: Leandro Lucarella Date: Mon, 13 Sep 2010 19:40:08 +0000 (-0300) Subject: mkmutest: Fix test case detection for x86_64 X-Git-Url: https://git.llucax.com/software/mutest.git/commitdiff_plain/329624aa75bd02c1ec3c32841ba2493b027b1d45 mkmutest: Fix test case detection for x86_64 When using a 64 bits OS, nm shows the addresses of symbols using 64 bits instead of 32 (of course), so fix the symbol regex to detect those too. --- diff --git a/mkmutest b/mkmutest index 763cc92..8806987 100755 --- a/mkmutest +++ b/mkmutest @@ -34,7 +34,7 @@ for file in "$@" do pr_file=`echo "$file" | sed 's/\"/\\\\\"/g'` suite=`basename "$file" .o | sed 's/\"/\\\\\"/g'` - symbols=`nm "$file" | egrep '^[[:xdigit:]]{8} T mu_\w+$' | cut -c12-` + symbols=`nm "$file" | egrep '^[[:xdigit:]]+ T mu_\w+$' | cut -d' ' -f3` tests=`echo "$symbols" | egrep '^mu_test'` inits=`echo "$symbols" | egrep '^mu_init'` terms=`echo "$symbols" | egrep '^mu_term'`