Index of /archives/text/CTAN/macros/texinfo/texinfo/info/t
Name Last modified Size Description
Parent Directory -
Infokey-config 2023-08-10 05:10 312
Init-test.inc 2023-08-15 03:57 5.1K
README 2023-08-10 05:10 2.2K
adjust-anchors.sh 2023-08-15 03:53 1.3K
all-only.sh 2023-08-15 03:53 1.1K
anchor-positions.sh 2023-08-15 03:53 972
body-start.sh 2023-08-15 03:53 1.0K
c-u-m-x-scroll-forward.sh 2023-10-08 00:10 1.4K
close-window-after-search.sh 2023-08-15 03:53 895
dir-3-menus.sh 2023-08-15 03:53 885
dir-dangling-entry.sh 2023-08-15 03:53 861
dir-entry-to-subdir.sh 2023-08-15 03:53 928
dir-file-index.sh 2023-08-15 03:53 856
dir-file-menu.sh 2023-08-15 03:53 833
dir-file-no-menu.sh 2023-08-15 03:53 848
dir-file-node.sh 2023-08-15 03:53 916
dir-file-sloppily.sh 2023-08-15 03:53 863
dir-file.sh 2023-08-15 03:53 797
dir-menus-sloppily.sh 2023-08-15 03:53 877
dir-merge.sh 2023-08-15 03:53 905
dir-no-file.sh 2023-08-15 03:53 1.0K
dir-nondir.sh 2023-08-15 03:53 848
dir.sh 2023-08-15 03:53 780
echo-area-no-completions.sh 2023-08-15 03:57 915
empty-infopath.sh 2023-08-15 03:53 957
empty.sh 2023-08-15 03:53 918
end-of-line.sh 2023-08-15 03:53 1.0K
file-file-with-dot.sh 2023-08-15 03:53 863
file-index-colons.sh 2023-08-15 03:53 854
file-index.sh 2023-08-15 03:53 867
file-node-with-dot.sh 2023-08-15 03:53 886
file-node.sh 2023-08-15 03:53 872
file-nodes.sh 2023-08-15 03:53 1.0K
file-relative-path.sh 2023-08-15 03:53 881
file.sh 2023-08-15 03:53 1.2K
gc-split.sh 2023-08-15 03:53 1.0K
goal-column.sh 2023-08-15 03:53 932
goto-quoted.sh 2023-08-15 03:53 1.0K
help.sh 2023-08-15 03:53 791
inc-sea-bs.sh 2023-08-15 03:53 963
inc-sea-forward-nonregex.sh 2023-08-15 03:53 1.2K
inc-sea-forward.sh 2023-08-15 03:53 1.2K
inc-sea-history.sh 2023-08-15 03:53 1.1K
inc-sea-insensitive.sh 2023-08-15 03:53 1.2K
index-apropos.sh 2023-08-15 03:53 1.0K
index-completing.sh 2023-08-15 03:53 913
index-long-nodeline.sh 2023-08-15 03:53 1.0K
index-paren.sh 2023-08-15 03:57 781
index-search.sh 2023-08-15 03:53 1.0K
index.sh 2023-08-15 03:53 1.0K
infodir/ 2024-01-09 12:45 -
last-no-history.sh 2023-08-15 03:53 852
last-node-not-top-level.sh 2023-08-15 03:53 946
malformed-split.sh 2023-08-15 03:53 876
menu-sequence.sh 2023-08-15 03:53 966
multiple-completions.sh 2023-08-15 03:57 1.0K
next-quoted.sh 2023-08-15 03:53 1.0K
no-file.sh 2023-08-15 03:53 858
no-index.sh 2023-08-15 03:53 851
node-no-file.sh 2023-08-15 03:53 856
node-target 2023-08-10 05:10 53
quoted-label-and-target.sh 2023-08-15 03:53 1.0K
quoted-label-as-target.sh 2023-08-15 03:53 1.0K
quoted-manual-in-label.sh 2023-08-15 03:53 1.0K
quoted-manual-in-target.sh 2023-08-15 03:53 1.0K
quoted-target.sh 2023-08-15 03:53 1.0K
recode-C-locale.sh 2023-08-15 03:56 850
relative-path.sh 2023-08-15 03:53 884
relative-reference.sh 2023-08-15 03:53 1.0K
replace-viewed.sh 2023-08-15 03:53 1.3K
resize-in-completions.sh 2023-08-15 03:53 1.0K
search-after-tag.sh 2023-08-15 03:53 1.0K
search-empty.sh 2023-08-15 03:53 868
search-skip-screen.sh 2023-08-15 03:53 1.0K
search-split-after-index.sh 2023-08-15 03:53 909
spec-file-node.sh 2023-08-15 03:53 780
spec-menu.sh 2023-08-15 03:53 914
spec-no-node.sh 2023-08-15 03:53 777
split-file-menu.sh 2023-08-15 03:53 1.1K
split-footnotes.sh 2023-08-15 03:53 932
split-index.sh 2023-08-15 03:53 1.0K
split.sh 2023-08-15 03:53 801
star-note-non-whitespace.sh 2023-08-15 03:53 1.0K
tab-argument.sh 2023-08-15 03:53 902
tab-no-xref.sh 2023-08-15 03:53 928
tab-skip-node.sh 2023-08-15 03:53 1.0K
tab.sh 2023-08-15 03:53 1.0K
where-dir-file.sh 2023-08-15 03:53 848
window-split-dir.sh 2023-08-15 03:53 928
xref-across-lines-2.sh 2023-08-15 03:53 885
xref-across-lines.sh 2023-08-15 03:53 874
xref-to-anchor.sh 2023-08-15 03:53 1.1K
This directory contains shell scripts used as tests for Info. They are
listed in "info/Makefile.am" and will usually be run with "make check".
It should be possible to run a test on its own by running it at the
command line and checking the return value, e.g.
$ t/goto-quoted.sh
$ echo $?
1
shows a test failure.
The tests fall into two categories: tests of non-interactive and
interactive operation.
New tests can be created by copying existing ones. Each test should
start with the lines
srcdir=${srcdir:-.}
. $srcdir/t/Init-test.inc
to allow running at the command line, or with either an in-source or
out-of-source build with "make check".
Any interactive test should also finish with
cleanup
to cleanup temporary files and spawned processes. 'cleanup' will
exit the script with a status of $retval, which the test should set
to indicate success or failure.
Non interactive tests can run 'info' as $ginfo. The interactive tests
use the run_ginfo function.
Tests of interactive operation
------------------------------
These use the "pseudotty" program in the info subdirectory, which
creates a pseudo-terminal for the input and output of the program.
This allows the program to happily enter interactive operation (its standard
file descriptors pass the isatty library function) and avoids affecting
the output of the terminal the test was invoked from. pseudotty reads and
discards all input on its stdin, and passes through any bytes read on
its control channel into the pseudo-terminal. It prints the name of the
pseudoterminal slave device on standard output.
(test script)
^ |
| `-control----> pseudotty (master) <---> (slave) stdin/stdout ginfo
`-name of slave-----'
pseudotty will stop running either when killed, or when it exits after
its control channel is closed.
Since ginfo is reading to and writing from the pseudoterminal slave
device, if pseudotty exits before ginfo does, ginfo will exit with an
I/O error.
Many of the tests of interactive operation try to position the cursor
on a cross-reference by various means, follow the reference, and dump the node
reached to a file. (It can be compared with a target file in
info/t/node-target, to check that we ended up where we thought we would.)