summaryrefslogtreecommitdiff
path: root/ce/test/cov/cov_all_run.sh
blob: 50dc3d236577396f11a1c455e86352436d9a71cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh

clean=
firefox=0
MAXIMUS_ARG=
run=

while getopts cfm:et: opt
do
	case "$opt" in
		c)	clean="-c";;
		e)  run="-e";;
		f)	firefox=1;;
		m)  MAXIMUS_ARG="-x $OPTARG";;
		t)  test_path="$OPTARG";;
		[?])	print >&2 "Usage: $0 [-c] [-e] [-f] [-m] maximus_path"
				exit 1;;
	esac
done

cov_path=`dirname $0`
if [ "$run" != "" ]
then
	echo "Erase coverage result"
	rm -rf $cov_path/result
	mkdir $cov_path/result
fi

$cov_path/cov_one_run.sh -t $test_path -s tx -m host-Makefile -o obj/host $clean $run -h host
$cov_path/cov_one_run.sh -t $test_path -s tx -m target-Makefile -o obj/target $clean $run -h target
$cov_path/cov_one_run.sh -t $test_path -s rx/general -m host-Makefile -o obj/host $clean $run -h host
$cov_path/cov_one_run.sh -t $test_path -s rx/general -m target-Makefile -o obj/target $clean $run -h target
$cov_path/cov_one_run.sh -t $test_path -s rx/tonemap_refresh -m Makefile -o obj $clean $run -h target
$cov_path/cov_one_run.sh -t $test_path -s rx/maximus -m Makefile -o obj $clean $run -p send_noise.py $MAXIMUS_ARG -h target 

if [ "$firefox" = "1" ]
then
	ls -l $cov_path/result
	genhtml -q -o $cov_path/result -s $cov_path/result/*.info
	firefox $cov_path/result/index.html
fi