chore: remove iteration echo

main
Sean McBride 4 years ago
parent 15bcad2a38
commit 50768f9bef

@ -28,7 +28,6 @@ dpi_to_port[144]=10002
total_count=100 total_count=100
for ((i = 0; i < total_count; i++)); do for ((i = 0; i < total_count; i++)); do
echo "$i"
words="$(shuf -n"$word_count" /usr/share/dict/american-english)" words="$(shuf -n"$word_count" /usr/share/dict/american-english)"
for dpi in "${dpis[@]}"; do for dpi in "${dpis[@]}"; do

@ -22,7 +22,6 @@ fonts=("DejaVu Sans Mono" "Roboto" "Cascadia Code")
total_count=10 total_count=10
for ((i = 1; i <= total_count; i++)); do for ((i = 1; i <= total_count; i++)); do
echo "Test $i"
words="$(shuf -n"$word_count" /usr/share/dict/american-english)" words="$(shuf -n"$word_count" /usr/share/dict/american-english)"
for font in "${fonts[@]}"; do for font in "${fonts[@]}"; do

@ -27,8 +27,6 @@ word_count_to_port["100_words.pnm"]=10002
total_count=100 total_count=100
for ((i = 0; i < total_count; i++)); do for ((i = 0; i < total_count; i++)); do
echo "$i"
for word_count in "${word_counts[@]}"; do for word_count in "${word_counts[@]}"; do
echo "${word_count}"_words.pnm echo "${word_count}"_words.pnm
words="$(shuf -n"$word_count" /usr/share/dict/american-english)" words="$(shuf -n"$word_count" /usr/share/dict/american-english)"
@ -43,7 +41,6 @@ for ((i = 0; i < total_count; i++)); do
diff -ywBZE --suppress-common-lines <(echo "$words") <(echo "$result") diff -ywBZE --suppress-common-lines <(echo "$words") <(echo "$result")
echo "===============================================" echo "==============================================="
done done
done done
if [ "$1" != "-d" ]; then if [ "$1" != "-d" ]; then

@ -40,7 +40,6 @@ success_count=0
total_count=50 total_count=50
for ((i = 0; i < total_count; i++)); do for ((i = 0; i < total_count; i++)); do
echo "$i"
result=$(curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@5x8.pnm" localhost:10000 2> /dev/null) result=$(curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@5x8.pnm" localhost:10000 2> /dev/null)
# echo "$result" # echo "$result"
if [[ "$result" == "$expected_result" ]]; then if [[ "$result" == "$expected_result" ]]; then

@ -40,7 +40,6 @@ success_count=0
total_count=50 total_count=50
for ((i = 0; i < total_count; i++)); do for ((i = 0; i < total_count; i++)); do
echo "$i"
result=$(curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@handwrt1.pnm" localhost:10000 2> /dev/null) result=$(curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@handwrt1.pnm" localhost:10000 2> /dev/null)
# echo "$result" # echo "$result"
if [[ "$result" == "$expected_result" ]]; then if [[ "$result" == "$expected_result" ]]; then

@ -39,7 +39,6 @@ success_count=0
total_count=50 total_count=50
for ((i = 0; i < total_count; i++)); do for ((i = 0; i < total_count; i++)); do
echo "$i"
result=$(curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@hyde.pnm" localhost:10000 2> /dev/null) result=$(curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@hyde.pnm" localhost:10000 2> /dev/null)
# echo "$result" # echo "$result"
if [[ "$result" == "$expected_result" ]]; then if [[ "$result" == "$expected_result" ]]; then

Loading…
Cancel
Save