Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d9049d5fa3f2f2382cc6e0019a98cbc3e8ee22c5
Ticket: 577038ffffffffffffffffffffffffffffffffff
better -loadfile sharing
User & Date: dgp on 2003-02-05 05:08:02
Changes

  1. 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.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"