Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
misc/ | H | - | - | 2,169 | 1,801 | |
unittests/ | H | - | - | 10,836 | 9,138 | |
Makefile | H A D | 19-Feb-2025 | 9.1 KiB | 317 | 271 | |
README.regress | H A D | 08-Sep-2021 | 5.7 KiB | 162 | 136 | |
addrmatch.sh | H A D | 08-Sep-2021 | 2.4 KiB | 69 | 54 | |
agent-getpeereid.sh | H A D | 16-Mar-2023 | 1.4 KiB | 61 | 48 | |
agent-pkcs11-cert.sh | H A D | 05-Jan-2024 | 2.9 KiB | 93 | 71 | |
agent-pkcs11-restrict.sh | H A D | 05-Jan-2024 | 5.6 KiB | 194 | 166 | |
agent-pkcs11.sh | H A D | 05-Jan-2024 | 1.2 KiB | 55 | 43 | |
agent-ptrace.sh | H A D | 11-Aug-2023 | 1.4 KiB | 68 | 56 | |
agent-restrict.sh | H A D | 16-Mar-2023 | 14.6 KiB | 496 | 432 | |
agent-subprocess.sh | H A D | 08-Sep-2021 | 517 | 23 | 13 | |
agent-timeout.sh | H A D | 08-Sep-2021 | 986 | 39 | 32 | |
agent.sh | H A D | 16-Mar-2023 | 6.6 KiB | 228 | 183 | |
allow-deny-users.sh | H A D | 08-Sep-2021 | 1.4 KiB | 44 | 31 | |
authinfo.sh | H A D | 11-Sep-2018 | 574 | 18 | 9 | |
banner.sh | H A D | 08-Sep-2021 | 1.3 KiB | 47 | 32 | |
broken-pipe.sh | H A D | 09-May-2018 | 281 | 13 | 8 | |
brokenkeys.sh | H A D | 09-May-2018 | 462 | 24 | 12 | |
cert-file.sh | H A D | 08-Sep-2021 | 5.3 KiB | 167 | 120 | |
cert-hostkey.sh | H A D | 13-Apr-2022 | 10.5 KiB | 326 | 275 | |
cert-userkey.sh | H A D | 13-Apr-2022 | 11.8 KiB | 397 | 324 | |
cfginclude.sh | H A D | 19-Feb-2025 | 4.9 KiB | 316 | 220 | |
cfgmatch.sh | H A D | 08-Sep-2021 | 4.8 KiB | 159 | 124 | |
cfgmatchlisten.sh | H A D | 19-Feb-2025 | 6.3 KiB | 203 | 155 | |
cfgparse.sh | H A D | 08-Sep-2021 | 2.2 KiB | 76 | 52 | |
channel-timeout.sh | H A D | 18-Mar-2024 | 4.3 KiB | 162 | 135 | |
check-perm.c | H A D | 14-Mar-2016 | 4.3 KiB | 206 | 163 | |
cipher-speed.sh | H A D | 13-Apr-2022 | 1 KiB | 43 | 31 | |
conch-ciphers.sh | H A D | 05-Jan-2024 | 879 | 32 | 21 | |
connect-privsep.sh | H A D | 08-Sep-2021 | 992 | 35 | 24 | |
connect-uri.sh | H A D | 11-May-2018 | 816 | 30 | 20 | |
connect.sh | H A D | 08-Sep-2021 | 407 | 19 | 12 | |
connection-timeout.sh | H A D | 06-Feb-2023 | 2 KiB | 88 | 72 | |
dhgex.sh | H A D | 16-Mar-2023 | 1.5 KiB | 62 | 49 | |
dropbear-ciphers.sh | H A D | 19-Feb-2025 | 1.1 KiB | 39 | 30 | |
dropbear-kex.sh | H A D | 19-Feb-2025 | 892 | 30 | 21 | |
dsa_ssh2.prv | H A D | 30-Oct-2013 | 863 | 15 | 14 | |
dsa_ssh2.pub | H A D | 30-Oct-2013 | 732 | 14 | 13 | |
dynamic-forward.sh | H A D | 18-Mar-2024 | 2.8 KiB | 112 | 94 | |
ed25519_openssh.prv | H A D | 08-Sep-2021 | 419 | 8 | 7 | |
ed25519_openssh.pub | H A D | 08-Sep-2021 | 81 | 2 | 1 | |
envpass.sh | H A D | 19-Oct-2022 | 3.2 KiB | 126 | 108 | |
exit-status-signal.sh | H A D | 19-Dec-2021 | 481 | 25 | 15 | |
exit-status.sh | H A D | 09-May-2018 | 562 | 23 | 16 | |
forcecommand.sh | H A D | 05-Jan-2024 | 2.2 KiB | 68 | 52 | |
forward-control.sh | H A D | 11-Aug-2023 | 7.5 KiB | 229 | 185 | |
forwarding.sh | H A D | 08-Sep-2021 | 4.3 KiB | 137 | 108 | |
host-expand.sh | H A D | 08-Sep-2021 | 384 | 17 | 9 | |
hostbased.sh | H A D | 06-Feb-2023 | 2.1 KiB | 67 | 47 | |
hostkey-agent.sh | H A D | 13-Apr-2022 | 2.8 KiB | 88 | 67 | |
hostkey-rotate.sh | H A D | 13-Apr-2022 | 5.1 KiB | 153 | 112 | |
integrity.sh | H A D | 16-Mar-2023 | 2.3 KiB | 77 | 59 | |
kextype.sh | H A D | 08-Sep-2021 | 587 | 26 | 17 | |
key-options.sh | H A D | 19-Feb-2025 | 3.4 KiB | 125 | 104 | |
keygen-change.sh | H A D | 08-Sep-2021 | 522 | 23 | 17 | |
keygen-comment.sh | H A D | 08-Sep-2021 | 1.4 KiB | 53 | 43 | |
keygen-convert.sh | H A D | 08-Sep-2021 | 1.7 KiB | 56 | 40 | |
keygen-knownhosts.sh | H A D | 08-Sep-2021 | 6.4 KiB | 221 | 146 | |
keygen-moduli.sh | H A D | 08-Sep-2021 | 900 | 28 | 18 | |
keygen-sshfp.sh | H A D | 16-Mar-2023 | 1.7 KiB | 50 | 38 | |
keys-command.sh | H A D | 13-Apr-2022 | 2.4 KiB | 80 | 60 | |
keyscan.sh | H A D | 08-Sep-2021 | 492 | 26 | 19 | |
keytype.sh | H A D | 08-Sep-2021 | 2.4 KiB | 84 | 73 | |
knownhosts-command.sh | H A D | 19-Dec-2021 | 1.6 KiB | 56 | 46 | |
knownhosts.sh | H A D | 16-Mar-2023 | 1.2 KiB | 36 | 26 | |
krl.sh | H A D | 06-Feb-2023 | 7 KiB | 218 | 172 | |
limit-keytype.sh | H A D | 08-Sep-2021 | 4.7 KiB | 134 | 98 | |
localcommand.sh | H A D | 08-Sep-2021 | 351 | 14 | 8 | |
login-timeout.sh | H A D | 13-Apr-2022 | 581 | 19 | 13 | |
match-subsystem.sh | H A D | 09-Oct-2023 | 2.2 KiB | 91 | 68 | |
mkdtemp.c | H A D | 11-Sep-2018 | 1.5 KiB | 62 | 37 | |
modpipe.c | H A D | 08-Sep-2021 | 3.8 KiB | 151 | 123 | |
moduli.in | H A D | 06-Mar-2017 | 1.6 KiB | 4 | 3 | |
multiplex.sh | H A D | 19-Feb-2025 | 7.8 KiB | 211 | 173 | |
multipubkey.sh | H A D | 08-Sep-2021 | 2.7 KiB | 76 | 51 | |
netcat.c | H A D | 08-Sep-2021 | 40.4 KiB | 1,687 | 1,315 | |
penalty-expire.sh | H A D | 19-Feb-2025 | 981 | 36 | 21 | |
penalty.sh | H A D | 19-Feb-2025 | 1.7 KiB | 53 | 32 | |
percent.sh | H A D | 19-Feb-2025 | 3.5 KiB | 125 | 97 | |
portnum.sh | H A D | 08-Sep-2021 | 624 | 35 | 27 | |
principals-command.sh | H A D | 13-Apr-2022 | 5.2 KiB | 169 | 127 | |
proto-mismatch.sh | H A D | 09-May-2018 | 368 | 18 | 12 | |
proto-version.sh | H A D | 09-May-2018 | 527 | 31 | 24 | |
proxy-connect.sh | H A D | 08-Sep-2021 | 706 | 28 | 21 | |
putty-ciphers.sh | H A D | 18-Mar-2024 | 1.4 KiB | 56 | 41 | |
putty-kex.sh | H A D | 18-Mar-2024 | 970 | 37 | 24 | |
putty-transfer.sh | H A D | 18-Mar-2024 | 1,015 | 42 | 33 | |
reconfigure.sh | H A D | 08-Sep-2021 | 1.4 KiB | 66 | 48 | |
reexec.sh | H A D | 06-Feb-2023 | 1.1 KiB | 58 | 35 | |
rekey.sh | H A D | 19-Feb-2025 | 5.2 KiB | 211 | 185 | |
rsa_openssh.prv | H A D | 30-Oct-2013 | 883 | 16 | 15 | |
rsa_openssh.pub | H A D | 30-Oct-2013 | 213 | 2 | 1 | |
rsa_ssh2.prv | H A D | 30-Oct-2013 | 924 | 17 | 16 | |
scp-ssh-wrapper.sh | H A D | 08-Sep-2021 | 1 KiB | 72 | 63 | |
scp-uri.sh | H A D | 06-Feb-2023 | 2.2 KiB | 80 | 59 | |
scp.sh | H A D | 09-Oct-2023 | 6 KiB | 206 | 164 | |
scp3.sh | H A D | 09-Oct-2023 | 1.7 KiB | 70 | 54 | |
servcfginclude.sh | H A D | 08-Sep-2021 | 3.8 KiB | 189 | 139 | |
setuid-allowed.c | H A D | 11-Sep-2018 | 1.5 KiB | 59 | 32 | |
sftp-badcmds.sh | H A D | 08-Sep-2021 | 2.2 KiB | 66 | 50 | |
sftp-batch.sh | H A D | 30-Oct-2013 | 1.2 KiB | 56 | 38 | |
sftp-chroot.sh | H A D | 11-Aug-2023 | 1.2 KiB | 48 | 34 | |
sftp-cmds.sh | H A D | 19-Feb-2025 | 7.4 KiB | 233 | 174 | |
sftp-glob.sh | H A D | 30-Oct-2013 | 2.5 KiB | 76 | 63 | |
sftp-perm.sh | H A D | 08-Sep-2021 | 5.4 KiB | 272 | 210 | |
sftp-uri.sh | H A D | 11-May-2018 | 1.6 KiB | 64 | 48 | |
sftp.sh | H A D | 11-May-2018 | 737 | 33 | 26 | |
ssh-com-client.sh | H A D | 30-Oct-2013 | 3 KiB | 131 | 102 | |
ssh-com-keygen.sh | H A D | 30-Oct-2013 | 1.4 KiB | 75 | 64 | |
ssh-com-sftp.sh | H A D | 30-Oct-2013 | 1.2 KiB | 66 | 54 | |
ssh-com.sh | H A D | 09-May-2018 | 2.7 KiB | 120 | 95 | |
ssh2putty.sh | H A D | 08-Sep-2021 | 746 | 37 | 25 | |
sshcfgparse.sh | H A D | 08-Sep-2021 | 4.8 KiB | 120 | 100 | |
sshfp-connect.sh | H A D | 19-Dec-2021 | 2.8 KiB | 67 | 36 | |
sshsig.sh | H A D | 05-Jan-2024 | 21.9 KiB | 541 | 422 | |
stderr-after-eof.sh | H A D | 09-May-2018 | 603 | 25 | 17 | |
stderr-data.sh | H A D | 09-May-2018 | 709 | 28 | 22 | |
t11.ok | H A D | 22-Jan-2016 | 51 | 2 | 1 | |
t4.ok | H A D | 22-Jan-2016 | 52 | 2 | 1 | |
t5.ok | H A D | 30-Oct-2013 | 66 | 2 | 1 | |
test-exec.sh | H A D | 19-Feb-2025 | 26.2 KiB | 1,052 | 849 | |
timestamp.c | H A D | 16-Mar-2023 | 1.4 KiB | 47 | 19 | |
transfer.sh | H A D | 09-May-2018 | 583 | 24 | 18 | |
try-ciphers.sh | H A D | 09-May-2018 | 715 | 29 | 20 | |
valgrind-unit.sh | H A D | 08-Sep-2021 | 640 | 25 | 15 | |
yes-head.sh | H A D | 19-Feb-2025 | 402 | 14 | 9 |
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 23SKIP_UNIT: Skip unit tests. 24SUDO: path to sudo/doas command, if desired. Note that some systems 25 (notably systems using PAM) require sudo to execute some tests. 26LTESTS: Whitespace separated list of tests (filenames without the .sh 27 extension) to run. 28SKIP_LTESTS: Whitespace separated list of tests to skip. 29OBJ: used by test scripts to access build dir. 30TEST_SHELL: shell used for running the test scripts. 31TEST_SSH_FAIL_FATAL: set to "yes" to make any failure abort the test 32 currently in progress. 33TEST_SSH_PORT: TCP port to be used for the listening tests. 34TEST_SSH_QUIET: set to "yes" to suppress non-fatal output. 35TEST_SSH_SSHD_CONFOPTS: Configuration directives to be added to sshd_config 36 before running each test. 37TEST_SSH_SSH_CONFOPTS: Configuration directives to be added to 38 ssh_config before running each test. 39TEST_SSH_TRACE: set to "yes" for verbose output from tests 40TEST_SSH_x: path to "ssh" command under test, where x is one of 41 SSH, SSHD, SSHAGENT, SSHADD, SSHKEYGEN, SSHKEYSCAN, SFTP or 42 SFTPSERVER 43USE_VALGRIND: Run the tests under valgrind memory checker. 44 45 46Individual tests. 47 48You can run an individual test from the top-level Makefile, eg: 49$ make tests LTESTS=agent-timeout 50 51If you need to manipulate the environment more you can invoke test-exec.sh 52directly if you set up the path to find the binaries under test and the 53test scripts themselves, for example: 54 55$ cd regress 56$ PATH=`pwd`/..:$PATH:. TEST_SHELL=/bin/sh sh test-exec.sh `pwd` \ 57 agent-timeout.sh 58ok agent timeout test 59 60 61Files. 62 63test-exec.sh: the main test driver. Sets environment, creates config files 64and keys and runs the specified test. 65 66At the time of writing, the individual tests are: 67connect.sh: simple connect 68proxy-connect.sh: proxy connect 69connect-privsep.sh: proxy connect with privsep 70connect-uri.sh: uri connect 71proto-version.sh: sshd version with different protocol combinations 72proto-mismatch.sh: protocol version mismatch 73exit-status.sh: remote exit status 74envpass.sh: environment passing 75transfer.sh: transfer data 76banner.sh: banner 77rekey.sh: rekey 78stderr-data.sh: stderr data transfer 79stderr-after-eof.sh: stderr data after eof 80broken-pipe.sh: broken pipe test 81try-ciphers.sh: try ciphers 82yes-head.sh: yes pipe head 83login-timeout.sh: connect after login grace timeout 84agent.sh: simple connect via agent 85agent-getpeereid.sh: disallow agent attach from other uid 86agent-timeout.sh: agent timeout test 87agent-ptrace.sh: disallow agent ptrace attach 88keyscan.sh: keyscan 89keygen-change.sh: change passphrase for key 90keygen-convert.sh: convert keys 91keygen-moduli.sh: keygen moduli 92key-options.sh: key options 93scp.sh: scp 94scp-uri.sh: scp-uri 95sftp.sh: basic sftp put/get 96sftp-chroot.sh: sftp in chroot 97sftp-cmds.sh: sftp command 98sftp-badcmds.sh: sftp invalid commands 99sftp-batch.sh: sftp batchfile 100sftp-glob.sh: sftp glob 101sftp-perm.sh: sftp permissions 102sftp-uri.sh: sftp-uri 103ssh-com-client.sh: connect with ssh.com client 104ssh-com-keygen.sh: ssh.com key import 105ssh-com-sftp.sh: basic sftp put/get with ssh.com server 106ssh-com.sh: connect to ssh.com server 107reconfigure.sh: simple connect after reconfigure 108dynamic-forward.sh: dynamic forwarding 109forwarding.sh: local and remote forwarding 110multiplex.sh: connection multiplexing 111reexec.sh: reexec tests 112brokenkeys.sh: broken keys 113sshcfgparse.sh: ssh config parse 114cfgparse.sh: sshd config parse 115cfgmatch.sh: sshd_config match 116cfgmatchlisten.sh: sshd_config matchlisten 117addrmatch.sh: address match 118localcommand.sh: localcommand 119forcecommand.sh: forced command 120portnum.sh: port number parsing 121keytype.sh: login with different key types 122kextype.sh: login with different key exchange algorithms 123cert-hostkey.sh certified host keys 124cert-userkey.sh: certified user keys 125host-expand.sh: expand %h and %n 126keys-command.sh: authorized keys from command 127forward-control.sh: sshd control of local and remote forwarding 128integrity.sh: integrity 129krl.sh: key revocation lists 130multipubkey.sh: multiple pubkey 131limit-keytype.sh: restrict pubkey type 132hostkey-agent.sh: hostkey agent 133keygen-knownhosts.sh: ssh-keygen known_hosts 134hostkey-rotate.sh: hostkey rotate 135principals-command.sh: authorized principals command 136cert-file.sh: ssh with certificates 137cfginclude.sh: config include 138allow-deny-users.sh: AllowUsers/DenyUsers 139authinfo.sh: authinfo 140 141 142Problems? 143 144Run the failing test with shell tracing (-x) turned on: 145$ PATH=`pwd`/..:$PATH:. sh -x test-exec.sh `pwd` agent-timeout.sh 146 147Failed tests can be difficult to diagnose. Suggestions: 148- run the individual test via ./test-exec.sh `pwd` [testname] 149- set LogLevel to VERBOSE in test-exec.sh and enable syslogging of 150 auth.debug (eg to /var/log/authlog). 151 152 153Known Issues. 154 155- Similarly, if you do not have "scp" in your system's $PATH then the 156 multiplex scp tests will fail (since the system's shell startup scripts 157 will determine where the shell started by sshd will look for scp). 158 159- Recent GNU coreutils deprecate "head -[n]": this will cause the yes-head 160 test to fail. The old behaviour can be restored by setting (and 161 exporting) _POSIX2_VERSION=199209 before running the tests. 162