]> git.llucax.com Git - software/mutest.git/commitdiff
Allow using just 'mu_test' as a test case name
authorLeandro Lucarella <llucarella@integratech.com.ar>
Tue, 9 Dec 2008 19:21:48 +0000 (17:21 -0200)
committerLeandro Lucarella <llucarella@integratech.com.ar>
Fri, 12 Dec 2008 12:55:43 +0000 (10:55 -0200)
This could be useful for very trivial proyects with just one test case.

mkmutest
py/mutest

index 5e8db827ed26e98594aff3325540603d5fe229fe..1bfec88a20850dae61d1bc18528e93838100b84e 100755 (executable)
--- 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);"
index 707dc00d9813e6d0935ac01e329bde65625824a0..4945552faa3298a1cde8a5c05d042cb6487175c5 100755 (executable)
--- 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)