• Home
Name Date Size #Lines LOC

..--

MakefileD03-May-20244.3 KiB157125

README.regressD03-May-20243.7 KiB10578

addrmatch.shD03-May-20241.6 KiB4636

agent-getpeereid.shD03-May-2024930 4735

agent-pkcs11.shD03-May-20241.8 KiB7053

agent-ptrace.shD03-May-20241.1 KiB5444

agent-timeout.shD03-May-2024921 3730

agent.shD03-May-20241.9 KiB7662

banner.shD03-May-20241.2 KiB4532

broken-pipe.shD03-May-2024354 1611

brokenkeys.shD03-May-2024477 2412

bsd.regress.mkD03-May-20241.8 KiB8056

cert-hostkey.shD03-May-20247.4 KiB257217

cert-userkey.shD03-May-202410.3 KiB339269

cfgmatch.shD03-May-20243.8 KiB12898

cipher-speed.shD03-May-20241.3 KiB5242

conch-ciphers.shD03-May-2024823 3221

connect-privsep.shD03-May-2024702 2617

connect.shD03-May-2024280 148

dsa_ssh2.prvD03-May-2024863 1514

dsa_ssh2.pubD03-May-2024732 1413

dynamic-forward.shD03-May-20241.5 KiB6251

envpass.shD03-May-20241.5 KiB6148

exit-status.shD03-May-2024664 2518

forcecommand.shD03-May-20241.3 KiB4331

forwarding.shD03-May-20242.7 KiB10687

host-expand.shD03-May-2024389 1912

kextype.shD03-May-2024801 3123

key-options.shD03-May-20241.9 KiB7256

keygen-change.shD03-May-2024555 2417

keygen-convert.shD03-May-20241.1 KiB3422

keyscan.shD03-May-2024378 2012

keytype.shD03-May-20241.4 KiB5646

localcommand.shD03-May-2024386 1610

login-timeout.shD03-May-2024850 3021

multiplex.shD03-May-20242.8 KiB9267

portnum.shD03-May-2024620 3527

proto-mismatch.shD03-May-2024446 2014

proto-version.shD03-May-2024643 3528

proxy-connect.shD03-May-2024521 1914

putty-ciphers.shD03-May-2024729 3021

putty-kex.shD03-May-2024590 2718

putty-transfer.shD03-May-20241.1 KiB4535

reconfigure.shD03-May-2024687 3724

reexec.shD03-May-20241.2 KiB7348

rekey.shD03-May-2024748 3326

rsa_openssh.prvD03-May-2024883 1615

rsa_openssh.pubD03-May-2024213 21

rsa_ssh2.prvD03-May-2024924 1716

runtests.shD03-May-2024244 149

scp-ssh-wrapper.shD03-May-2024891 5849

scp.shD03-May-20243.5 KiB128102

sftp-badcmds.shD03-May-20242.3 KiB6852

sftp-batch.shD03-May-20241.2 KiB5840

sftp-cmds.shD03-May-20247.5 KiB249189

sftp-glob.shD03-May-20242.5 KiB7663

sftp.shD03-May-2024794 3628

ssh-com-client.shD03-May-20243.1 KiB135105

ssh-com-keygen.shD03-May-20241.4 KiB7564

ssh-com-sftp.shD03-May-20241.2 KiB6856

ssh-com.shD03-May-20242.7 KiB12095

ssh2putty.shD03-May-2024699 3524

sshd-log-wrapper.shD03-May-2024297 145

stderr-after-eof.shD03-May-2024911 4131

stderr-data.shD03-May-2024799 3427

t4.okD03-May-202448 21

t5.okD03-May-202466 21

test-exec.shD03-May-20248.2 KiB403318

transfer.shD03-May-2024707 3023

try-ciphers.shD03-May-20241.3 KiB5242

yes-head.shD03-May-2024438 1611

README.regress

