Artifacts Associated With Ticket 926088ffffffffffffffffffffffffffffffffff
Ticket change [c35f34c868] (rid 111648) by vincentdarley on 2004-03-30 15:52:04:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
On Windows, if I do 'nmake -f makefile.vc test', the test suite runs, but on the registry tests it always picks up an older registry package somewhere on my system and uses that instead. This means that some registry tests fail since subcommands are missing. The test suite should ensure it sets auto_path/etc correctly so that the build being tested is actually used. Vince. ---- registry.test ==== registry-1.2 argument parsing for registry command FAILED ==== Contents of test case: list [catch {registry foo} msg] $msg ---- Result was: 1 {bad option "foo": must be delete, get, keys, set, type, or values} ---- Result should have been (exact matching): 1 {bad option "foo": must be broadcast, delete, get, keys, set, type, or values ==== registry-1.2 FAILED ==== registry-12.1 BroadcastValue FAILED ==== Contents of test case: list [catch {registry broadcast} msg] $msg ---- Result was: 1 {bad option "broadcast": must be delete, get, keys, set, type, or values} ---- Result should have been (exact matching): 1 {wrong # args: should be "registry broadcast keyName ?-timeout millisecs?"} ==== registry-12.1 FAILED ==== registry-12.2 BroadcastValue FAILED ==== Contents of test case: list [catch {registry broadcast "" -time} msg] $msg ---- Result was: 1 {bad option "broadcast": must be delete, get, keys, set, type, or values} ---- Result should have been (exact matching): 1 {wrong # args: should be "registry broadcast keyName ?-timeout millisecs?"} ==== registry-12.2 FAILED ==== registry-12.3 BroadcastValue FAILED ==== Contents of test case: list [catch {registry broadcast "" - 500} msg] $msg ---- Result was: 1 {bad option "broadcast": must be delete, get, keys, set, type, or values} ---- Result should have been (exact matching): 1 {wrong # args: should be "registry broadcast keyName ?-timeout millisecs?"} ==== registry-12.3 FAILED ==== registry-12.4 BroadcastValue FAILED ==== Contents of test case: list [catch {registry broadcast {Environment}} msg] $msg ---- Result was: 1 {bad option "broadcast": must be delete, get, keys, set, type, or values} ---- Result should have been (exact matching): 0 {1 0} ==== registry-12.4 FAILED ==== registry-12.5 BroadcastValue FAILED ==== Contents of test case: list [catch {registry b {}} msg] $msg ---- Result was: 1 {bad option "b": must be delete, get, keys, set, type, or values} ---- Result should have been (exact matching): 0 {1 0} ==== registry-12.5 FAILED - foundin initialized to: "obsolete: 8.5a2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "vincentdarley"
- subsystem initialized to: "34. tcltest Package"
- title initialized to: "test suite picks up old registry version"
- type initialized to: "Bug"
Ticket change [89512d4909] (rid 132006) by dgp on 2004-03-31 08:28:44:
- assignee changed to: "kennykb"
- icomment:
Logged In: YES user_id=80530 auto_path setting are good, but best to use constraints on the tests as well. Ought to be some history on this subject in c.l.t....
- login: "dgp"
- mimetype: "text/plain"
- subsystem changed to: "32. registry Package"
- username: "dgp"
Ticket change [b3f7a87115] (rid 124936) by dgp on 2004-03-31 08:45:17:
- icomment:
Logged In: YES user_id=80530 ...specifically I like the strategy in: http://groups.google.com/groups?selm=slrnb3ca3s.liu.dgp%40clover.cam.nist.gov
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [153036581d] (rid 124528) by kennykb on 2004-04-01 00:57:59:
- subsystem changed to: "53. Configuration and Build Tools"
Ticket change [f84811b6ff] (rid 91514) by kennykb on 2004-04-01 00:58:00:
- assignee changed to: "mdejong"
- icomment:
Logged In: YES user_id=99768 registry.test appears to be doing The Right Things; instead 'make test' itself appears to be the trouble spot. What's happening here is that registry.test contains its own explicit [load] of the registry package, but that [load] is not effective, because the registry package has already been loaded by the [package require] in msgcat.tcl. The way to fix it, according to dgp, is to change the 'test:' rule in the makefile to set TCLLIBPATH so that both the 'library/' directory and the directory in which tclregXX.dll was built appear in the path. That way, [package require] will hit the newly-built versions rather than anything that is installed. dgp's newsgroup posting, while it would address the specific failures, does not address the problem that the package-under-test is not the one that is loaded. Note that both configure/make and makefile.vc have the problem.
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
Ticket change [32f097d13d] (rid 93702) by dgp on 2004-04-01 02:13:37:
- icomment:
Logged In: YES user_id=80530 Ick. I'd forgetten the detail that the pkgIndex.tcl file and the actual DLL it is paired with are in different source directories. Looks like the pkgIndex.tcl file for registry can't really function until the package is installed. the original strategy of a direct [load] got around that. Is there any way to make that [load] effective even with an existing registry package already loaded? can [package forget] help? Really would be better to get registry in a directory by itself under a proposed "pkgs" directory.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [c3f93939c9] (rid 111764) by davygrvy on 2004-04-10 06:51:22:
- icomment:
Logged In: YES user_id=7549 Personally, I've found -load and -loadfile to effective in sqaushing this for other projects. Example: test : release $(TCLSH) .\tests\all.tcl $(TESTFLAGS) -loadfile << load [file normalize $(IOCPLIB:\=/)] << And in the top of my *.test files I add this line: ::tcltest::loadTestedCommands
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [8f9649ce96] (rid 120302) by dgp on 2004-04-13 00:26:42:
- icomment:
Logged In: YES user_id=80530 An excellent observation! That will/would work even better with registry packaged as separate source/docs/test under a tcl/pkgs/ directory.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [c4de648b3b] (rid 111909) by vincentdarley on 2004-04-23 19:16:40:
- icomment:
Logged In: YES user_id=32170 Note: the same problem may well be true of the 'dde' package as well, just that hasn't changed recently?
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [85f9351e2f] (rid 131424) by vincentdarley on 2004-07-02 23:56:36:
- assignee changed to: "davygrvy"
- icomment:
Logged In: YES user_id=32170 There seem to be some good solutions suggested here. Any chance that one of them can be checked in so this report can be closed?
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
Ticket change [5f3e7031d6] (rid 115778) by davygrvy on 2004-09-08 14:16:01:
- icomment:
Logged In: YES user_id=7549 Here's a patch for it. win/Makefile.in and win/makefile.bc changes missing. We need those before I can commit this.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [db05c58321] (rid 107888) by davygrvy on 2004-09-08 14:16:02:
- icomment:
File Added - 100726: patch.txt
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [39b128e037] (rid 112434) by davygrvy on 2004-10-27 04:32:47:
- icomment:
Logged In: YES user_id=7549 here's another patch.. Seems more complete and tested. It still needs win/Makefile.in and win/makefile.bc changes.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Add attachment "patch.txt" [1baab373a8] (rid 123189) by davygrvy on 2004-10-27 04:32:49.
Ticket change [83c1feda54] (rid 117433) by davygrvy on 2004-10-27 04:32:50:
- icomment:
File Deleted - 100726: File Added - 106589: patch.txt
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [454418b633] (rid 99321) by davygrvy on 2004-10-28 03:56:21:
- closedate changed to: "2004-10-27T20:56:21"
- closer changed to: "davygrvy"
- icomment:
Logged In: YES user_id=7549 committed to HEAD.
- login: "davygrvy"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "davygrvy"