This is the mail archive of the frysk@sourceware.org mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Don't skip tests with TestLib/Case/Bed in the name


Hi,

I was working on some code and didn't see one of my test cases fail or
pass after I changed something fundamental. Our build system filters out
any tests that contains TestLib/Case/Bed in its class name. Which
happens to be the case for frysk.stack.TestLibFunctionStepFrame. With
the following patch only classes with explicitly that name get excluded:

frysk-common/ChangeLog
2008-04-18  Mark Wielaard  <mwielaard@redhat.com>

        * Makefile.rules ($(GEN_SOURCENAME)/JUnitTests.java):
        Only exclude classes that are exactly named TestLib, TestCase or
        TestBed.

Committed,

Mark

diff --git a/frysk-common/Makefile.rules b/frysk-common/Makefile.rules
index 4a90e3a..d3ebe1f 100644
--- a/frysk-common/Makefile.rules
+++ b/frysk-common/Makefile.rules
@@ -354,9 +354,9 @@ $(GEN_SOURCENAME)/JUnitTests.java: files-java.list
                files-java.list \
        | sed -e "s|$(srcdir)/||" -e "s|^./||" \
        | grep -v \
-               -e 'TestLib' \
-               -e 'TestCase' \
-               -e 'TestBed' \
+               -e '\/TestLib\.java$$' \
+               -e '\/TestCase\.java$$' \
+               -e '\/TestBed\.java$$' \
        | sed \
                -e 's,/,.,g' \
                -e 's,.java$$,.class,' \



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]