hurl/integration/test_curl_commands.sh

14 lines
443 B
Bash
Raw Normal View History

#!/bin/bash
set -eu
2022-10-17 17:22:42 +03:00
find ./tests_ok ./tests_failed -maxdepth 1 -type f -name '*.curl' ! -name '*windows*'|sort | while read -r f; do
echo "** $f"
2022-02-05 04:15:05 +03:00
grep -v '^$' <"$f" | grep -v '^#' | while read -r line; do
echo "$line"
cmd="$line --no-progress-meter --output /dev/null --fail"
echo "$cmd" | bash || (echo ">>> Error <<<<" && exit 1)
done
echo
done
echo "all curl commands have been run with success!"