mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 18:04:52 +00:00
fceef8e0dd
Not a single bug in about 3 months, and our previous version was too old (3.2.0).
17 lines
321 B
Bash
Executable File
17 lines
321 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
objdir=$1
|
|
suffix=$2
|
|
shift 2
|
|
objs=$@
|
|
|
|
gcov -b -p -f -o "${objdir}" ${objs}
|
|
|
|
# Move gcov outputs so that subsequent gcov invocations won't clobber results
|
|
# for the same sources with different compilation flags.
|
|
for f in `find . -maxdepth 1 -type f -name '*.gcov'` ; do
|
|
mv "${f}" "${f}.${suffix}"
|
|
done
|