Updating find() unit test for new scpath approach
- scroot is set to dir of core.py
- flows installed inside that dir
@@ -9,12 +9,14 @@ if __name__ != "__main__":
def test_find():
chip = siliconcompiler.Chip()
- os.environ['SCDIR'] = 'siliconcompiler'
- os.environ['TOOLDIR'] = 'verilator'
- filepath = chip.find("$SUBDIR/tools/$LEAF/")
-
- assert (os.path.isdir(filepath))
+ chip.set('scpath', 'examples/sclib')
+ error = 0
+ if not chip.find("flows/asicflow.py"):
+ error = 1
+ if not chip.find("foundries/freepdk45.py"):
+ error = 1
+ assert not error
#########################
if __name__ == "__main__":
