4b3ccf36ea
* Add test coverage * temp: debug test * Update tests
15 lines
467 B
Bash
Executable file
15 lines
467 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Optional: Import test library
|
|
source dev-container-features-test-lib
|
|
|
|
check "sshd-init-exists" bash -c "ls /usr/local/share/ssh-init.sh"
|
|
check "sshd-log-exists" bash -c "ls /tmp/sshd.log"
|
|
check "sshd-log-contents" bash -c "cat /tmp/sshd.log | grep 'Starting OpenBSD Secure Shell server'"
|
|
check "sshd-log-has-sshd" bash -c "cat /tmp/sshd.log | grep 'sshd'"
|
|
check "sshd" bash -c "ps -aux | grep -v grep | grep sshd"
|
|
|
|
# Report result
|
|
reportResults |