File: postgres_exporter_integration_test_script

package info (click to toggle)
prometheus-postgres-exporter 0.17.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 900 kB
  • sloc: sh: 374; makefile: 54
file content (18 lines) | stat: -rwxr-xr-x 384 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# This script wraps the integration test binary so it produces concatenated
# test output.

test_binary=$1
shift
output_cov=$1
shift

echo "Test Binary: $test_binary" 1>&2
echo "Coverage File: $output_cov" 1>&2

echo "mode: count" > $output_cov

test_cov=$(mktemp)
$test_binary -test.coverprofile=$test_cov $@ || exit 1
tail -n +2 $test_cov >> $output_cov
rm -f $test_cov