2022-03-22 10:46:17 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
declare -A colors=(
|
|
|
|
[red]=$(tput setaf 1) [green]=$(tput setaf 2)
|
|
|
|
[yellow]=$(tput setaf 3) [reset]=$(tput sgr0)
|
|
|
|
)
|
|
|
|
|
2022-03-22 11:19:47 +00:00
|
|
|
success() {
|
|
|
|
printf '%s%s%s\n' "${colors[green]}" "$1" "${colors[reset]}"
|
|
|
|
}
|
|
|
|
|
2022-03-22 10:46:17 +00:00
|
|
|
for num in {1..1000}; do
|
2022-03-22 11:19:47 +00:00
|
|
|
success "[>] Test $num/1000... ✓ passed."
|
2022-03-22 10:46:17 +00:00
|
|
|
done
|
|
|
|
|
2022-03-22 11:19:47 +00:00
|
|
|
success 'All tests successful!'
|