2021-05-14 20:31:18 +03:00
|
|
|
#!/bin/bash
|
2022-12-14 11:28:25 +03:00
|
|
|
set -Eeuo pipefail
|
|
|
|
|
2022-12-14 16:28:49 +03:00
|
|
|
while read -r test_file ; do
|
|
|
|
echo "** ${test_file}"
|
|
|
|
while read -r line; do
|
|
|
|
echo "${line}"
|
|
|
|
cmd="${line} --no-progress-meter --output /dev/null --fail"
|
|
|
|
echo "${cmd}" | bash || (echo ">>> Error <<<<" && exit 1)
|
|
|
|
done < <( (grep -v '^$' "${test_file}" || true) | (grep -v '^#' || true) )
|
2021-05-14 20:31:18 +03:00
|
|
|
echo
|
2022-12-14 16:28:49 +03:00
|
|
|
done < <( find ./tests_ok ./tests_failed -maxdepth 1 -type f -name '*.curl' ! -name '*windows*' | sort )
|
2021-05-14 20:31:18 +03:00
|
|
|
|
|
|
|
echo "all curl commands have been run with success!"
|
2022-12-14 11:28:25 +03:00
|
|
|
|