OpenCores
URL https://opencores.org/ocsvn/fwrisc/fwrisc/trunk

Subversion Repositories fwrisc

[/] [fwrisc/] [trunk/] [ve/] [fwrisc/] [tests/] [riscv-compliance/] [riscv-test-env/] [verify.sh] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 mballance
#!/bin/bash
2
 
3
printf "\n\nCompare to reference files ... \n\n";
4
FAIL=0
5
RUN=0
6
 
7
for f in ${SUITEDIR}/references/*.reference_output;
8
do
9
    b=$(basename $f)
10
    ex=${b//".reference_output"/}
11
    RUN=$((${RUN} + 1))
12
 
13
    #
14
    # Ensure both files exist
15
    #
16
    if [ -f $f ] && [ -f ${WORK}/${ISA}/${b//".reference_output"/"_signature.output"} ]; then
17
        echo -n "Check $(printf %16s ${ex})"
18
    else
19
        echo    "Check $(printf %16s ${ex}) ... IGNORE"
20
        continue
21
    fi
22
    diff --strip-trailing-cr $f ${WORK}/${ISA}/${b//".reference_output"/"_signature.output"} #&> /dev/null
23
    if [ $? == 0 ]
24
    then
25
        echo " ... OK"
26
    else
27
        echo " ... FAIL"
28
        FAIL=$((${FAIL} + 1))
29
    fi
30
done
31
 
32
declare -i status=0
33
if [ ${FAIL} == 0 ]
34
then
35
    echo "--------------------------------"
36
    echo "OK: ${RUN}/${RUN}"
37
    status=0
38
else
39
    echo "--------------------------------"
40
    echo "FAIL: ${FAIL}/${RUN}"
41
    status=1
42
fi
43
exit ${status}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.