-
Notifications
You must be signed in to change notification settings - Fork 0
/
runTests.sh
executable file
·54 lines (41 loc) · 1.03 KB
/
runTests.sh
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
45
46
47
48
49
50
51
52
53
#!/bin/bash
rm -f "A.dat"
rm -f "B.dat"
rm -f "A1.dat"
rm -f "B1.dat"
log1="log_simple.txt"
log2="log_gauss.txt"
log3="log_strassen.txt"
if [ -f $log1 ];then
rm -f $log1
elif [ -f $log2 ];then
rm -f $log2
elif [ -f $log3 ];then
rm -f $log3
fi
exe1="Simple"
exe2="Gauss"
exe3="Strassen"
echo "generate matrix:"
python genMatrix.py 10 15 100 i # matrix A[10x15] , B[15x10], maxElement=100,(minElement=-100), dtype=int
echo "#########################################"
echo "Simple test... : "
if [ -f $exe1 ]; then
./$exe1 | tee $log1
fi
echo "generate matrix:"
python genMatrix.py 10 10 100 f # matrix A[10x10] , B[10x10], maxElement=100,(minElement=-100), dtype=int
echo "#########################################"
echo "test Gauss... : "
if [ -f $exe2 ]; then
./$exe2 Ag.dat Bg.dat | tee $log2
# ./$exe2 Ag.dat Bg.dat >> $log2
./$exe2 | tee -a $log2
fi
echo "generate matrix:"
python genMatrix.py 1000 1000 100 f
echo "#########################################"
echo "test Strassen... : "
if [ -f $exe3 ]; then
./$exe3 | tee $log3
fi