1cb93a386Sopenharmony_ci#!/bin/bash 2cb93a386Sopenharmony_ci 3cb93a386Sopenharmony_ci# Running gcov with -a (--all-blocks) will hang on some files. lcov uses -a. 4cb93a386Sopenharmony_ci# This shim strips out that flag (a minor feature) so we can run gcov. 5cb93a386Sopenharmony_ci 6cb93a386Sopenharmony_ciCMD="gcov" 7cb93a386Sopenharmony_ci 8cb93a386Sopenharmony_ciwhile (( "$#" )); do 9cb93a386Sopenharmony_ci if [[ "$1" != "-a" && "$1" != "-all-blocks" && "$1" != "--all-blocks" ]]; then 10cb93a386Sopenharmony_ci CMD="$CMD $1" 11cb93a386Sopenharmony_ci fi 12cb93a386Sopenharmony_ci shift 13cb93a386Sopenharmony_cidone 14cb93a386Sopenharmony_ci 15cb93a386Sopenharmony_ci$CMD 16