1 load_lib utils.exp ;# Get the file of utilities for Texinfo tests
3 default MAKEINFO makeinfo ;# ensure Tcl var MAKEINFO has value
5 # Ensure we can execute this tool
6 if [is_executable $MAKEINFO] then {
7 verbose "$MAKEINFO is executable\n" 1
9 perror "$MAKEINFO: cannot execute\n"
10 exit 1 ;# no point in running any makeinfo tests
13 # makeinfo_start undefined by choice;
14 # 1) it makes it clearer where the output is to start
15 # $MAKEINFO directly with `catch' from each test case,
17 # 2) this takes no more lines than it would to call makeinfo_start
19 proc makeinfo_exit {} {}
21 proc makeinfo_version {} {
23 set tmp [ exec $MAKEINFO --version ]
24 regexp "version.*$" $tmp vn ;# "vn" undef if pattern not found
25 if [info exists vn] then {
26 clone_output "[which $MAKEINFO] $vn\n"