Home > Archive > Tcl > March 2008 > Where to find documentation for tcltest 1.x?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Where to find documentation for tcltest 1.x?
|
|
| Hai Vu 2008-03-27, 7:36 pm |
| Hello everyone,
I just started a new job which require some tcl scripting and I would
like to use tcltest to unit test my code. The problem is, the tcltest
version in the Linux system is 1.0.2, which is very old and the syntax
is very different from the 2.x syntax. My question is, where can I
find document on this version of tcltest? If possible, would someone
please show me a couple of samples? Thank you.
| |
| Arjen Markus 2008-03-28, 4:54 am |
| On 27 mrt, 23:12, Hai Vu <wuh...@gmail.com> wrote:
> Hello everyone,
> I just started a new job which require some tcl scripting and I would
> like to use tcltest to unit test my code. The problem is, the tcltest
> version in the Linux system is 1.0.2, which is very old and the syntax
> is very different from the 2.x syntax. My question is, where can I
> find document on this version of tcltest? If possible, would someone
> please show me a couple of samples? Thank you.
Documentation for any version of Tcl comes as a manual
page in the installation. You should be able to find
examples in the directory with test scripts for the
installation as well. (If that fails, get the source code
for the relevant Tcl version)
Regards,
Arjen
| |
| schlenk 2008-03-28, 4:54 am |
|
Hai Vu wrote:
> Hello everyone,
> I just started a new job which require some tcl scripting and I would
> like to use tcltest to unit test my code. The problem is, the tcltest
> version in the Linux system is 1.0.2, which is very old and the syntax
> is very different from the 2.x syntax. My question is, where can I
> find document on this version of tcltest? If possible, would someone
> please show me a couple of samples? Thank you.
As tcltest is a package shipped with the Tcl core you either have a
really outdated Tcl install on that box or somethings broken in there.
Best fix would be to get a recent supported Tcl version, at least one
of the later Tcl 8.4.1x versions or even better Tcl 8.5.1 or newer.
Everything below Tcl 8.4 is basically unsupported, gets no bug fixes
at all, not even security fixes. Even Debian is in the process to end
support for Tcl 8.3 now..., With those newer versions you should have
tcltest 2.x available.
Michael
| |
| Larry W. Virden 2008-03-28, 8:16 am |
| On Mar 27, 6:12=A0pm, Hai Vu <wuh...@gmail.com> wrote:
> The problem is, the tcltest
> version in the Linux system is 1.0.2, which is very old and the syntax
> is very different from the 2.x syntax. My question is, where can I
> find document on this version of tcltest?
If you have the option, upgrading to the latest version of tcl would
achieve several things - get you an up to date version of tcltest, as
well as tcl, which would implement a variety of bug fixes, updated
doc, etc.
If this is not an option, then take a look at tcl.sf.net, in the
download area. Invoke, on your system, tclsh and type in:
% info patchlevel
and the number that is returned is the version of tcl that you have.
That will match with the number of one of the tar files at the sf.net
site. So download the source tar and that will give you the man pages,
which are the closest to reference materials that are available.
| |
| Hai Vu 2008-03-28, 7:30 pm |
| I would like to thank Michael (schlenk) and Larry for helping me out.
As this is my company's system, which hundreds of people depend on, a
bottom-of-the-rung engineer like me cannot influence the upgrade.
However, Larry pointed out the magic keyword: man page. So I tried
'man tcltest' and the rest of my questions are answered. Thank you
once again.
Hai
|
|
|
|
|