16 lines
327 B
Bash
Executable file
16 lines
327 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
declare -A colors=(
|
|
[red]=$(tput setaf 1) [green]=$(tput setaf 2)
|
|
[yellow]=$(tput setaf 3) [reset]=$(tput sgr0)
|
|
)
|
|
|
|
success() {
|
|
printf '%s%s%s\n' "${colors[green]}" "$1" "${colors[reset]}"
|
|
}
|
|
|
|
for num in {1..1000}; do
|
|
success "[>] Test $num/1000... ✓ passed."
|
|
done
|
|
|
|
success 'All tests successful!'
|