Overview
| Artifact ID: | 928f97774b6b9698ea01fc3ee290ba2f80a5a98f |
|---|---|
| Ticket: | 3549770fffffffffffffffffffffffffffffffff
Multiple test failures running tcltest outside build tree |
| User & Date: | twylite on 2012-07-27 20:46:42 |
Changes
- icomment:
The lines in the Makefile only take care of it in the build environment. There are many excellent reasons to run tests in the install environment. One is to test that packages can actually be located in the install (there have over the years been semi-regular bugs preventing this), another is to be able to provide Win32 binaries for Tcl 8.6b3 that can be used in widespread testing (i.e. running the test suite in multiple production environments) without the need for a build environment. The tests as currently written expect ::ddelib and ::reglib to be available in order to communicate the location of the DLLs to child interpreters. There are three approaches to making the tests work in build and install environments: (1) Set ::ddelib and ::reglib in the install environment. The patch I made is lacking a check -- the vars should not be modified if they already exist. Apart from this the solution works. (2) Remove the use of ddelib/reglib from the tests, replace with "package require" statements, and have the Makefile provide the appropriate 'package ifneeded' command. This is tricky to get right in the build environment because the 'package require' must happen before ::tcltest::loadTestedCommands to handle static extensions, but will then have set up invalid 'package ifneeded' from the pkgIndex in library/dde. (3) Modify pkgIndex to use ddelib if present, else to use the default logic ([file join $dir tcldde14.dll]). Please select an approach (or suggest an alternative), and I'll re-do the patch accordingly.
- login: "twylite"
- mimetype: "text/plain"
- username: "twylite"