Repository navigation
Commit f5da31b
tests: make every sshd test selectable
run_all_sshd_tests.sh validates --match and --exclude against test_cases
plus a new extra_test_cases naming the tests called in place, and every
call goes through one should_skip(). A match runs its test where it
sits, with the daemon it needs around it, so one path now serves the
whole suite. test_cases named 12 of the 32 tests the runner drives.
- gate the x509, UPN and ML-DSA daemon starts on the match, so selecting
another test does not start them
- take the bulk skip for the tests needing a local daemon only on a full
run, where its fixed count is right
- reject an unrecognized --exclude, and a --match that reached no call
site: a local-only name selects nothing against an external host,
which would otherwise exit 0 having run no test at all
- keep every test call inside one compound, so RUN_COMPLETE still fails
a run that a shell expansion error cut short, and abort naming any
run_test call listed in neither array
- verified in the container: a full run gives 32 run, 30 passed, 2
skipped, and --match sshd_chroot_fail_test.sh gives 1 run, 1 passed,
starting only the daemon that test needs1 parent 7e41ce2 commit f5da31b
2 files changed
Lines changed: 235 additions & 115 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
0 commit comments