summaryrefslogtreecommitdiffstats
path: root/regress (follow)
Commit message (Collapse)AuthorAgeFilesLines
* upstream: add some tests for parse_absolute_time(), including casesdjm@openbsd.org2022-08-111-1/+63
| | | | | | where it is forced to the UTC timezone. bz3468 ok dtucker OpenBSD-Regress-ID: ea07ca31c2f3847a38df028ca632763ae44e8759
* upstream: Restore missing "!" in TEST_SSH_ELAPSED_TIMES test.dtucker@openbsd.org2022-07-251-2/+2
| | | | OpenBSD-Regress-ID: 38783f9676ec348c5a792caecee9a16e354b37b0
* upstream: Test TEST_SSH_ELAPSED_TIMES for empty string notdtucker@openbsd.org2022-07-251-2/+2
| | | | | | | executable. No-op on most platforms but should prevent warnings in -portable on systems that don't have 'date %s'. OpenBSD-Regress-ID: e39d79867b8065e33d0c5926fa1a31f85659d2a4
* Convert "have_prog" function into "which".Darren Tucker2022-07-231-1/+9
| | | | | | | "which" and its behaviour is not standardized, so convert the existing have_prog function into "which" so we can rely on it being available and what its semantics are. Add a have_prog wrapper that maintains the existing behaviour.
* Skip scp3 test if there's no scp on remote path.Darren Tucker2022-07-231-0/+6
| | | | | scp -3 ends up using the scp that's in the remote path and will fail if one is not available. Based on a patch from rapier at psc.edu.
* crank SSH_SK_VERSION_MAJOR in sk-dummy.soDamien Miller2022-07-201-1/+1
|
* Remove unintended changes.Darren Tucker2022-07-141-13/+0
| | | | | | I inadvertently included a couple of local changes with the OpenSSL 3.0.4 change. Revert, anything that should be there will be committed separately.
* Only refuse to use OpenSSL 3.0.4 on x86_64.Darren Tucker2022-07-131-0/+13
| | | | | The potential RCE only impacts x86_64, so only refuse to use it if we're targetting a potentially impacted architecture. ok djm@
* upstream: Add TEST_REGRESS_CACHE_DIR.dtucker@openbsd.org2022-07-041-1/+28
| | | | | | | If set, it is used to cache regress test names that have succeeded and skip those on a re-run. OpenBSD-Regress-ID: a7570dd29a58df59f2cca647c3c2ec989b49f247
* upstream: test setenv in both client and server, test first-match-winsdjm@openbsd.org2022-06-032-4/+79
| | | | | | too OpenBSD-Regress-ID: 4c8804f9db38a02db480b9923317457b377fe34b
* fix some bugs in the fuzzerDamien Miller2022-05-301-1/+6
|
* fuzzer for authorized_keys parsingDamien Miller2022-05-272-1/+80
| | | | | mostly redundant to authopt_fuzz, but it's sensitive code so IMO it makes sense to test this layer too
* upstream: regress test for in-place transfers and clobbering largerdjm@openbsd.org2022-05-161-1/+26
| | | | | | files with smaller ones; would have caught last regression in scp(1) OpenBSD-Regress-ID: 19de4e88dd3a4f7e5c1618c9be3c32415bd93bc2
* upstream: Only run agent-ptrace.sh if gdb is available as allanton@openbsd.org2022-05-161-1/+1
| | | | | | architectures do not ship with gdb. OpenBSD-Regress-ID: ec53e928803e6b87f9ac142d38888ca79a45348d
* upstream: It looks like we can't completely avoiddtucker@openbsd.org2022-04-211-7/+18
| | | | | | | waiting for processes to exit so retrieve the pid via controlmaster and use that. OpenBSD-Regress-ID: 8246f00f22b14e49d2ff1744c94897ead33d457b
* upstream: Use ssh -f and ControlPersist ..dtucker@openbsd.org2022-04-201-13/+11
| | | | | | | to start up test forwards and ssh -O stop to shut them down intead of sleep loops. This speeds up the test by an order of magnitude. OpenBSD-Regress-ID: eb3db5f805100919b092a3b2579c611fba3e83e7
* upstream: Simplify forward-control test.dtucker@openbsd.org2022-04-201-25/+9
| | | | | | | | Since we no longer need to support SSH1 we don't need to run shell commands on the other end of the connection and can use ssh -N instead. This also makes the test less racy. OpenBSD-Regress-ID: 32e94ce272820cc398f30b848b2b0f080d10302c
* upstream: regression test for sftp cp commanddjm@openbsd.org2022-04-201-1/+6
| | | | OpenBSD-Regress-ID: c96bea9edde3a384b254785e7f9b2b24a81cdf82
* Skip agent-getpeereid when running as root.Darren Tucker2022-02-211-0/+3
|
* upstream: Aproximate realpath on the expected output by dedupingdtucker@openbsd.org2022-02-201-2/+3
| | | | | | | leading slashes. Fixes test failure when user's home dir is / which is possible in some portable configurations. OpenBSD-Regress-ID: 53b8c53734f8893806961475c7106397f98d9f63
* find sk-dummy.so when build_dir != src_dirDamien Miller2022-02-171-0/+2
| | | | spotted by Corinna Vinschen; feedback & ok dtucker@
* Fix helper include path and remove excess code.Darren Tucker2022-02-111-79/+1
| | | | | Looks like test_hpdelim.c was imported twice into the same file. Spotted by kevin.brott at gmail com and chris at cataclysmal org.
* upstream: Add test for empty hostname with port.dtucker@openbsd.org2022-02-101-1/+12
| | | | OpenBSD-Regress-ID: e19e89d3c432b68997667efea44cf015bbe2a7e3
* upstream: Add unit tests for hpdelim.dtucker@openbsd.org2022-02-103-2/+154
| | | | OpenBSD-Regress-ID: be97b85c19895e6a1ce13c639765a3b48fd95018
* portable-specific string array constificationDamien Miller2022-02-021-1/+1
| | | | from Mike Frysinger
* upstream: test 'ssh-keygen -Y find-principals' with wildcarddjm@openbsd.org2022-02-021-1/+18
| | | | | | principals; from Fabian Stelzer OpenBSD-Regress-ID: fbe4da5f0032e7ab496527a5bf0010fd700f8f40
* upstream: Enable all supported ciphers and macs in the serverdtucker@openbsd.org2022-02-021-0/+10
| | | | | | | before trying to benchmark them. Increase the data file size to get more signal. OpenBSD-Regress-ID: dc3697d9f7defdfc51c608782c8e750128e46eb6
* Improve compatibility of early exit trap handling.Darren Tucker2022-01-201-2/+7
| | | | | | | | | Dash (as used by the github runners) has some differences in its trap builtin: - it doesn't have -p (which is fine, that's not in posix). - it doesn't work in a subshell (which turns out to be in compliance with posix, which means bash isn't). - it doesn't work in a pipeline, ie "trap|cat" produces no output.
* Invoke EXIT handler early when using Valgrind.Darren Tucker2022-01-191-0/+13
| | | | | | | | | When using Valgrind, we need to wait for all invoked programs to complete before checking their valgrind logs. Some tests, notably agent-restrict, set an EXIT trap handler to clean up things like ssh-agent, but those do not get invoked until test-exec.sh exits. This causes the Valgrind wait to deadlock, so if present invoke the EXIT handler before checking the Valgrind logs.
* Wrap OpenSSL includes in unit tests in ifdef.Darren Tucker2022-01-144-0/+8
| | | | Fixes unit test on systems that do not have OpenSSL headers installed.
* Remove sort wrapper.Darren Tucker2022-01-131-6/+0
| | | | agent-restrict now takes care of this itself.
* upstream: Set LC_ALL in both local and remote shells so that sorteddtucker@openbsd.org2022-01-131-1/+5
| | | | | | output matches regardless of what the user's shell sets it to. ok djm@ OpenBSD-Regress-ID: 4e97dd69a68b05872033175a4c2315345d01837f
* upstream: Avoid %'s in commands (not used in OpenBSD, but used indtucker@openbsd.org2022-01-131-2/+2
| | | | | | -portable's Valgrind test) being interpretted as printf format strings. OpenBSD-Regress-ID: dc8655db27ac4acd2c386c4681bf42a10d80b043
* upstream: Use egrep when searching for an anchored string.dtucker@openbsd.org2022-01-121-2/+2
| | | | OpenBSD-Regress-ID: dd114a2ac27ac4b06f9e4a586d3f6320c54aeeb4
* Add "rev" command replacement if needed.Darren Tucker2022-01-121-0/+6
|
* upstream: remove hardcoded domain and use window.location.host, so thisdjm@openbsd.org2022-01-111-3/+3
| | | | | | can be run anywhere OpenBSD-Regress-ID: 2ac2ade3b6227d9c547351d3ccdfe671e62b7f92
* Add wrapper for "sort" to set LC_ALL=C.Darren Tucker2022-01-101-0/+6
| | | | Found by djm, this should make sorts stable and reduce test flakiness.
* upstream: Remove errant "set -x" left over from debugging.dtucker@openbsd.org2022-01-081-2/+1
| | | | OpenBSD-Regress-ID: cd989268e034264cec5df97be7581549032c87dc
* upstream: Enable all supported hostkey algorithms (but no others).dtucker@openbsd.org2022-01-081-8/+13
| | | | | | Allows hostbased test to pass when built without OpenSSL. OpenBSD-Regress-ID: 5ddd677a68b672517e1e78460dc6ca2ccc0a9562
* upstream: Don't explicitly set HostbasedAuthentication indtucker@openbsd.org2022-01-061-2/+1
| | | | | | | sshd_config. It defaults to "no", and not explicitly setting it allows us to enable it for the (optional) hostbased test. OpenBSD-Regress-ID: aa8e3548eb5793721641d26e56c29f363b767c0c
* upstream: Add test for hostbased auth. It requires some externaldtucker@openbsd.org2022-01-062-3/+65
| | | | | | | setup (see comments at the top) and thus is disabled unless TEST_SSH_HOSTBASED_AUTH and SUDO are set. OpenBSD-Regress-ID: 3ec8ba3750c5b595fc63e7845d13483065a4827a
* upstream: select all RSA hostkey algorithms for UpdateHostkeys tests,djm@openbsd.org2022-01-051-4/+13
| | | | | | not just RSA-SHA1 OpenBSD-Regress-ID: b40e62b65863f2702a0c10aca583b2fe76772bd8
* upstream: regress test both sshsig message hash algorithms, possibledjm@openbsd.org2022-01-051-8/+18
| | | | | | now because the algorithm is controllable via the CLI OpenBSD-Regress-ID: 0196fa87acc3544b2b4fd98de844a571cb09a39f
* upstream: regression test for find-principals NULL deref; from Fabiandjm@openbsd.org2022-01-051-1/+9
| | | | | | Stelzer OpenBSD-Regress-ID: f845a8632a5a7d5ae26978004c93e796270fd3e5
* upstream: Log command invocation while debugging.dtucker@openbsd.org2022-01-052-2/+4
| | | | | | This will aid in manually reproducing failing commands. OpenBSD-Regress-ID: b4aba8d5ac5675ceebeeeefa3261ce344e67333a
* upstream: unbreak test: was picking up system ssh-add instead of thedjm@openbsd.org2022-01-041-3/+3
| | | | | | | one supposedly being tested. Spotted by dtucker and using his VM zoo (which includes some systems old enough to lack ed25519 key support) OpenBSD-Regress-ID: 7976eb3df11cc2ca3af91030a6a8c0cef1590bb5
* remove sys/param.h in -portable, after upstreamDamien Miller2021-12-213-2/+2
|
* add agent-restrict.sh file, missed in last commitDamien Miller2021-12-201-0/+491
|
* upstream: regression test for destination restrictions in ssh-agentdjm@openbsd.org2021-12-201-2/+3
| | | | OpenBSD-Regress-ID: 3c799d91e736b1753b4a42d80c42fc40de5ad33d
* upstream: Make use of ntests variable, pointed out by clang 13.anton@openbsd.org2021-12-201-2/+2
| | | | OpenBSD-Regress-ID: 4241a3d21bdfa1630ed429b6d4fee51038d1be72