gavin 5df68102bc test of index entry with colon 7 роки тому
..
infodir 5df68102bc test of index entry with colon 7 роки тому
Infokey-config 08bf6a0942 revert last revision 9 роки тому
Init-inter.inc 805b6142ea commit change use : as path sep 8 роки тому
Init-test.inc 08bf6a0942 revert last revision 9 роки тому
README 08bf6a0942 revert last revision 9 роки тому
Timeout-test.inc 08bf6a0942 revert last revision 9 роки тому
adjust-anchors.sh 08bf6a0942 revert last revision 9 роки тому
all-only.sh 08bf6a0942 revert last revision 9 роки тому
anchor-positions.sh 08bf6a0942 revert last revision 9 роки тому
body-start.sh 08bf6a0942 revert last revision 9 роки тому
c-u-m-x-scroll-forward.sh 08bf6a0942 revert last revision 9 роки тому
cr-tag-table.sh 08bf6a0942 revert last revision 9 роки тому
dir-3-menus.sh 08bf6a0942 revert last revision 9 роки тому
dir-dangling-entry.sh a0cac5f2b1 don't fall back to dir node 8 роки тому
dir-entry-to-subdir.sh 08bf6a0942 revert last revision 9 роки тому
dir-file-index.sh 08bf6a0942 revert last revision 9 роки тому
dir-file-menu.sh 08bf6a0942 revert last revision 9 роки тому
dir-file-no-menu.sh 08bf6a0942 revert last revision 9 роки тому
dir-file-node.sh 08bf6a0942 revert last revision 9 роки тому
dir-file-sloppily.sh 08bf6a0942 revert last revision 9 роки тому
dir-file.sh 08bf6a0942 revert last revision 9 роки тому
dir-menus-sloppily.sh 08bf6a0942 revert last revision 9 роки тому
dir-merge.sh a68cdbca6e dir-merge.sh test 8 роки тому
dir-no-file.sh 08bf6a0942 revert last revision 9 роки тому
dir-nondir.sh 08bf6a0942 revert last revision 9 роки тому
dir.sh 08bf6a0942 revert last revision 9 роки тому
empty-infopath.sh 08bf6a0942 revert last revision 9 роки тому
empty.sh 08bf6a0942 revert last revision 9 роки тому
end-of-line.sh 08bf6a0942 revert last revision 9 роки тому
file-file-with-dot.sh 08bf6a0942 revert last revision 9 роки тому
file-index-colons.sh 5df68102bc test of index entry with colon 7 роки тому
file-index.sh 08bf6a0942 revert last revision 9 роки тому
file-node-with-dot.sh 08bf6a0942 revert last revision 9 роки тому
file-node.sh 08bf6a0942 revert last revision 9 роки тому
file-nodes.sh 08bf6a0942 revert last revision 9 роки тому
file-relative-path.sh 08bf6a0942 revert last revision 9 роки тому
file.sh 08bf6a0942 revert last revision 9 роки тому
gc-split.sh 08bf6a0942 revert last revision 9 роки тому
goal-column.sh 08bf6a0942 revert last revision 9 роки тому
goto-quoted.sh 08bf6a0942 revert last revision 9 роки тому
help.sh 08bf6a0942 revert last revision 9 роки тому
inc-sea-bs-after-strip-cr.sh 08bf6a0942 revert last revision 9 роки тому
inc-sea-forward-nonregex.sh 08bf6a0942 revert last revision 9 роки тому
inc-sea-forward.sh 08bf6a0942 revert last revision 9 роки тому
inc-sea-history.sh 08bf6a0942 revert last revision 9 роки тому
inc-sea-insensitive.sh 08bf6a0942 revert last revision 9 роки тому
index-apropos.sh 08bf6a0942 revert last revision 9 роки тому
index-completing.sh 08bf6a0942 revert last revision 9 роки тому
index-long-nodeline.sh 08bf6a0942 revert last revision 9 роки тому
index-search.sh 08bf6a0942 revert last revision 9 роки тому
index.sh 08bf6a0942 revert last revision 9 роки тому
last-no-history.sh 08bf6a0942 revert last revision 9 роки тому
last-node-not-top-level.sh 08bf6a0942 revert last revision 9 роки тому
menu-sequence.sh 08bf6a0942 revert last revision 9 роки тому
next-quoted.sh 08bf6a0942 revert last revision 9 роки тому
no-file.sh 08bf6a0942 revert last revision 9 роки тому
no-index.sh 08bf6a0942 revert last revision 9 роки тому
node-no-file.sh e23d36587e "info --output -" to output dir node 9 роки тому
node-target 08bf6a0942 revert last revision 9 роки тому
quoted-label-and-target.sh 08bf6a0942 revert last revision 9 роки тому
quoted-label-as-target.sh 08bf6a0942 revert last revision 9 роки тому
quoted-manual-in-label.sh 08bf6a0942 revert last revision 9 роки тому
quoted-manual-in-target.sh 08bf6a0942 revert last revision 9 роки тому
quoted-target.sh 08bf6a0942 revert last revision 9 роки тому
relative-path.sh 08bf6a0942 revert last revision 9 роки тому
relative-reference.sh 08bf6a0942 revert last revision 9 роки тому
replace-viewed.sh 08bf6a0942 revert last revision 9 роки тому
resize-in-completions.sh 08bf6a0942 revert last revision 9 роки тому
search-after-tag.sh 08bf6a0942 revert last revision 9 роки тому
search-empty.sh 08bf6a0942 revert last revision 9 роки тому
search-skip-screen.sh 08bf6a0942 revert last revision 9 роки тому
search-split-after-index.sh 2247ed2316 commit test 9 роки тому
spec-file-node.sh 08bf6a0942 revert last revision 9 роки тому
spec-menu.sh 08bf6a0942 revert last revision 9 роки тому
spec-no-node.sh 08bf6a0942 revert last revision 9 роки тому
split-file-menu.sh 08bf6a0942 revert last revision 9 роки тому
split-footnotes.sh 08bf6a0942 revert last revision 9 роки тому
split-index.sh 08bf6a0942 revert last revision 9 роки тому
split.sh 08bf6a0942 revert last revision 9 роки тому
star-note-non-whitespace.sh 08bf6a0942 revert last revision 9 роки тому
tab-argument.sh 08bf6a0942 revert last revision 9 роки тому
tab-no-xref.sh 08bf6a0942 revert last revision 9 роки тому
tab-skip-node.sh 08bf6a0942 revert last revision 9 роки тому
tab.sh 08bf6a0942 revert last revision 9 роки тому
where-dir-file.sh 08bf6a0942 revert last revision 9 роки тому
window-split-dir.sh 08bf6a0942 revert last revision 9 роки тому
xref-across-lines.sh 08bf6a0942 revert last revision 9 роки тому
xref-to-anchor.sh 08bf6a0942 revert last revision 9 роки тому

README

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.

bash $t/goto-quoted.sh
bash $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". Tests of interactive operation
should follow with the line.

. $t/Init-inter.inc

Any interactive test should also finish with

. $t/Cleanup.inc

to cleanup temporary files and spawned processes. This shell snippet
will exit with whatever the value of RETVAL is, so you can set the
exit status of the script indicating success or failure.

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.)