Tk Source Code

View Ticket
Login
Ticket UUID: 1078648
Title: -debug 1 testing reveals test suite flaws
Type: Bug Version: obsolete: 8.5a2
Submitter: dgp Created on: 2004-12-03 22:14:32
Subsystem: None Assigned To: dgp
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-12-08 10:04:33
Resolution: Fixed Closed By: dgp
    Closed on: 2004-12-08 03:04:33
Description:
Tried Tk 8.4.9 test suite with the
-debug 1 flag on.  Disaster.
Test suite's in  mega-need of cleanup.
Tk 8.5 is no better.

Assigning to dkf only on the chance
he might have work he'd rather avoid. :^)

Low hanging fruit is all the duplicated
test names.
User Comments: dgp added on 2004-12-08 10:04:33:
Logged In: YES 
user_id=80530

remaining -debug 1 issues
corrected on the HEAD.

dkf added on 2004-12-07 17:08:48:
Logged In: YES 
user_id=79902

Thanks; these should be all fixed now.

Note to Jeff: It's not worth moving the 8.5a2 tag for this
fix; it's too minor!

dgp added on 2004-12-07 06:03:20:
Logged In: YES 
user_id=80530

bind-25.1-17

button-1.2-187

canvas-1.40

cursor-6.68

"testName" in cursor.test

scrollbar-1.1,2

dkf added on 2004-12-07 05:33:30:
Logged In: YES 
user_id=79902

I can't run the Tk test suite at all, so enlighten me as to
what the dups are and I'll fix 'em.

dgp added on 2004-12-07 04:37:32:
Logged In: YES 
user_id=80530

FWIW, still many dup test names
in the HEAD.

dkf added on 2004-12-04 07:07:12:
Logged In: YES 
user_id=79902

I've known for years that the Tk test suite is a disgusting
mess. I have the occasional go at fixing it up a bit, but
I'm a long way off.

FWIW, I'm still working on getting every test bound to a
test name so that you can grep for them. :-o 

All dup test names should now be fixed in the HEAD. For the
record, I used this (single-line) shell invokation when
dup-hunting:
grep -E '\<test [a-z][^ ]+' *.test | sed 's/^[^
:]*:[^t]*test //;s/ .*//' | sort | awk
'$0==that{print}{that=$0}' | sort -u | less