Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2010-04-23
18:53 • Closed ticket [2782806fff]: sample package's test cases fail plus 8 othe... artifact: 989303ca9b user: nijtmans
2010-01-22
22:57 • Ticket [2782806fff]: 4 changes artifact: 7dc656e802 user: lvirden
2009-05-08
02:30 • Ticket [2782806fff]: 4 changes artifact: 345769a05e user: lvirden
2009-04-28
19:53 • Ticket [2782806fff]: 4 changes artifact: 807406a819 user: lvirden
12:34 • New ticket [2782806fff]. artifact: 966f037ee3 user: lvirden

sample package's test cases fail

Closed / Fixed2782806fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 17 years ago
Descriptionplain2009-04-28 12:34:18
Platform: sparc solaris 8 and Sun's C compiler
Code - sample extension cvs head from April 27, 2009 ActiveState snapshot, configured and compiled against Tcl 8.6's cvs head from the April 27, 2009 snapshot

When I configure and then run "gmake all test install", I get these errors:

Tests running in interp:       /vol/tclsrcsol/tcl86/tcl/unix/tclsh
Tests running with pwd:        /vol/tclsrcsol/tcl86/sample/unix
Tests running in working dir:  /vol/tclsrcsol/tcl86/sample/tests
Only running tests that match:        *
Skipping test files that match:       l.*.test
Only sourcing test files that match:  *.test
Tests began at Tue Apr 28 08:06:16 EDT 2009
sample.test
can't find package Tclsha1
tclsample.test
can't find package Tclsha1

Tests ended at Tue Apr 28 08:06:17 EDT 2009
all.tcl:        Total   0       Passed  0       Skipped 0       Failed  0

The Makefile then goes on:

Sourced 0 Test Files.
 /projects/gnu/sparc-sun-solaris2.8/bin/ginstall -c libsample0.5.so /projects/sp
rs_lwv/tcl86/lib/sample0.5/libsample0.5.so
 : /projects/sprs_lwv/tcl86/lib/sample0.5/libsample0.5.so
 Install pkgIndex.tcl /projects/sprs_lwv/tcl86/lib/sample0.5
Installing header files in /projects/sprs_lwv/tcl86/include
Installing documentation in /projects/sprs_lwv/tcl86/man
Installing ../doc/sha1.n

Even after this point, if I run a "gmake test" again, I still get the "can't find package Tclsha1" message.

Two observations

1. I don't recall seeing this problem before but the ChangeLog only appears to indicate a change for AIX.
2. The tests can't find the extension, but no failures are listed for the test suite.
lvirdenplain2009-04-28 19:53:40
The problem appears to be this. Previously, when the sample package was installed, it was installed as lib/sampleVersion.Level/pkgIndex.tcl and libsample*.so, but within the pkgIndex.tcl, the package was identified as Tclsha1.

However, the current pkgIndex.tcl is being installed identifying itself as "sample".

The test cases still look for Tclsha1 (as well a variety of programs which make use of it), but that name is no longer used in the pkgIndex.tcl.
lvirdenplain2009-05-08 02:30:52
see patch https://sourceforge.net/tracker/?func=detail&aid=2788597&group_id=10894&atid=310894 for a fix for this bug
lvirdenplain2010-01-22 22:57:48
I downloaded the latest CVS head for sample, built it against the latest tcl 8.6 development head, and ran the test suite. The same error in the pkgIndex.tcl is seen.
nijtmansplain2010-04-23 18:53:50
allow_comments - 1

Fixed in HEAD
Log in (anonymous is fine) to add a comment.