NameDateSize

..03-Jul-2020312

addrmatch.shH A D18-Aug-20162.1 KiB

agent-getpeereid.shH A D03-Sep-20171.1 KiB

agent-pkcs11.shH A D18-Aug-20161.9 KiB

agent-ptrace.shH A D18-Aug-20161.3 KiB

agent-timeout.shH A D18-Aug-2016928

agent.shH A D18-Aug-20162 KiB

allow-deny-users.shH A D03-Sep-20171.2 KiB

banner.shH A D18-Aug-20161.2 KiB

broken-pipe.shH A D18-Aug-2016367

brokenkeys.shH A D18-Aug-2016477

cert-file.shH A D03-Sep-20175.6 KiB

cert-hostkey.shH A D03-Sep-201710.1 KiB

cert-userkey.shH A D03-Sep-201711.9 KiB

cfginclude.shH A D03-Sep-20174.4 KiB

cfgmatch.shH A D18-Aug-20163.8 KiB

cfgparse.shH A D03-Sep-20172.2 KiB

check-perm.cH A D03-Sep-20174.3 KiB

cipher-speed.shH A D18-Aug-20161.2 KiB

conch-ciphers.shH A D18-Aug-2016796

connect-privsep.shH A D03-Sep-20171.2 KiB

connect.shH A D18-Aug-2016293

dhgex.shH A D18-Aug-20161.5 KiB

dsa_ssh2.prvH A D18-Aug-2016863

dsa_ssh2.pubH A D18-Aug-2016732

dynamic-forward.shH A D18-Aug-20161.5 KiB

envpass.shH A D18-Aug-20161.5 KiB

exit-status.shH A D18-Aug-2016677

forcecommand.shH A D18-Aug-20161.3 KiB

forward-control.shH A D18-Aug-20165.4 KiB

forwarding.shH A D03-Sep-20174.6 KiB

host-expand.shH A D18-Aug-2016468

hostkey-agent.shH A D18-Aug-20161.6 KiB

hostkey-rotate.shH A D18-Aug-20163.9 KiB

integrity.shH A D03-Sep-20172.3 KiB

kextype.shH A D18-Aug-2016587

key-options.shH A D18-Aug-20161.9 KiB

keygen-change.shH A D18-Aug-2016639

keygen-convert.shH A D18-Aug-20161.1 KiB

keygen-knownhosts.shH A D18-Aug-20165.8 KiB

keygen-moduli.shH A D03-Sep-2017702

keys-command.shH A D03-Sep-20172.4 KiB

keyscan.shH A D18-Aug-2016459

keytype.shH A D18-Aug-20161.9 KiB

krl.shH A D18-Aug-20165.7 KiB

limit-keytype.shH A D18-Aug-20163.6 KiB

localcommand.shH A D18-Aug-2016398

login-timeout.shH A D03-Sep-2017947

MakefileH A D03-Sep-20176.6 KiB

misc/H03-Sep-20174

modpipe.cH A D03-Sep-20173.8 KiB

moduli.inH A D03-Sep-20171.6 KiB

multiplex.shH A D18-Aug-20167.1 KiB

multipubkey.shH A D18-Aug-20162.3 KiB

netcat.cH A D03-Sep-201739.8 KiB

portnum.shH A D18-Aug-2016624

principals-command.shH A D03-Sep-20175.5 KiB

proto-mismatch.shH A D18-Aug-2016473

proto-version.shH A D18-Aug-2016676

proxy-connect.shH A D18-Aug-2016973

putty-ciphers.shH A D03-Sep-2017692

putty-kex.shH A D03-Sep-2017546

putty-transfer.shH A D03-Sep-20171.1 KiB

README.regressH A D18-Aug-20163.7 KiB

reconfigure.shH A D18-Aug-2016996

reexec.shH A D03-Sep-20171.1 KiB

rekey.shH A D18-Aug-20164.1 KiB

rsa_openssh.prvH A D18-Aug-2016883

rsa_openssh.pubH A D18-Aug-2016213

rsa_ssh2.prvH A D18-Aug-2016924

scp-ssh-wrapper.shH A D18-Aug-2016914

scp.shH A D18-Aug-20163.5 KiB

setuid-allowed.cH A D18-Aug-20161.4 KiB

sftp-badcmds.shH A D18-Aug-20162.2 KiB

sftp-batch.shH A D18-Aug-20161.2 KiB

sftp-chroot.shH A D03-Sep-2017840

sftp-cmds.shH A D18-Aug-20167.3 KiB

sftp-glob.shH A D18-Aug-20162.5 KiB

sftp-perm.shH A D18-Aug-20165.2 KiB

sftp.shH A D18-Aug-2016758

ssh-com-client.shH A D18-Aug-20163 KiB

ssh-com-keygen.shH A D18-Aug-20161.4 KiB

ssh-com-sftp.shH A D18-Aug-20161.2 KiB

ssh-com.shH A D18-Aug-20162.7 KiB

ssh2putty.shH A D18-Aug-2016693

sshcfgparse.shH A D03-Sep-20171.3 KiB

sshd-log-wrapper.shH A D18-Aug-2016285

stderr-after-eof.shH A D18-Aug-2016610

stderr-data.shH A D18-Aug-2016758

t11.okH A D18-Aug-201651

t4.okH A D18-Aug-201652

t5.okH A D18-Aug-201666

test-exec.shH A D03-Sep-201712.6 KiB

transfer.shH A D18-Aug-2016680

try-ciphers.shH A D18-Aug-20161,017

unittests/H03-Sep-201713

valgrind-unit.shH A D18-Aug-2016497

yes-head.shH A D18-Aug-2016451

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_CONFOPTS: 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