mirror of https://github.com/VLSIDA/OpenRAM.git
Enable spice and don't purge option to test 30
This commit is contained in:
parent
0ca94b3e28
commit
c5568e86fe
|
|
@ -38,9 +38,12 @@ class openram_back_end_test(openram_test):
|
||||||
os.chmod(out_path, 0o0750)
|
os.chmod(out_path, 0o0750)
|
||||||
|
|
||||||
# specify the same verbosity for the system call
|
# specify the same verbosity for the system call
|
||||||
verbosity = ""
|
options = ""
|
||||||
for i in range(OPTS.debug_level):
|
for i in range(OPTS.debug_level):
|
||||||
verbosity += " -v"
|
options += " -v"
|
||||||
|
|
||||||
|
if OPTS.spice_name:
|
||||||
|
options += " -s {}".format(OPTS.spice_name)
|
||||||
|
|
||||||
# Always perform code coverage
|
# Always perform code coverage
|
||||||
if OPTS.coverage == 0:
|
if OPTS.coverage == 0:
|
||||||
|
|
@ -52,7 +55,7 @@ class openram_back_end_test(openram_test):
|
||||||
cmd = "{0} -n -o {1} -p {2} {3} {4} 2>&1 > {5}/output.log".format(exe_name,
|
cmd = "{0} -n -o {1} -p {2} {3} {4} 2>&1 > {5}/output.log".format(exe_name,
|
||||||
out_file,
|
out_file,
|
||||||
out_path,
|
out_path,
|
||||||
verbosity,
|
options,
|
||||||
config_name,
|
config_name,
|
||||||
out_path)
|
out_path)
|
||||||
debug.info(1, cmd)
|
debug.info(1, cmd)
|
||||||
|
|
@ -83,9 +86,10 @@ class openram_back_end_test(openram_test):
|
||||||
|
|
||||||
|
|
||||||
# now clean up the directory
|
# now clean up the directory
|
||||||
if os.path.exists(out_path):
|
if OPTS.purge_temp:
|
||||||
shutil.rmtree(out_path, ignore_errors=True)
|
if os.path.exists(out_path):
|
||||||
self.assertEqual(os.path.exists(out_path),False)
|
shutil.rmtree(out_path, ignore_errors=True)
|
||||||
|
self.assertEqual(os.path.exists(out_path),False)
|
||||||
|
|
||||||
globals.end_openram()
|
globals.end_openram()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,10 +39,12 @@ class openram_front_end_test(openram_test):
|
||||||
os.chmod(out_path, 0o0750)
|
os.chmod(out_path, 0o0750)
|
||||||
|
|
||||||
# specify the same verbosity for the system call
|
# specify the same verbosity for the system call
|
||||||
verbosity = ""
|
options = ""
|
||||||
for i in range(OPTS.debug_level):
|
for i in range(OPTS.debug_level):
|
||||||
verbosity += " -v"
|
options += " -v"
|
||||||
|
|
||||||
|
if OPTS.spice_name:
|
||||||
|
options += " -s {}".format(OPTS.spice_name)
|
||||||
|
|
||||||
# Always perform code coverage
|
# Always perform code coverage
|
||||||
if OPTS.coverage == 0:
|
if OPTS.coverage == 0:
|
||||||
|
|
@ -54,7 +56,7 @@ class openram_front_end_test(openram_test):
|
||||||
cmd = "{0} -n -o {1} -p {2} {3} {4} 2>&1 > {5}/output.log".format(exe_name,
|
cmd = "{0} -n -o {1} -p {2} {3} {4} 2>&1 > {5}/output.log".format(exe_name,
|
||||||
out_file,
|
out_file,
|
||||||
out_path,
|
out_path,
|
||||||
verbosity,
|
options,
|
||||||
config_name,
|
config_name,
|
||||||
out_path)
|
out_path)
|
||||||
debug.info(1, cmd)
|
debug.info(1, cmd)
|
||||||
|
|
@ -84,10 +86,11 @@ class openram_front_end_test(openram_test):
|
||||||
self.assertEqual(len(re.findall('WARNING',output)),0)
|
self.assertEqual(len(re.findall('WARNING',output)),0)
|
||||||
|
|
||||||
|
|
||||||
# now clean up the directory
|
# now clean up the directory
|
||||||
if os.path.exists(out_path):
|
if OPTS.purge_temp:
|
||||||
shutil.rmtree(out_path, ignore_errors=True)
|
if os.path.exists(out_path):
|
||||||
self.assertEqual(os.path.exists(out_path),False)
|
shutil.rmtree(out_path, ignore_errors=True)
|
||||||
|
self.assertEqual(os.path.exists(out_path),False)
|
||||||
|
|
||||||
globals.end_openram()
|
globals.end_openram()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue