blob: 6d1362a8c1cfab89aba9d59dfd80a6bd7b80d484 [file] [log] [blame]
Jason Evans748dfac2013-12-06 18:27:33 -08001#!/bin/sh
2
3set -e
4
5objdir=$1
6suffix=$2
7shift 2
8objs=$@
9
10gcov -b -p -f -o "${objdir}" ${objs}
11
12# Move gcov outputs so that subsequent gcov invocations won't clobber results
13# for the same sources with different compilation flags.
14for f in `find . -maxdepth 1 -type f -name '*.gcov'` ; do
15 mv "${f}" "${f}.${suffix}"
16done