diff options
| author | Albert Magyar | 2019-07-25 13:49:13 -0700 |
|---|---|---|
| committer | GitHub | 2019-07-25 13:49:13 -0700 |
| commit | 30bff5f8b627001f5ad220404e33cd087f463ed8 (patch) | |
| tree | 4024114a521e023e912693067a53322dd243b9c6 /src/test | |
| parent | 0512b6c719edca8a19084175e95141ab972aac76 (diff) | |
Allow name of blackbox resource .f file to change from static value (#1129)
* Allow name of blackbox resource .f file to change from static value
* Restore fileListName as a deprecated def per Jack's feedback
* Support both local and absolute paths for .f resource files
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/scala/firrtlTests/transforms/BlackBoxSourceHelperSpec.scala (renamed from src/test/scala/firrtlTests/transforms/BlacklBoxSourceHelperSpec.scala) | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/scala/firrtlTests/transforms/BlacklBoxSourceHelperSpec.scala b/src/test/scala/firrtlTests/transforms/BlackBoxSourceHelperSpec.scala index b7ecc37a..089e837a 100644 --- a/src/test/scala/firrtlTests/transforms/BlacklBoxSourceHelperSpec.scala +++ b/src/test/scala/firrtlTests/transforms/BlackBoxSourceHelperSpec.scala @@ -60,7 +60,7 @@ class BlacklBoxSourceHelperTransformSpec extends LowTransformSpec { execute(input, output, annos) val module = new java.io.File("test_run_dir/AdderExtModule.v") - val fileList = new java.io.File(s"test_run_dir/${BlackBoxSourceHelper.fileListName}") + val fileList = new java.io.File(s"test_run_dir/${BlackBoxSourceHelper.defaultFileListName}") module.exists should be (true) fileList.exists should be (true) @@ -79,7 +79,7 @@ class BlacklBoxSourceHelperTransformSpec extends LowTransformSpec { execute(input, output, annos) val module = new java.io.File("test_run_dir/AdderExtModule.v") - val fileList = new java.io.File(s"test_run_dir/${BlackBoxSourceHelper.fileListName}") + val fileList = new java.io.File(s"test_run_dir/${BlackBoxSourceHelper.defaultFileListName}") module.exists should be (true) fileList.exists should be (true) @@ -98,7 +98,7 @@ class BlacklBoxSourceHelperTransformSpec extends LowTransformSpec { execute(input, output, annos) new java.io.File("test_run_dir/AdderExtModule.v").exists should be (true) - new java.io.File(s"test_run_dir/${BlackBoxSourceHelper.fileListName}").exists should be (true) + new java.io.File(s"test_run_dir/${BlackBoxSourceHelper.defaultFileListName}").exists should be (true) } "verilog compiler" should "have BlackBoxSourceHelper transform" in { @@ -130,7 +130,7 @@ class BlacklBoxSourceHelperTransformSpec extends LowTransformSpec { new java.io.File("test_run_dir/" + n).exists should be (true) // but our file list should not include the verilog header file. - val fileListFile = new java.io.File(s"test_run_dir/${BlackBoxSourceHelper.fileListName}") + val fileListFile = new java.io.File(s"test_run_dir/${BlackBoxSourceHelper.defaultFileListName}") fileListFile.exists should be (true) val fileListFileSource = io.Source.fromFile(fileListFile) val fileList = fileListFileSource.getLines.mkString |
