You've already forked postgres_exporter
							
							
				mirror of
				https://github.com/prometheus-community/postgres_exporter.git
				synced 2025-11-03 07:53:12 +03:00 
			
		
		
		
	This commit implements a massive refactor of the repository, and moves the build system over to use Mage (magefile.org) which should allow seamless building across multiple platforms.
		
			
				
	
	
		
			19 lines
		
	
	
		
			384 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			384 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/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
 |