[M108 Migration][HBBTV] Implement ewk_context_register_jsplugin_mime_types API
[platform/framework/web/chromium-efl.git] / courgette / stress_test_common
1 #!/bin/bash
2
3 # Emit an error message
4 error() {
5   echo "error: ${@}" >&2
6 }
7
8 # Given a token, search for and count the instances of lines from the
9 # logfile that start with the token.
10 count_result() {
11   if [ ! -z "${1}" ]; then
12     echo $(cat "${log}" | grep "^${1} " | wc -l)    
13   else
14     echo 0
15   fi
16 }