From: Stephen W. <st...@ic...> - 2008-03-05 17:39:46
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Cary R. wrote: > --- Michael Witten <mfw...@MI...> wrote: >> Could you just construct the path from the current working directory and >> the qualified name used to run vvp_reg.pl? > > This may be the best choice. I don't think we should build the code on the > fly since that requires too much coupling to the driver program, but the > driver program could provide the working directory to a script as needed. > > There are a couple of different paths we could take on this. The script > could create a file with the current path as a define that any test could > use. Or we could make a macro that the the script would use to pass the > value e.g.(-D@PATH@ in the *_regress.list). Either is probably acceptable. > There may be other information we may want to pass as well. > > Steve, do you have a preference? I think this is a lot of hoopla for the testing of such a tiny feature. I would rather not pollute the main test suite script for such rare cases. Maybe a better idea might be to come up with a test harness just for testing the preprocessor. Use "iverilog -E" everywhere in that script, and use gold files and a directory structure just for that purpose. Then all the oddities of testing the preprocessor are taken out of the main test bench. This preprocessor specific test harness can be designed to be better suited to the needs of testing a preprocessor (including its interaction with command line flags and command files). - -- Steve Williams "The woods are lovely, dark and deep. steve at icarus.com But I have promises to keep, http://www.icarus.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFHztrkrPt1Sc2b3ikRAvRZAJ4sHSv+wezNNJ3uuGJvG3UWACq8MgCgi82f LS0Ivet0smCxzLmHjBOMASw= =BKM6 -----END PGP SIGNATURE----- |