Fossil

After autosetup checks for the existence of tclsh in the PATH, it now
checks whether it's at least version 8.6, because macOS is still
shipping 8.5, despite it being nearly 6 years old. If we find an old
tclsh, try to find the Homebrew tcl-tk package, and use that version
instead. This is not a macOS or Homebrew specific change in principle:
we can extend this logic for other systems to find their best Tcl/Tk
version, as needed.

On systems where autosetup is used, this only affects "make test".
There are other uses of tclsh in this tree which may also benefit from
our PATH discoveries, but this checkin doesn't update those.

This checkin also doesn't try to address similar problems on other
platforms, such as the "TCLSH = tclsh" line in Makefile.mingw.

Explained "Why can't we use Jim Tcl for the test suite?" in the auto.def
comment above the check for a suitable tclsh version. Basically, I
tried it and then documented a few of the resulting failures.
check-in: 91eaef61 user: wyoung tags: tclsh-macos

After autosetup checks for the existence of tclsh in the PATH, it now
checks whether it's at least version 8.6, because macOS is still
shipping 8.5, despite it being nearly 6 years old. If we find an old
tclsh, try to find the Homebrew tcl-tk package, and use that version
instead. This is not a macOS or Homebrew specific change in principle:
we can extend this logic for other systems to find their best Tcl/Tk
version, as needed.

On systems where autosetup is used, this only affects "make test".
There are other uses of tclsh in this tree which may also benefit from
our PATH discoveries, but this checkin doesn't update those.

This checkin also doesn't try to address similar problems on other
platforms, such as the "TCLSH = tclsh" line in Makefile.mingw.

# This is the main test script. To run a regression test, do this:
#
# tclsh ../test/tester.tcl ../bld/fossil
#
# Where ../test/tester.tcl is the name of this file and ../bld/fossil
# is the name of the executable to be tested.
#
set testfiledir [file normalize [file dirname [info script]]]
set testrundir [pwd]
set testdir [file normalize [file dirname $argv0]]
set fossilexe [file normalize [lindex $argv 0]]
if {$tcl_platform(platform) eq "windows" && \

>
>
>
>

18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

# This is the main test script. To run a regression test, do this:
#
# tclsh ../test/tester.tcl ../bld/fossil
#
# Where ../test/tester.tcl is the name of this file and ../bld/fossil
# is the name of the executable to be tested.
#
# We use some things introduced in 8.6 such as lmap. auto.def should# have found us a suitable Tcl installation.package require Tcl 8.6
set testfiledir [file normalize [file dirname [info script]]]
set testrundir [pwd]
set testdir [file normalize [file dirname $argv0]]
set fossilexe [file normalize [lindex $argv 0]]
if {$tcl_platform(platform) eq "windows" && \

This page was generated in about
0.006s by
Fossil 2.9 [7abfca6752] 2019-03-18 12:04:02