You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
665 B
29 lines
665 B
#!/bin/bash
|
|
|
|
__run_sh__base_path="$(dirname "$(realpath --logical "${BASH_SOURCE[0]}")")"
|
|
__run_sh__bash_libraries_relative_path="../bash_libraries"
|
|
__run_sh__bash_libraries_absolute_path=$(cd "$__run_sh__base_path" && cd "$__run_sh__bash_libraries_relative_path" && pwd)
|
|
export PATH="$__run_sh__bash_libraries_absolute_path:$PATH"
|
|
|
|
source framework.sh || exit 1
|
|
source validate_dependencies.sh || exit 1
|
|
|
|
experiment_client() {
|
|
local -r hostname="$1"
|
|
|
|
for ((i = 1; i <= 10; i++)); do
|
|
http -p h "${hostname}:10000/stack_overflow" | grep 500 || {
|
|
echo "FAIL"
|
|
return 1
|
|
}
|
|
done
|
|
|
|
echo "SUCCESS"
|
|
return 0
|
|
|
|
}
|
|
|
|
validate_dependencies http
|
|
|
|
framework_init "$@"
|