Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
infodir/ | H | 01-Dec-2019 | - | 538 | 385 | |
Infokey-config | H A D | 01-Dec-2019 | 312 | 12 | 11 | |
Init-test.inc | H A D | 27-Mar-2021 | 5.1 KiB | 183 | 146 | |
README | H A D | 01-Dec-2019 | 2.1 KiB | 62 | 44 | |
adjust-anchors.sh | H A D | 01-Dec-2019 | 1.3 KiB | 44 | 14 | |
all-only.sh | H A D | 01-Dec-2019 | 1.1 KiB | 35 | 9 | |
anchor-positions.sh | H A D | 01-Dec-2019 | 972 | 29 | 7 | |
body-start.sh | H A D | 01-Dec-2019 | 1 KiB | 36 | 12 | |
c-u-m-x-scroll-forward.sh | H A D | 01-Dec-2019 | 1.4 KiB | 44 | 11 | |
close-window-after-search.sh | H A D | 01-Dec-2019 | 895 | 29 | 6 | |
dir-3-menus.sh | H A D | 01-Dec-2019 | 885 | 24 | 4 | |
dir-dangling-entry.sh | H A D | 01-Dec-2019 | 861 | 25 | 5 | |
dir-entry-to-subdir.sh | H A D | 01-Dec-2019 | 928 | 30 | 9 | |
dir-file-index.sh | H A D | 01-Dec-2019 | 856 | 23 | 4 | |
dir-file-menu.sh | H A D | 01-Dec-2019 | 833 | 23 | 3 | |
dir-file-no-menu.sh | H A D | 01-Dec-2019 | 848 | 23 | 3 | |
dir-file-node.sh | H A D | 01-Dec-2019 | 916 | 25 | 4 | |
dir-file-sloppily.sh | H A D | 01-Dec-2019 | 863 | 22 | 3 | |
dir-file.sh | H A D | 01-Dec-2019 | 797 | 22 | 3 | |
dir-menus-sloppily.sh | H A D | 01-Dec-2019 | 877 | 24 | 4 | |
dir-merge.sh | H A D | 01-Dec-2019 | 905 | 29 | 7 | |
dir-no-file.sh | H A D | 01-Dec-2019 | 1 KiB | 28 | 3 | |
dir-nondir.sh | H A D | 01-Dec-2019 | 848 | 22 | 3 | |
dir.sh | H A D | 01-Dec-2019 | 780 | 22 | 3 | |
echo-area-no-completions.sh | H A D | 01-Dec-2019 | 910 | 28 | 7 | |
empty-infopath.sh | H A D | 01-Dec-2019 | 957 | 31 | 8 | |
empty.sh | H A D | 01-Dec-2019 | 918 | 26 | 6 | |
end-of-line.sh | H A D | 01-Dec-2019 | 1 KiB | 36 | 12 | |
file-file-with-dot.sh | H A D | 01-Dec-2019 | 863 | 23 | 3 | |
file-index-colons.sh | H A D | 01-Dec-2019 | 854 | 23 | 4 | |
file-index.sh | H A D | 01-Dec-2019 | 867 | 23 | 4 | |
file-node-with-dot.sh | H A D | 01-Dec-2019 | 886 | 24 | 4 | |
file-node.sh | H A D | 01-Dec-2019 | 872 | 24 | 4 | |
file-nodes.sh | H A D | 01-Dec-2019 | 992 | 29 | 7 | |
file-relative-path.sh | H A D | 01-Dec-2019 | 881 | 22 | 3 | |
file.sh | H A D | 01-Dec-2019 | 1.2 KiB | 35 | 10 | |
gc-split.sh | H A D | 01-Dec-2019 | 1,001 | 29 | 6 | |
goal-column.sh | H A D | 01-Dec-2019 | 932 | 32 | 10 | |
goto-quoted.sh | H A D | 01-Dec-2019 | 1,023 | 36 | 12 | |
help.sh | H A D | 01-Dec-2019 | 791 | 22 | 3 | |
inc-sea-bs.sh | H A D | 01-Dec-2019 | 963 | 32 | 8 | |
inc-sea-forward-nonregex.sh | H A D | 01-Dec-2019 | 1.2 KiB | 37 | 9 | |
inc-sea-forward.sh | H A D | 01-Dec-2019 | 1.2 KiB | 37 | 9 | |
inc-sea-history.sh | H A D | 01-Dec-2019 | 1.1 KiB | 41 | 15 | |
inc-sea-insensitive.sh | H A D | 01-Dec-2019 | 1.2 KiB | 36 | 9 | |
index-apropos.sh | H A D | 01-Dec-2019 | 988 | 32 | 6 | |
index-completing.sh | H A D | 01-Dec-2019 | 913 | 30 | 8 | |
index-long-nodeline.sh | H A D | 01-Dec-2019 | 1 KiB | 35 | 12 | |
index-search.sh | H A D | 01-Dec-2019 | 1,013 | 31 | 7 | |
index.sh | H A D | 01-Dec-2019 | 977 | 35 | 12 | |
last-no-history.sh | H A D | 01-Dec-2019 | 852 | 28 | 6 | |
last-node-not-top-level.sh | H A D | 01-Dec-2019 | 946 | 31 | 8 | |
malformed-split.sh | H A D | 01-Dec-2019 | 876 | 28 | 6 | |
menu-sequence.sh | H A D | 01-Dec-2019 | 966 | 34 | 12 | |
multiple-completions.sh | H A D | 01-Dec-2019 | 970 | 31 | 8 | |
next-quoted.sh | H A D | 01-Dec-2019 | 1,012 | 35 | 12 | |
no-file.sh | H A D | 01-Dec-2019 | 858 | 23 | 3 | |
no-index.sh | H A D | 01-Dec-2019 | 851 | 27 | 6 | |
node-no-file.sh | H A D | 01-Dec-2019 | 856 | 23 | 4 | |
node-target | H A D | 25-Aug-2019 | 53 | 4 | 2 | |
quoted-label-and-target.sh | H A D | 01-Dec-2019 | 1 KiB | 36 | 12 | |
quoted-label-as-target.sh | H A D | 01-Dec-2019 | 1 KiB | 35 | 12 | |
quoted-manual-in-label.sh | H A D | 01-Dec-2019 | 1 KiB | 35 | 12 | |
quoted-manual-in-target.sh | H A D | 01-Dec-2019 | 1 KiB | 36 | 12 | |
quoted-target.sh | H A D | 01-Dec-2019 | 1 KiB | 35 | 12 | |
relative-path.sh | H A D | 01-Dec-2019 | 884 | 23 | 3 | |
relative-reference.sh | H A D | 01-Dec-2019 | 1,014 | 30 | 7 | |
replace-viewed.sh | H A D | 01-Dec-2019 | 1.3 KiB | 47 | 15 | |
resize-in-completions.sh | H A D | 01-Dec-2019 | 1 KiB | 34 | 10 | |
search-after-tag.sh | H A D | 01-Dec-2019 | 1 KiB | 36 | 12 | |
search-empty.sh | H A D | 01-Dec-2019 | 868 | 27 | 6 | |
search-skip-screen.sh | H A D | 01-Dec-2019 | 991 | 33 | 8 | |
search-split-after-index.sh | H A D | 01-Dec-2019 | 909 | 29 | 6 | |
spec-file-node.sh | H A D | 01-Dec-2019 | 780 | 21 | 3 | |
spec-menu.sh | H A D | 01-Dec-2019 | 914 | 24 | 3 | |
spec-no-node.sh | H A D | 01-Dec-2019 | 777 | 21 | 3 | |
split-file-menu.sh | H A D | 01-Dec-2019 | 1.1 KiB | 36 | 12 | |
split-footnotes.sh | H A D | 01-Dec-2019 | 932 | 27 | 6 | |
split-index.sh | H A D | 01-Dec-2019 | 1,001 | 35 | 12 | |
split.sh | H A D | 01-Dec-2019 | 801 | 23 | 3 | |
star-note-non-whitespace.sh | H A D | 01-Dec-2019 | 1 KiB | 33 | 8 | |
tab-argument.sh | H A D | 01-Dec-2019 | 902 | 29 | 8 | |
tab-no-xref.sh | H A D | 01-Dec-2019 | 928 | 27 | 6 | |
tab-skip-node.sh | H A D | 01-Dec-2019 | 1 KiB | 32 | 8 | |
tab.sh | H A D | 01-Dec-2019 | 984 | 34 | 12 | |
where-dir-file.sh | H A D | 01-Dec-2019 | 849 | 24 | 4 | |
window-split-dir.sh | H A D | 01-Dec-2019 | 928 | 30 | 8 | |
xref-across-lines-2.sh | H A D | 01-Dec-2019 | 885 | 28 | 8 | |
xref-across-lines.sh | H A D | 01-Dec-2019 | 874 | 28 | 8 | |
xref-to-anchor.sh | H A D | 01-Dec-2019 | 1.1 KiB | 38 | 13 |
README
1This directory contains shell scripts used as tests for Info. They are 2listed in "info/Makefile.am" and will usually be run with "make check". 3It should be possible to run a test on its own by running it at the 4command line and checking the return value, e.g. 5 6bash $t/goto-quoted.sh 7bash $echo $? 81 9 10shows a test failure. 11 12The tests fall into two categories: tests of non-interactive and 13interactive operation. 14 15New tests can be created by copying existing ones. Each test should 16start with the lines 17 18srcdir=${srcdir:-.} 19. $srcdir/t/Init-test.inc 20 21to allow running at the command line, or with either an in-source or 22out-of-source build with "make check". 23 24Any interactive test should also finish with 25 26cleanup 27 28to cleanup temporary files and spawned processes. This function 29will exit with whatever the value of RETVAL is, so you can set the 30exit status of the script indicating success or failure. 31 32Tests of interactive operation 33------------------------------ 34 35These use the "pseudotty" program in the info subdirectory, which 36creates a pseudo-terminal for the input and output of the program. 37This allows the program to happily enter interactive operation (its standard 38file descriptors pass the isatty library function) and avoids affecting 39the output of the terminal the test was invoked from. pseudotty reads and 40discards all input on its stdin, and passes through any bytes read on 41its control channel into the pseudo-terminal. It prints the name of the 42pseudoterminal slave device on standard output. 43 44(test script) 45 ^ | 46 | `-control----> pseudotty (master) <---> (slave) stdin/stdout ginfo 47 `-name of slave-----' 48 49pseudotty will stop running either when killed, or when it exits after 50its control channel is closed. 51 52Since ginfo is reading to and writing from the pseudoterminal slave 53device, if pseudotty exits before ginfo does, ginfo will exit with an 54I/O error. 55 56Many of the tests of interactive operation try to position the cursor 57on a cross-reference by various means, follow the reference, and dump the node 58reached to a file. (It can be compared with a target file in 59info/t/node-target, to check that we ended up where we thought we would.) 60 61 62