~samiam/MaraDNS

ref: 3.5.0021 MaraDNS/deadwood-github/sqa/sqa_rg64/do.test -rwxr-xr-x 634 bytes
ca00f282 — Sam Trenholme MaraDNS release 3.5.0021 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

# Since there was a bug in another rg32 implementation which only showed 
# up with "clang -O2" and "clang -O3" (it passed with all gcc and tcc 
# options), we have a test to make sure rg64 works with all compilers 
# and all flags

# This is not used to verify the actual RG64 code, but to summarize
# that we got the right answers
gcc -O3 -o rg32hash rg32hash.c 2> /dev/null

for cc in gcc clang ; do
    for opt in '-g' '' '-Os' '-O1' '-O2' '-O3' ; do
	export COMPILER="$cc"
	export FLAGS="$opt"
       	./one.test > test.output
	echo $( rg32hash test.output ) $COMPILER $FLAGS 
    done
done

rm rg32hash test.output