projects
/
soc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
skip test_microwatt.BinaryTestCase.test_binary if file doesn't exist
[soc.git]
/
src
/
soc
/
simple
/
test
/
test_microwatt.py
diff --git
a/src/soc/simple/test/test_microwatt.py
b/src/soc/simple/test/test_microwatt.py
index d7a82b818793e558821bd4d9002d4bd562ba6580..29d6acf63a05e1713c5b1c6b086c85b76af46970 100644
(file)
--- a/
src/soc/simple/test/test_microwatt.py
+++ b/
src/soc/simple/test/test_microwatt.py
@@
-20,6
+20,8
@@
from soc.fu.compunits.test.test_compunit import (check_sim_memory,
from soc.simple.test.test_runner import setup_i_memory
from soc.simple.test.test_runner import setup_i_memory
+from pathlib import Path
+
import sys
sys.setrecursionlimit(10**6)
import sys
sys.setrecursionlimit(10**6)
@@
-36,6
+38,8
@@
class BinaryTestCase(FHDLTestCase):
with Program("1.bin", bigendian) as program:
self.run_tst_program(program)
with Program("1.bin", bigendian) as program:
self.run_tst_program(program)
+ @unittest.skipUnless(Path("hello_world.bin").exists(),
+ "missing hello_world.bin")
def test_binary(self):
with Program("hello_world.bin", bigendian) as program:
self.run_tst_program(program)
def test_binary(self):
with Program("hello_world.bin", bigendian) as program:
self.run_tst_program(program)