~samiam/MaraDNS

ref: 3.5.0021 MaraDNS/deadwood-github/sqa/sqa_rg64/one.test -rwxr-xr-x 501 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
22
23
24
25
26
#!/bin/bash

# Make the rg64 binary
cd ../../src
rm -f rg64 DwStr.o
$COMPILER $FLAGS -DSTANDALONE -c -o DwStr.o DwStr.c
$COMPILER $FLAGS -o rg64 -DHAVE_MAIN -DRG64 DwRadioGatun.c DwStr.o

# Copy the rg32 binary here
cp rg64 ~-

# Clean up
rm rg64 DwStr.o
make clean > /dev/null 2>&1

# OK, come back here to run the test
cd ~-

# The test
cat Input | awk '
	{print "./rg64 '\''" $0 "'\'' | \\"; 
	 print "awk '\''{$17=$18=$19=$20=\"\" ; print $0}'\'' | tr -d \" \" "}
' | sh

# Clean up here
rm rg64