• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

infodir/H01-Dec-2019-538385

Infokey-configH A D01-Dec-2019312 1211

Init-test.incH A D27-Mar-20215.1 KiB183146

READMEH A D01-Dec-20192.1 KiB6244

adjust-anchors.shH A D01-Dec-20191.3 KiB4414

all-only.shH A D01-Dec-20191.1 KiB359

anchor-positions.shH A D01-Dec-2019972 297

body-start.shH A D01-Dec-20191 KiB3612

c-u-m-x-scroll-forward.shH A D01-Dec-20191.4 KiB4411

close-window-after-search.shH A D01-Dec-2019895 296

dir-3-menus.shH A D01-Dec-2019885 244

dir-dangling-entry.shH A D01-Dec-2019861 255

dir-entry-to-subdir.shH A D01-Dec-2019928 309

dir-file-index.shH A D01-Dec-2019856 234

dir-file-menu.shH A D01-Dec-2019833 233

dir-file-no-menu.shH A D01-Dec-2019848 233

dir-file-node.shH A D01-Dec-2019916 254

dir-file-sloppily.shH A D01-Dec-2019863 223

dir-file.shH A D01-Dec-2019797 223

dir-menus-sloppily.shH A D01-Dec-2019877 244

dir-merge.shH A D01-Dec-2019905 297

dir-no-file.shH A D01-Dec-20191 KiB283

dir-nondir.shH A D01-Dec-2019848 223

dir.shH A D01-Dec-2019780 223

echo-area-no-completions.shH A D01-Dec-2019910 287

empty-infopath.shH A D01-Dec-2019957 318

empty.shH A D01-Dec-2019918 266

end-of-line.shH A D01-Dec-20191 KiB3612

file-file-with-dot.shH A D01-Dec-2019863 233

file-index-colons.shH A D01-Dec-2019854 234

file-index.shH A D01-Dec-2019867 234

file-node-with-dot.shH A D01-Dec-2019886 244

file-node.shH A D01-Dec-2019872 244

file-nodes.shH A D01-Dec-2019992 297

file-relative-path.shH A D01-Dec-2019881 223

file.shH A D01-Dec-20191.2 KiB3510

gc-split.shH A D01-Dec-20191,001 296

goal-column.shH A D01-Dec-2019932 3210

goto-quoted.shH A D01-Dec-20191,023 3612

help.shH A D01-Dec-2019791 223

inc-sea-bs.shH A D01-Dec-2019963 328

inc-sea-forward-nonregex.shH A D01-Dec-20191.2 KiB379

inc-sea-forward.shH A D01-Dec-20191.2 KiB379

inc-sea-history.shH A D01-Dec-20191.1 KiB4115

inc-sea-insensitive.shH A D01-Dec-20191.2 KiB369

index-apropos.shH A D01-Dec-2019988 326

index-completing.shH A D01-Dec-2019913 308

index-long-nodeline.shH A D01-Dec-20191 KiB3512

index-search.shH A D01-Dec-20191,013 317

index.shH A D01-Dec-2019977 3512

last-no-history.shH A D01-Dec-2019852 286

last-node-not-top-level.shH A D01-Dec-2019946 318

malformed-split.shH A D01-Dec-2019876 286

menu-sequence.shH A D01-Dec-2019966 3412

multiple-completions.shH A D01-Dec-2019970 318

next-quoted.shH A D01-Dec-20191,012 3512

no-file.shH A D01-Dec-2019858 233

no-index.shH A D01-Dec-2019851 276

node-no-file.shH A D01-Dec-2019856 234

node-targetH A D25-Aug-201953 42

quoted-label-and-target.shH A D01-Dec-20191 KiB3612

quoted-label-as-target.shH A D01-Dec-20191 KiB3512

quoted-manual-in-label.shH A D01-Dec-20191 KiB3512

quoted-manual-in-target.shH A D01-Dec-20191 KiB3612

quoted-target.shH A D01-Dec-20191 KiB3512

relative-path.shH A D01-Dec-2019884 233

relative-reference.shH A D01-Dec-20191,014 307

replace-viewed.shH A D01-Dec-20191.3 KiB4715

resize-in-completions.shH A D01-Dec-20191 KiB3410

search-after-tag.shH A D01-Dec-20191 KiB3612

search-empty.shH A D01-Dec-2019868 276

search-skip-screen.shH A D01-Dec-2019991 338

search-split-after-index.shH A D01-Dec-2019909 296

spec-file-node.shH A D01-Dec-2019780 213

spec-menu.shH A D01-Dec-2019914 243

spec-no-node.shH A D01-Dec-2019777 213

split-file-menu.shH A D01-Dec-20191.1 KiB3612

split-footnotes.shH A D01-Dec-2019932 276

split-index.shH A D01-Dec-20191,001 3512

split.shH A D01-Dec-2019801 233

star-note-non-whitespace.shH A D01-Dec-20191 KiB338

tab-argument.shH A D01-Dec-2019902 298

tab-no-xref.shH A D01-Dec-2019928 276

tab-skip-node.shH A D01-Dec-20191 KiB328

tab.shH A D01-Dec-2019984 3412

where-dir-file.shH A D01-Dec-2019849 244

window-split-dir.shH A D01-Dec-2019928 308

xref-across-lines-2.shH A D01-Dec-2019885 288

xref-across-lines.shH A D01-Dec-2019874 288

xref-to-anchor.shH A D01-Dec-20191.1 KiB3813

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