From: Leandro Lucarella Date: Tue, 9 Dec 2008 19:21:48 +0000 (-0200) Subject: Allow using just 'mu_test' as a test case name X-Git-Tag: 1.0~12 X-Git-Url: https://git.llucax.com/software/mutest.git/commitdiff_plain/ca131d1f12146c2b2ff563e05468b4a0471f61b0?ds=inline Allow using just 'mu_test' as a test case name This could be useful for very trivial proyects with just one test case. --- diff --git a/mkmutest b/mkmutest index 5e8db82..1bfec88 100755 --- a/mkmutest +++ b/mkmutest @@ -28,7 +28,7 @@ do echo -e '\tmutest_suite_name = "'"$suite"'";' echo -e '\tmu_print(MU_SUITE, "\\nRunning suite \"'"$suite"'\"\\n");' for symbol in `nm -p "$file" \ - | egrep '^[[:xdigit:]]{8} T mu_test_\w+$' \ + | egrep '^[[:xdigit:]]{8} T mu_test\w*$' \ | cut -c12-` do echo -e "\tmu_run_case($symbol);" diff --git a/py/mutest b/py/mutest index 707dc00..4945552 100755 --- a/py/mutest +++ b/py/mutest @@ -124,7 +124,7 @@ class TestSuite (object): return r -case_names_re = re.compile(r'[0-9a-f]{8} T (mu_test_\w+)', re.I) +case_names_re = re.compile(r'[0-9a-f]{8} T (mu_test\w*)', re.I) def get_case_names(so_name): proc = Popen(['nm', '-p', so_name], stdout=PIPE)