Skip to content

Commit

Permalink
Enable all compiled tests on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed May 15, 2018
1 parent b5062af commit d9e3f04
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions tests/tools/compiled.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
import os

class illegal_insn(testbase.KcovTestCase):
@unittest.skipIf(not sys.platform.startswith("linux"), "Linux-only")
@unittest.skipIf(sys.platform.startswith("darwin"), "Not for OSX")
def runTest(self):
self.setUp()
rv, output = self.do(testbase.kcov + " " + testbase.outbase + "/kcov " + testbase.testbuild + "/illegal-insn", False)
assert rv != 0
assert output.find("Illegal instructions are") != -1

class fork_no_wait(testbase.KcovTestCase):
@unittest.skipIf(not sys.platform.startswith("linux"), "Linux-only")
@unittest.skipIf(sys.platform.startswith("darwin"), "Not for OSX")
def runTest(self):
self.setUp()
noKcovRv,o = self.do(testbase.testbuild + "/fork_no_wait", False)
Expand All @@ -40,12 +40,12 @@ def doTest(self, binary):
assert parse_cobertura.hitsPerLine(dom, "fork.c", 46) >= 1

class fork_64(ForkBase):
@unittest.skipIf(not sys.platform.startswith("linux"), "Linux-only")
@unittest.skipIf(sys.platform.startswith("darwin"), "Not for OSX")
def runTest(self):
self.doTest("fork")

class fork_32(ForkBase):
@unittest.skipIf(not sys.platform.startswith("linux"), "Linux-only")
@unittest.skipIf(sys.platform.startswith("darwin"), "Not for OSX")
def runTest(self):
self.doTest("fork-32")

Expand All @@ -71,7 +71,7 @@ def runTest(self):
assert parse_cobertura.hitsPerLine(dom, "solib.c", 5) == 1

class shared_library_skip(testbase.KcovTestCase):
@unittest.skipIf(not sys.platform.startswith("linux"), "Linux-only, Issue #157")
@unittest.skipIf(sys.platform.startswith("darwin"), "Not for OSX, Issue #157")
def runTest(self):
self.setUp()
rv,o = self.do(testbase.kcov + " --skip-solibs " + testbase.outbase + "/kcov " + testbase.testbuild + "/shared_library_test", False)
Expand All @@ -83,7 +83,7 @@ def runTest(self):


class shared_library_filter_out(testbase.KcovTestCase):
@unittest.skipIf(not sys.platform.startswith("linux"), "Linux-only, Issue #157")
@unittest.skipIf(sys.platform.startswith("darwin"), "Not for OSX, Issue #157")
def runTest(self):
self.setUp()
rv,o = self.do(testbase.kcov + " --exclude-pattern=solib " + testbase.outbase + "/kcov " + testbase.testbuild + "/shared_library_test", False)
Expand All @@ -95,7 +95,7 @@ def runTest(self):


class shared_library_accumulate(testbase.KcovTestCase):
@unittest.skipIf(not sys.platform.startswith("linux"), "Linux-only, Issue #157")
@unittest.skipIf(sys.platform.startswith("darwin"), "Not for OSX, Issue #157")
def runTest(self):
self.setUp()
rv,o = self.do(testbase.kcov + " " + testbase.outbase + "/kcov " + testbase.testbuild + "/shared_library_test 5", False)
Expand Down Expand Up @@ -201,7 +201,7 @@ def runTest(self):
assert parse_cobertura.hitsPerLine(dom, "test-global-ctors.cc", 4) >= 1

class daemon_wait_for_last_child(testbase.KcovTestCase):
@unittest.skipIf(not sys.platform.startswith("linux"), "Linux-only, Issue #158")
@unittest.skipIf(sys.platform.startswith("darwin"), "Not for OSX, Issue #158")
def runTest(self):
self.setUp()
noKcovRv,o = self.do(testbase.testbuild + "/test_daemon", False)
Expand Down Expand Up @@ -245,7 +245,7 @@ def doTest(self):
assert parse_cobertura.hitsPerLine(dom, "test-signals.c", 84) == 1

class signals(SignalsBase):
@unittest.skipIf(not sys.platform.startswith("linux"), "Linux-only, Issue #158")
@unittest.skipIf(sys.platform.startswith("darwin"), "Not for OSX, Issue #158")

def runTest(self):
self.m_self = ""
Expand All @@ -268,7 +268,7 @@ def runTest(self):

class collect_and_report_only(testbase.KcovTestCase):
# Cannot work with combined Engine / Parser
@unittest.skipIf(not sys.platform.startswith("linux"), "Linux-only")
@unittest.skipIf(sys.platform.startswith("darwin"), "Not for OSX")
def runTest(self):
self.setUp()
noKcovRv,o = self.do(testbase.testbuild + "/main-tests ", False)
Expand All @@ -295,7 +295,7 @@ def runTest(self):
assert o.find("SUCCESS") != -1

class attach_process_with_threads(testbase.KcovTestCase):
@unittest.skipIf(not sys.platform.startswith("linux"), "Linux-only")
@unittest.skipIf(sys.platform.startswith("darwin"), "Not for OSX")
def runTest(self):
self.setUp()
rv,o = self.do(testbase.sources + "/tests/daemon/test-script.sh " + testbase.kcov + " " + testbase.outbase + "/kcov " + testbase.testbuild + "/issue31", False)
Expand All @@ -305,7 +305,7 @@ def runTest(self):
assert parse_cobertura.hitsPerLine(dom, "test-issue31.cc", 9) == 0

class attach_process_with_threads_creates_threads(testbase.KcovTestCase):
@unittest.skipIf(not sys.platform.startswith("linux"), "Linux-only")
@unittest.skipIf(sys.platform.startswith("darwin"), "Not for OSX")
def runTest(self):
self.setUp()
rv,o = self.do(testbase.sources + "/tests/daemon/test-script.sh " + testbase.kcov + " " + testbase.outbase + "/kcov " + testbase.testbuild + "/thread-test", False)
Expand Down Expand Up @@ -334,7 +334,7 @@ def runTest(self):


class debuglink(testbase.KcovTestCase):
@unittest.skipIf(not sys.platform.startswith("linux"), "Linux-only")
@unittest.skipIf(sys.platform.startswith("darwin"), "Not for OSX")
def runTest(self):
self.setUp()
os.system("rm -rf %s/.debug" % (testbase.outbase))
Expand Down Expand Up @@ -435,7 +435,7 @@ def runTest(self):
assert parse_cobertura.hitsPerLine(dom, "solib.c", 12) == 0

class daemon_no_wait_for_last_child(testbase.KcovTestCase):
@unittest.skipIf(not sys.platform.startswith("linux"), "Linux-only")
@unittest.skipIf(sys.platform.startswith("darwin"), "Not for OSX")
@unittest.expectedFailure
def runTest(self):
self.setUp()
Expand All @@ -453,7 +453,7 @@ def runTest(self):


class address_sanitizer_coverage(testbase.KcovTestCase):
@unittest.skipIf(not sys.platform.startswith("linux"), "Linux-only")
@unittest.skipIf(sys.platform.startswith("darwin"), "Not for OSX")
@unittest.expectedFailure
def runTest(self):
self.setUp()
Expand Down

0 comments on commit d9e3f04

Please sign in to comment.