1Overview.
2
3$ ./configure && make tests
4
5You'll see some progress info. A failure will cause either the make to
6abort or the driver script to report a "FATAL" failure.
7
8The test consists of 2 parts. The first is the file-based tests which is
9driven by the Makefile, and the second is a set of network or proxycommand
10based tests, which are driven by a driver script (test-exec.sh) which is
11called multiple times by the Makefile.
12
13Failures in the first part will cause the Makefile to return an error.
14Failures in the second part will print a "FATAL" message for the failed
15test and continue.
16
17OpenBSD has a system-wide regression test suite. OpenSSH Portable's test
18suite is based on OpenBSD's with modifications.
19
20
21Environment variables.
22
23SUDO: path to sudo command, if desired. Note that some systems (notably
24	systems using PAM) require sudo to execute some tests.
25TEST_SSH_TRACE: set to "yes" for verbose output from tests
26TEST_SSH_QUIET: set to "yes" to suppress non-fatal output.
27TEST_SSH_x: path to "ssh" command under test, where x=SSH,SSHD,SSHAGENT,SSHADD
28	SSHKEYGEN,SSHKEYSCAN,SFTP,SFTPSERVER
29OBJ: used by test scripts to access build dir.
30TEST_SHELL: shell used for running the test scripts.
31TEST_SSH_PORT: TCP port to be used for the listening tests.
32TEST_SSH_SSH_CONFOPTS: Configuration directives to be added to ssh_config
33	before running each test.
34TEST_SSH_SSHD_CONFOTPS: Configuration directives to be added to sshd_config
35	before running each test.
36
37
38Individual tests.
39
40You can run an individual test from the top-level Makefile, eg:
41$ make tests LTESTS=agent-timeout
42
43If you need to manipulate the environment more you can invoke test-exec.sh
44directly if you set up the path to find the binaries under test and the
45test scripts themselves, for example:
46
47$ cd regress
48$ PATH=`pwd`/..:$PATH:. TEST_SHELL=/bin/sh sh test-exec.sh `pwd` \
49    agent-timeout.sh
50ok agent timeout test
51
52
53Files.
54
55test-exec.sh: the main test driver. Sets environment, creates config files
56and keys and runs the specified test.
57
58At the time of writing, the individual tests are:
59agent-timeout.sh:	agent timeout test
60agent.sh:		simple agent test
61broken-pipe.sh:		broken pipe test
62connect-privsep.sh:	proxy connect with privsep
63connect.sh:		simple connect
64exit-status.sh:		remote exit status
65forwarding.sh:		local and remote forwarding
66keygen-change.sh:	change passphrase for key
67keyscan.sh:		keyscan
68proto-mismatch.sh:	protocol version mismatch
69proto-version.sh:	sshd version with different protocol combinations
70proxy-connect.sh:	proxy connect
71sftp.sh:		basic sftp put/get
72ssh-com-client.sh:	connect with ssh.com client
73ssh-com-keygen.sh:	ssh.com key import
74ssh-com-sftp.sh:	basic sftp put/get with ssh.com server
75ssh-com.sh:		connect to ssh.com server
76stderr-after-eof.sh:	stderr data after eof
77stderr-data.sh:		stderr data transfer
78transfer.sh:		transfer data
79try-ciphers.sh:		try ciphers
80yes-head.sh:		yes pipe head
81
82
83Problems?
84
85Run the failing test with shell tracing (-x) turned on:
86$ PATH=`pwd`/..:$PATH:. sh -x test-exec.sh `pwd` agent-timeout.sh
87
88Failed tests can be difficult to diagnose. Suggestions:
89- run the individual test via ./test-exec.sh `pwd` [testname]
90- set LogLevel to VERBOSE in test-exec.sh and enable syslogging of
91  auth.debug (eg to /var/log/authlog).
92
93
94Known Issues.
95
96- Similarly, if you do not have "scp" in your system's $PATH then the
97  multiplex scp tests will fail (since the system's shell startup scripts
98  will determine where the shell started by sshd will look for scp).
99
100- Recent GNU coreutils deprecate "head -[n]": this will cause the yes-head
101  test to fail.  The old behaviour can be restored by setting (and
102  exporting) _POSIX2_VERSION=199209 before running the tests.
103
104$Id: README.regress,v 1.12 2011/05/05 03:48:42 djm Exp $
105