makeOutFiles.sh
1.2 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/sh -f
TNAME=""
#
# Directories
#
PRDEPTH="../../.."
INDATA="InData"
OUTDATA="OutData"
#
# Tools
#
FILTER=${ROOT}/PR/rdpsim/backend/filter
RDRAM2IMG=${ROOT}/usr/sbin/rdram2image
##################################################
#
# Usage message
#
##################################################
usage()
{
echo "Usage: makeOutFiles <-n> test_name"
exit 2
}
##################################################
#
# generate .rgb, .cvg, .z files
#
##################################################
out_files()
{
set -x
# Generate output file names
COV_FILE=${OUTDATA}/${TNAME}_0.cov
CVG_FILE=${OUTDATA}/${TNAME}_0.cvg
RGB_FILE=${OUTDATA}/${TNAME}_0.rgb
RGBF_FILE=${OUTDATA}/${TNAME}_f_0.rgb
${RDRAM2IMG} ${INDATA}/${TNAME}
# Create output files for comparison
${FILTER} -c ${COV_FILE} -i ${CVG_FILE} \
-n ${RGB_FILE}
# cleanup
# rm -f ${INDATA}/${TNAME}.rdram
}
##################################################
# Main
#
##################################################
if test $# = 0
then
usage
fi
while getopts "n:" a
do
case $a in
n) TNAME=$OPTARG;;
\?) usage ;;
esac
done
shift `expr $OPTIND - 1`
out_files
# End makeOutFiles