mirror of https://github.com/VLSIDA/OpenRAM.git
updated test 30 to dev version
This commit is contained in:
parent
c869c7e870
commit
71bb1bb9f1
|
|
@ -36,12 +36,9 @@ class openram_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
|
||||||
opts = ""
|
verbosity = ""
|
||||||
for i in range(OPTS.debug_level):
|
for i in range(OPTS.debug_level):
|
||||||
opts += " -v"
|
verbosity += " -v"
|
||||||
# keep the temp directory around
|
|
||||||
if not OPTS.purge_temp:
|
|
||||||
opts += " -d"
|
|
||||||
|
|
||||||
|
|
||||||
OPENRAM_HOME = os.path.abspath(os.environ.get("OPENRAM_HOME"))
|
OPENRAM_HOME = os.path.abspath(os.environ.get("OPENRAM_HOME"))
|
||||||
|
|
@ -56,9 +53,6 @@ class openram_test(openram_test):
|
||||||
debug.info(1, cmd)
|
debug.info(1, cmd)
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
||||||
# check that the output path was created
|
|
||||||
self.assertEqual(os.path.exists(out_path),True)
|
|
||||||
|
|
||||||
# assert an error until we actually check a resul
|
# assert an error until we actually check a resul
|
||||||
for extension in ["gds", "v", "lef", "sp"]:
|
for extension in ["gds", "v", "lef", "sp"]:
|
||||||
filename = "{0}/{1}.{2}".format(out_path,out_file,extension)
|
filename = "{0}/{1}.{2}".format(out_path,out_file,extension)
|
||||||
|
|
@ -71,8 +65,9 @@ class openram_test(openram_test):
|
||||||
self.assertTrue(len(files)>0)
|
self.assertTrue(len(files)>0)
|
||||||
|
|
||||||
# Make sure there is any .html file
|
# Make sure there is any .html file
|
||||||
datasheets = glob.glob('{0}/*html'.format(out_path))
|
if os.path.exists(out_path):
|
||||||
self.assertTrue(len(datasheets)>0)
|
datasheets = glob.glob('{0}/*html'.format(out_path))
|
||||||
|
self.assertTrue(len(datasheets)>0)
|
||||||
|
|
||||||
# grep any errors from the output
|
# grep any errors from the output
|
||||||
output_log = open("{0}/output.log".format(out_path),"r")
|
output_log = open("{0}/output.log".format(out_path),"r")
|
||||||
|
|
@ -82,10 +77,10 @@ class openram_test(openram_test):
|
||||||
self.assertEqual(len(re.findall('WARNING',output)),0)
|
self.assertEqual(len(re.findall('WARNING',output)),0)
|
||||||
|
|
||||||
|
|
||||||
# now clean up the output directory (or preserve if specified to preserve temp dirs)
|
# now clean up the directory
|
||||||
if os.path.exists(out_path) and OPTS.purge_temp:
|
if os.path.exists(out_path):
|
||||||
shutil.rmtree(out_path, ignore_errors=True)
|
shutil.rmtree(out_path, ignore_errors=True)
|
||||||
self.assertEqual(os.path.exists(out_path),False)
|
self.assertEqual(os.path.exists(out_path),False)
|
||||||
|
|
||||||
globals.end_openram()
|
globals.end_openram()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue