Add tests for cynara_admin_list_policies_descriptions
[platform/core/test/security-tests.git] / tests / tests-summary.sh
1 #!/bin/sh
2
3 # sum up columns
4 total=$(awk '{counter += $1} END {print counter}' "$1" )
5 succeeded=$(awk '{counter += $2} END {print counter}' "$1" )
6 failed=$(awk '{counter += $3} END {print counter}' "$1" )
7 ignored=$(awk '{counter += $4} END {print counter}' "$1" )
8
9 #color constants
10 COLOR_GREEN_START="\033[1;32m"
11 COLOR_DARK_GREEN_START="\033[0;36m"
12 COLOR_END="\033[m"
13
14 printf $COLOR_GREEN_START
15 printf "Summary\n"
16 printf $COLOR_END
17
18 printf $COLOR_DARK_GREEN_START
19 printf "  Total:     %i\n" $total
20 printf "  Succeeded: %i\n" $succeeded
21 printf "  Failed:    %i\n" $failed
22 printf "  Ignored:   %i\n" $ignored
23 printf $COLOR_END
24
25 printf "\n"