Artifacts Associated With Ticket 577038ffffffffff
Ticket change [a2779ede6b] (rid 109898) by dgp on 2002-07-03 16:12:28:
- assignee initialized to: "melissachawla"
- cmimetype initialized to: "text/plain"
- comment initialized to:
[loadTestedCommands] is to be used to load in the commands to be tested, as specified by -load or -loadfile. However, in a multi-file test suite, each file must be able to run as a self-contained script to satisfy the [configure -singleproc false] operations. This means that the file or script to be shared among all files must be named in all files. This means that the whole [loadTestedCommands] machinery is hardly better than the traditional [source defs.tcl] ever was. A better scheme is needed to be able to share common code among many test files in a test suite.
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "34. tcltest Package"
- title initialized to: "better -loadfile sharing"
- type initialized to: "RFE"
Ticket change [db5f82f422] (rid 107953) by andreas_kupries on 2002-07-03 23:19:06:
- icomment:
Logged In: YES user_id=75003 I believe the -singleproc stuff came after [loadTestedCommands] was invented, so in the beginning it was better. Currently have no idea for a better scheme tough.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [acb1f35f8c] (rid 101339) by dgp on 2002-07-07 01:01:58:
- assignee changed to: "dgp"
Ticket change [d9049d5fa3] (rid 107543) by dgp on 2003-02-05 05:08:02:
- icomment:
Logged In: YES user_id=80530 I've looked at this again recently, and the status quo might not be as bad as I thought, given certain usage patterns. If one has a multi-file test suite, and defines the [configure -loadfile] in the all.tcl file of that test suite, then in each *.test file calls [loadTestedCommands]. This allows the file containing common code to be defined in only one place (the all.tcl file). This will work with any value of the -singleproc option. The restriction is that if one wants to run only one *.test file of the multi-file test suite, the right way to do that is with the "-file" command line option: tclsh all.tcl -file chosenFile.test Attempting to directly evaluate the test file, tclsh chosenFile.test will fail because the all.tcl file is never evaluated to define the loadFile. So, as long as a particular set of habits are maintained, the existing -load* options work fine. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [ed7bebe709] (rid 103888) by dgp on 2003-04-02 02:33:47:
- closedate changed to: "2003-04-01T19:33:47"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 I've addressed this issue with improved instructions in tcl/tests/README.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- status changed to: "Closed"
- username: "dgp"