blob: b25ae04c3b75d92398cb119b77f9a54d2be55de2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
rm -f test-output rand.*
for i in `seq -f "%03g" 1 999`; do
dd if=/dev/urandom of=rand.$i bs=1024 count=10 >/dev/null 2>/dev/null
../objobf -r rand.$i -A -w 0.33 quicksort.o 2>/dev/null >/dev/null
gcc -o main main.c output.o 2>/dev/null
(echo -n "$i:"
echo "0987654321" | ./main | grep -v "calling quicksort") | \
tee -a test-output
done
cat test-output | grep ":012345678$" | wc -l
|