diff --git a/compiler/tests/30_openram_back_end_test.py b/compiler/tests/30_openram_back_end_test.py index 342d44b6..f88f5670 100755 --- a/compiler/tests/30_openram_back_end_test.py +++ b/compiler/tests/30_openram_back_end_test.py @@ -53,21 +53,27 @@ class openram_back_end_test(openram_test): else: exe_name = "coverage run -p {0}/openram.py ".format(OPENRAM_HOME) config_name = "{0}/tests/configs/config_back_end.py".format(OPENRAM_HOME) - cmd = "{0} -n -o {1} -p {2} {3} {4} 2>&1 > {5}/output.log".format(exe_name, - out_file, - out_path, - options, - config_name, - out_path) + cmd = "{0} -o {1} -p {2} {3} {4} 2>&1 > {5}/output.log".format(exe_name, + out_file, + out_path, + options, + config_name, + out_path) debug.info(1, cmd) os.system(cmd) # assert an error until we actually check a resul - for extension in ["gds", "v", "lef", "sp"]: - filename = "{0}/{1}.{2}".format(out_path, out_file, extension) + for extension in ["gds", "v", "lef", "sp", "lvs.sp"]: + filename = "{0}{1}.{2}".format(out_path, out_file, extension) debug.info(1, "Checking for file: " + filename) self.assertEqual(os.path.exists(filename), True) + # check if the auxiliary scripts were created + for out_file in ["run_drc.sh", "run_lvs.sh"]: + filename = "{0}{1}".format(out_path, out_file) + debug.info(1, "Checking for file: " + filename) + self.assertEqual(os.path.exists(filename), True) + # Make sure there is any .lib file import glob files = glob.glob('{0}/*.lib'.format(out_path)) @@ -79,7 +85,7 @@ class openram_back_end_test(openram_test): self.assertTrue(len(datasheets)>0) # 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") output = output_log.read() output_log.close() self.assertEqual(len(re.findall('ERROR', output)), 0) diff --git a/compiler/tests/configs/config_back_end.py b/compiler/tests/configs/config_back_end.py index 3ba6492e..b80073fc 100644 --- a/compiler/tests/configs/config_back_end.py +++ b/compiler/tests/configs/config_back_end.py @@ -12,9 +12,7 @@ num_words = 16 tech_name = OPTS.tech_name nominal_corner_only = True -route_supplies = True check_lvsdrc = True -inline_lvsdrc = True -analytical_delay = False +spice_name = "ngspice"