-
Notifications
You must be signed in to change notification settings - Fork 177
stale black_box_verilog_files.f may cause test failures #504
Comments
black_box_verilog_files.f
may cause test failures
In general, there's a stale file problem. For Verilator, I'm having tests pass/fail when they should fail/pass b/c things didn't get updated for some reason. If you're going to be running tests, IMO, it might be good just to wipe out the directory the tests will be run in before running things. I'm doing that just so that the tests are consistent w/ my latest Verilog... |
Agreed, but this doesn't play well with |
Anything that uses createTestDirectory gets a fresh directory based on the current time. Any tests using files that are not using that probably should. All of the Execution and Compilation Tests already do. |
The test directory naming conventions and practices assumed that there was some utility to keeping an individual test's work directory the same from run to run. For example, I keep an editor window open on the firrtl output and intellij refreshes it each time I run which helps with debugging sometimes. This is not a critical feature but it came from listening to complaints from people either not knowing or not have having a good way of seeing where things were built.
Comments @shunshou @jackkoenig @ucbjrl @chick |
I'm kind of confused how Verilator plays with Chisel. I keep getting burned when I forget to rm the test directory, b/c something (idk what) doesn't get updated and my tests fail/pass when they should pass/fail... If you do reuse a directory (for a single simulation), I think it's important to delete the directory contents... or at least move the contents somewhere else if you really want to keep them... |
BlackBoxSourceHelper.execute()
creates ablack_box_verilog_files.f
in the target directory iff there areBlackBoxResource
orBlackBoxInline
annotations.chisel3.iotesters.verilogToVCS()
unconditionally adds a-f black_box_verilog_files.f
to the vcsFlags if that file exists.This can cause tests following a black box test to fail when the file(s) mentioned in
black_box_verilog_files.f
no longer exist.The text was updated successfully, but these errors were encountered: