-
Notifications
You must be signed in to change notification settings - Fork 0
/
test1
44 lines (44 loc) · 1.93 KB
/
test1
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
33
34
35
36
37
38
39
40
41
42
43
44
echo
echo "BUILDING EXE..."
g++ -std=c++11 -g ejercicio1.cpp -o ejercicio1.exe
echo
echo "RUNNING TESTS..."
echo
echo "timing test 1:"
time ./ejercicio1.exe < ./test/ejercicio1/10.in.txt > ./test/ejercicio1/10.test.txt
echo
echo "timing test 2:"
time ./ejercicio1.exe < ./test/ejercicio1/100.in.txt > ./test/ejercicio1/100.test.txt
echo
echo "timing test 3:"
time ./ejercicio1.exe < ./test/ejercicio1/1000.in.txt > ./test/ejercicio1/1000.test.txt
echo
echo "timing test 4:"
time ./ejercicio1.exe < ./test/ejercicio1/10000.in.txt > ./test/ejercicio1/10000.test.txt
echo
echo "timing test 5:"
time ./ejercicio1.exe < ./test/ejercicio1/100000.in.txt > ./test/ejercicio1/100000.test.txt
echo
echo "timing test 6:"
time ./ejercicio1.exe < ./test/ejercicio1/1000000.in.txt > ./test/ejercicio1/1000000.test.txt
echo
echo "RUNNING DIFFS..."
echo
diff --strip-trailing-cr ./test/ejercicio1/10.out.txt ./test/ejercicio1/10.test.txt > ./test/ejercicio1/10.diff.txt
diff --strip-trailing-cr ./test/ejercicio1/100.out.txt ./test/ejercicio1/100.test.txt > ./test/ejercicio1/100.diff.txt
diff --strip-trailing-cr ./test/ejercicio1/1000.out.txt ./test/ejercicio1/1000.test.txt > ./test/ejercicio1/1000.diff.txt
diff --strip-trailing-cr ./test/ejercicio1/10000.out.txt ./test/ejercicio1/10000.test.txt > ./test/ejercicio1/10000.diff.txt
diff --strip-trailing-cr ./test/ejercicio1/100000.out.txt ./test/ejercicio1/100000.test.txt > ./test/ejercicio1/100000.diff.txt
diff --strip-trailing-cr ./test/ejercicio1/1000000.out.txt ./test/ejercicio1/1000000.test.txt > ./test/ejercicio1/1000000.diff.txt
echo "test 1 diff count:"
wc -l < ./test/ejercicio1/10.diff.txt
echo "test 2 diff count:"
wc -l < ./test/ejercicio1/100.diff.txt
echo "test 3 diff count:"
wc -l < ./test/ejercicio1/1000.diff.txt
echo "test 4 diff count:"
wc -l < ./test/ejercicio1/10000.diff.txt
echo "test 5 diff count:"
wc -l < ./test/ejercicio1/100000.diff.txt
echo "test 6 diff count:"
wc -l < ./test/ejercicio1/1000000.diff.txt