2017-02-24 13:19:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# This script wraps the integration test binary so it produces concatenated
|
|
|
|
# test output.
|
|
|
|
|
|
|
|
test_binary=$1
|
|
|
|
shift
|
|
|
|
output_cov=$1
|
|
|
|
shift
|
|
|
|
|
2018-02-22 14:55:49 +00:00
|
|
|
echo "Test Binary: $test_binary" 1>&2
|
|
|
|
echo "Coverage File: $output_cov" 1>&2
|
|
|
|
|
2017-02-24 13:19:07 +00:00
|
|
|
echo "mode: count" > $output_cov
|
|
|
|
|
|
|
|
test_cov=$(mktemp)
|
2017-10-09 01:22:07 +00:00
|
|
|
$test_binary -test.coverprofile=$test_cov $@ || exit 1
|
2017-02-24 13:19:07 +00:00
|
|
|
tail -n +2 $test_cov >> $output_cov
|
|
|
|
rm -f $test_cov
|