Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-03-25
03:38 • Closed ticket [219319ffff]: Should test interactive tcl commands using expect</i... artifact: b1d2f17a80 user: dgp
2002-03-23
06:06 • Ticket [219319ffff]: 1 change artifact: 241bbae3b4 user: hobbs
2001-02-07
22:27 • Ticket [219319ffff]: 1 change artifact: 292aa91e13 user: dkf
2000-12-12
22:19 • Ticket [219319ffff]: 4 changes artifact: 36392b1615 user: dkf
2000-10-26
05:10 • New ticket [219319ffff]. artifact: 0bc6055f09 user: nobody

Should test interactive tcl commands using expect

Closed / Invalid219319ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 05:10:38
OriginalBugID: 3747 RFE
Version: 1.3
SubmitDate: '1999-12-01'
LastModified: '2000-02-10'
Severity: LOW
Status: UnAssn
Submitter: jenn
ChangedBy: hobbs
OS: All Unix
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'


We should use expect to test tclsh and wish interactively.  Currently, there are no tests for this, and different commands are available when you start up an interactive shell (e.g. history).
dkfplain2000-12-12 22:19:51
I suppose you could make the availability of Expect into a constraint...?
It isn't a good idea to blanket require it though, since many installations of Tcl don't have Expect (yet!) and we want the test suite to be as widely runnable as possible.
dkf Ticket [219319ffff]: 1 change [History diff]2001-02-07 22:27:15
hobbs Ticket [219319ffff]: 1 change [History diff]2002-03-23 06:06:31
dgpplain2002-03-25 03:38:45
Logged In: YES 
user_id=80530

This should not be necessary.  tcltest 2 offers [interpreter]
to give you the executable name of the current harness.
Use that to [open |[interpreter]] another copy and
interact with that.  main.test includes examples of this.
Log in (anonymous is fine) to add a comment.