File: test-script.sh

package info (click to toggle)
kcov 43%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,600 kB
  • sloc: cpp: 12,617; ansic: 2,379; python: 2,001; sh: 333; makefile: 133; javascript: 65; xml: 7; asm: 4
file content (20 lines) | stat: -rwxr-xr-x 219 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

if [ $# -ne 3 ] ; then
	echo "Usage: <kcov-binary> <out-dir> <program-to-run>"
	exit 1
fi

kcov=$1
out=$2
prg=$3

$prg &
pid=$!

sleep 0.5
$kcov --pid=$pid $out $prg &
kcov_pid=$!

sleep 1.2
kill $kcov_pid