Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
misc/ | 23-Nov-2023 | - | 576 | 483 | ||
unittests/ | 23-Nov-2023 | - | 7,336 | 6,204 | ||
Makefile | D | 23-Nov-2023 | 6.6 KiB | 234 | 188 | |
README.regress | D | 23-Nov-2023 | 3.7 KiB | 105 | 78 | |
addrmatch.sh | D | 23-Nov-2023 | 2.1 KiB | 57 | 46 | |
agent-getpeereid.sh | D | 23-Nov-2023 | 1.1 KiB | 57 | 45 | |
agent-pkcs11.sh | D | 23-Nov-2023 | 1.9 KiB | 72 | 54 | |
agent-ptrace.sh | D | 23-Nov-2023 | 1.3 KiB | 67 | 55 | |
agent-timeout.sh | D | 23-Nov-2023 | 928 | 37 | 30 | |
agent.sh | D | 23-Nov-2023 | 2 KiB | 82 | 68 | |
allow-deny-users.sh | D | 23-Nov-2023 | 1.2 KiB | 41 | 29 | |
banner.sh | D | 23-Nov-2023 | 1.2 KiB | 45 | 32 | |
broken-pipe.sh | D | 23-Nov-2023 | 367 | 16 | 11 | |
brokenkeys.sh | D | 23-Nov-2023 | 477 | 24 | 12 | |
cert-file.sh | D | 23-Nov-2023 | 5.6 KiB | 170 | 122 | |
cert-hostkey.sh | D | 23-Nov-2023 | 10.1 KiB | 315 | 268 | |
cert-userkey.sh | D | 23-Nov-2023 | 11.9 KiB | 391 | 318 | |
cfginclude.sh | D | 23-Nov-2023 | 4.4 KiB | 294 | 202 | |
cfgmatch.sh | D | 23-Nov-2023 | 3.8 KiB | 128 | 98 | |
cfgparse.sh | D | 23-Nov-2023 | 2.2 KiB | 76 | 52 | |
check-perm.c | D | 23-Nov-2023 | 4.3 KiB | 206 | 163 | |
cipher-speed.sh | D | 23-Nov-2023 | 1.2 KiB | 52 | 42 | |
conch-ciphers.sh | D | 23-Nov-2023 | 796 | 29 | 19 | |
connect-privsep.sh | D | 23-Nov-2023 | 1.2 KiB | 42 | 30 | |
connect.sh | D | 23-Nov-2023 | 293 | 14 | 8 | |
dhgex.sh | D | 23-Nov-2023 | 1.5 KiB | 61 | 47 | |
dsa_ssh2.prv | D | 23-Nov-2023 | 863 | 15 | 14 | |
dsa_ssh2.pub | D | 23-Nov-2023 | 732 | 14 | 13 | |
dynamic-forward.sh | D | 23-Nov-2023 | 1.5 KiB | 60 | 50 | |
envpass.sh | D | 23-Nov-2023 | 1.5 KiB | 61 | 48 | |
exit-status.sh | D | 23-Nov-2023 | 677 | 25 | 18 | |
forcecommand.sh | D | 23-Nov-2023 | 1.3 KiB | 45 | 33 | |
forward-control.sh | D | 23-Nov-2023 | 5.4 KiB | 169 | 143 | |
forwarding.sh | D | 23-Nov-2023 | 4.6 KiB | 150 | 124 | |
host-expand.sh | D | 23-Nov-2023 | 468 | 20 | 12 | |
hostkey-agent.sh | D | 23-Nov-2023 | 1.6 KiB | 54 | 41 | |
hostkey-rotate.sh | D | 23-Nov-2023 | 3.9 KiB | 111 | 78 | |
integrity.sh | D | 23-Nov-2023 | 2.3 KiB | 75 | 59 | |
kextype.sh | D | 23-Nov-2023 | 587 | 26 | 17 | |
key-options.sh | D | 23-Nov-2023 | 1.9 KiB | 72 | 56 | |
keygen-change.sh | D | 23-Nov-2023 | 639 | 29 | 21 | |
keygen-convert.sh | D | 23-Nov-2023 | 1.1 KiB | 34 | 22 | |
keygen-knownhosts.sh | D | 23-Nov-2023 | 5.8 KiB | 198 | 132 | |
keygen-moduli.sh | D | 23-Nov-2023 | 702 | 19 | 10 | |
keys-command.sh | D | 23-Nov-2023 | 2.4 KiB | 83 | 62 | |
keyscan.sh | D | 23-Nov-2023 | 459 | 25 | 16 | |
keytype.sh | D | 23-Nov-2023 | 1.9 KiB | 74 | 62 | |
krl.sh | D | 23-Nov-2023 | 5.7 KiB | 186 | 144 | |
limit-keytype.sh | D | 23-Nov-2023 | 3.6 KiB | 98 | 68 | |
localcommand.sh | D | 23-Nov-2023 | 398 | 16 | 10 | |
login-timeout.sh | D | 23-Nov-2023 | 947 | 33 | 24 | |
modpipe.c | D | 23-Nov-2023 | 3.8 KiB | 151 | 123 | |
moduli.in | D | 23-Nov-2023 | 1.6 KiB | 4 | 3 | |
multiplex.sh | D | 23-Nov-2023 | 7.1 KiB | 191 | 153 | |
multipubkey.sh | D | 23-Nov-2023 | 2.3 KiB | 67 | 42 | |
netcat.c | D | 23-Nov-2023 | 39.8 KiB | 1,660 | 1,293 | |
portnum.sh | D | 23-Nov-2023 | 624 | 35 | 27 | |
principals-command.sh | D | 23-Nov-2023 | 5.5 KiB | 169 | 130 | |
proto-mismatch.sh | D | 23-Nov-2023 | 473 | 22 | 16 | |
proto-version.sh | D | 23-Nov-2023 | 676 | 37 | 30 | |
proxy-connect.sh | D | 23-Nov-2023 | 973 | 33 | 25 | |
putty-ciphers.sh | D | 23-Nov-2023 | 692 | 27 | 19 | |
putty-kex.sh | D | 23-Nov-2023 | 546 | 23 | 15 | |
putty-transfer.sh | D | 23-Nov-2023 | 1.1 KiB | 42 | 33 | |
reconfigure.sh | D | 23-Nov-2023 | 996 | 48 | 34 | |
reexec.sh | D | 23-Nov-2023 | 1.1 KiB | 71 | 45 | |
rekey.sh | D | 23-Nov-2023 | 4.1 KiB | 173 | 150 | |
rsa_openssh.prv | D | 23-Nov-2023 | 883 | 16 | 15 | |
rsa_openssh.pub | D | 23-Nov-2023 | 213 | 2 | 1 | |
rsa_ssh2.prv | D | 23-Nov-2023 | 924 | 17 | 16 | |
scp-ssh-wrapper.sh | D | 23-Nov-2023 | 914 | 60 | 51 | |
scp.sh | D | 23-Nov-2023 | 3.5 KiB | 127 | 101 | |
setuid-allowed.c | D | 23-Nov-2023 | 1.4 KiB | 58 | 31 | |
sftp-badcmds.sh | D | 23-Nov-2023 | 2.2 KiB | 66 | 50 | |
sftp-batch.sh | D | 23-Nov-2023 | 1.2 KiB | 56 | 38 | |
sftp-chroot.sh | D | 23-Nov-2023 | 840 | 32 | 21 | |
sftp-cmds.sh | D | 23-Nov-2023 | 7.3 KiB | 233 | 174 | |
sftp-glob.sh | D | 23-Nov-2023 | 2.5 KiB | 76 | 63 | |
sftp-perm.sh | D | 23-Nov-2023 | 5.2 KiB | 270 | 217 | |
sftp.sh | D | 23-Nov-2023 | 758 | 33 | 26 | |
ssh-com-client.sh | D | 23-Nov-2023 | 3 KiB | 131 | 102 | |
ssh-com-keygen.sh | D | 23-Nov-2023 | 1.4 KiB | 75 | 64 | |
ssh-com-sftp.sh | D | 23-Nov-2023 | 1.2 KiB | 66 | 54 | |
ssh-com.sh | D | 23-Nov-2023 | 2.7 KiB | 120 | 95 | |
ssh2putty.sh | D | 23-Nov-2023 | 693 | 35 | 24 | |
sshcfgparse.sh | D | 23-Nov-2023 | 1.3 KiB | 30 | 21 | |
sshd-log-wrapper.sh | D | 23-Nov-2023 | 285 | 12 | 3 | |
stderr-after-eof.sh | D | 23-Nov-2023 | 610 | 25 | 17 | |
stderr-data.sh | D | 23-Nov-2023 | 758 | 30 | 24 | |
t11.ok | D | 23-Nov-2023 | 51 | 2 | 1 | |
t4.ok | D | 23-Nov-2023 | 52 | 2 | 1 | |
t5.ok | D | 23-Nov-2023 | 66 | 2 | 1 | |
test-exec.sh | D | 23-Nov-2023 | 12.6 KiB | 581 | 458 | |
transfer.sh | D | 23-Nov-2023 | 680 | 27 | 21 | |
try-ciphers.sh | D | 23-Nov-2023 | 1,017 | 43 | 33 | |
valgrind-unit.sh | D | 23-Nov-2023 | 497 | 21 | 13 | |
yes-head.sh | D | 23-Nov-2023 | 451 | 16 | 11 |
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