mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
remove unittest main in core tests
This commit is contained in:
parent
b4d2b8a48b
commit
39bf329fa7
@ -280,8 +280,5 @@ class TestCosimulation:
|
||||
buf += " "
|
||||
os.write(wt, to_bytes(buf))
|
||||
|
||||
# def suite():
|
||||
# return unittest.makeSuite(TestCosimulation, 'test')
|
||||
|
||||
if __name__ == "__main__":
|
||||
getattr(TestCosimulation, sys.argv[1])()
|
||||
|
@ -133,4 +133,3 @@ def bench_TristateSignal():
|
||||
|
||||
def test_TristateSignal():
|
||||
Simulation(bench_TristateSignal()).run()
|
||||
|
||||
|
@ -626,7 +626,3 @@ class TestSignalIntbvBounds:
|
||||
pass
|
||||
else:
|
||||
raise AssertionError
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
@ -867,9 +867,3 @@ class TimeZeroEvents(TestCase):
|
||||
s = Signal(1)
|
||||
testBench = self.bench(sig=s, next=0, clause=s.negedge)
|
||||
Simulation(testBench).run(quiet=QUIET)
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
|
@ -207,9 +207,3 @@ class TestInferWaiter:
|
||||
def testGeneral(self):
|
||||
sim = Simulation(self.bench(GeneralFunc, _Waiter))
|
||||
sim.run()
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
|
@ -422,8 +422,3 @@ class TestInferWaiter:
|
||||
def testSignalTuple1(self):
|
||||
sim = Simulation(self.bench(SignalTupleGen1, _SignalTupleWaiter))
|
||||
sim.run()
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
@ -51,4 +51,3 @@ def test_reset():
|
||||
pass
|
||||
except:
|
||||
assert False
|
||||
|
||||
|
@ -96,13 +96,3 @@ class TestBin:
|
||||
assert bin(i, w) == binref(i, w)
|
||||
i = -k - sys.maxsize
|
||||
assert bin(i, w) == binref(i, w)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
@ -249,8 +249,3 @@ class TestConcat:
|
||||
b = intbv(5)
|
||||
with pytest.raises(TypeError):
|
||||
concat(a, b)
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
|
||||
|
@ -82,7 +82,3 @@ class TestEnum:
|
||||
e = copy.deepcopy(t_State.SEARCH)
|
||||
assert e == t_State.SEARCH
|
||||
assert e != t_State.CONFIRM
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
@ -201,7 +201,3 @@ class TestInferWaiter:
|
||||
def testGeneral(self):
|
||||
sim = Simulation(self.bench(GeneralFunc, _Waiter))
|
||||
sim.run()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
@ -74,7 +74,3 @@ class TestInstanceCompilation:
|
||||
assert e.kind == _error.NrOfArgs
|
||||
else:
|
||||
raise AssertionError
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
@ -578,10 +578,3 @@ class TestIntbvCopy:
|
||||
assert n.min == m.min
|
||||
assert n.max == m.max
|
||||
assert len(n) == len(m)
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
|
||||
|
@ -73,7 +73,3 @@ class TestInstances:
|
||||
assert len(i) == 4
|
||||
for e in (D_1, A_1, B_1, C_1):
|
||||
assert e in i
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
@ -75,9 +75,3 @@ class TestModbvWrap:
|
||||
raise AssertionError
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
|
||||
|
@ -262,11 +262,3 @@ class TestIntbvSigned:
|
||||
a = intbv(v, min=lo, max=hi)
|
||||
self.checkInvariants(a)
|
||||
self.checkInvariants(Signal(a))
|
||||
|
||||
|
||||
|
||||
########################################################################
|
||||
# main
|
||||
#
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
@ -179,8 +179,3 @@ class TestTraceSigs:
|
||||
assert path.exists(pbak)
|
||||
assert path.getsize(pbak) == size
|
||||
assert path.getsize(p) < size
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user