-
Notifications
You must be signed in to change notification settings - Fork 0
/
test6
32 lines (32 loc) · 1.31 KB
/
test6
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
echo
echo "BUILDING EXE..."
g++ -std=c++11 -g ejercicio6.cpp -o ejercicio6.exe
echo
echo "RUNNING TESTS..."
echo
echo "timing test 1:"
time ./ejercicio6.exe < ./test/ejercicio6/10.in.txt > ./test/ejercicio6/10.test.txt
echo
echo "timing test 2:"
time ./ejercicio6.exe < ./test/ejercicio6/100.in.txt > ./test/ejercicio6/100.test.txt
echo
echo "timing test 3:"
time ./ejercicio6.exe < ./test/ejercicio6/1000.in.txt > ./test/ejercicio6/1000.test.txt
echo
echo "timing test 4:"
time ./ejercicio6.exe < ./test/ejercicio6/10000.in.txt > ./test/ejercicio6/10000.test.txt
echo
echo "RUNNING DIFFS..."
echo
diff --strip-trailing-cr ./test/ejercicio6/10.out.txt ./test/ejercicio6/10.test.txt > ./test/ejercicio6/10.diff.txt
diff --strip-trailing-cr ./test/ejercicio6/100.out.txt ./test/ejercicio6/100.test.txt > ./test/ejercicio6/100.diff.txt
diff --strip-trailing-cr ./test/ejercicio6/1000.out.txt ./test/ejercicio6/1000.test.txt > ./test/ejercicio6/1000.diff.txt
diff --strip-trailing-cr ./test/ejercicio6/10000.out.txt ./test/ejercicio6/10000.test.txt > ./test/ejercicio6/10000.diff.txt
echo "test 1 diff count:"
wc -l < ./test/ejercicio6/10.diff.txt
echo "test 2 diff count:"
wc -l < ./test/ejercicio6/100.diff.txt
echo "test 3 diff count:"
wc -l < ./test/ejercicio6/1000.diff.txt
echo "test 4 diff count:"
wc -l < ./test/ejercicio6/10000.diff.txt