mirror of
https://github.com/Noratrieb/cluelessh.git
synced 2026-01-16 01:15:04 +01:00
Add tests
This commit is contained in:
parent
26cdcd0524
commit
688394cac9
5 changed files with 72 additions and 2 deletions
25
bin/cluelesshd/tests/run.sh
Executable file
25
bin/cluelesshd/tests/run.sh
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
script_dir=$(realpath "$(dirname "$0")")
|
||||
|
||||
cd "$script_dir/.."
|
||||
|
||||
cargo build
|
||||
|
||||
"../../target/debug/cluelesshd" &
|
||||
|
||||
pid=$!
|
||||
|
||||
kill_server() {
|
||||
echo "Killing server"
|
||||
kill "$pid"
|
||||
}
|
||||
|
||||
trap kill_server EXIT
|
||||
|
||||
for script in "$script_dir"/openssh-client/*.sh; do
|
||||
echo "-------------- Running $script"
|
||||
PORT=2223 HOST=localhost bash -euo pipefail "$script"
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue