sap-cluster-connector/tests/run_tests.sh

19 lines
287 B
Bash
Raw Normal View History

2021-06-22 12:37:09 +00:00
#!/bin/sh
err=0
for bin in "sap_cluster_connector help"; do
output="$($bin 2>&1)"
if [ $? -ne 0 ]; then
echo -e "ERROR: $bin failed:\n$output"
err=$((err+1))
else
echo "INFO: $bin works..."
fi
done
if [ $err -ge 1 ]; then
echo -e "\nERROR: $err tests FAILED..."
exit 1
fi