-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathtestActivePair.sh.in
executable file
·56 lines (44 loc) · 1.28 KB
/
testActivePair.sh.in
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
54
55
56
#!/bin/bash
echo ""
rm -f brute_force_pair_active.dat swift_dopair_active.dat
echo "Running ./testActivePair -n 6 -r 1 -d 0 -f active"
./testActivePair -n 6 -r 1 -d 0 -f active
if [ $? -ne 0 ]
then
echo "Test failed"
exit 1
fi
python3 @srcdir@/difffloat.py brute_force_pair_active.dat swift_dopair_active.dat @srcdir@/tolerance_pair_active.dat
if [ $? -ne 0 ]
then
echo "Accuracy test failed"
exit 1
fi
python3 @srcdir@/difffloat.py brute_force_dopair2_active.dat swift_dopair2_force_active.dat @srcdir@/tolerance_pair_force_active.dat
if [ $? -ne 0 ]
then
echo "Accuracy test failed"
exit 1
fi
rm -f brute_force_pair_active.dat swift_dopair_active.dat
# Run the special case that triggered a bug. See merge request !435.
echo "Running ./testActivePair -n 6 -r 1 -d 0 -f active -s 1506434777"
./testActivePair -n 6 -r 1 -d 0 -f active -s 1506434777
if [ $? -ne 0 ]
then
echo "Test failed"
exit 1
fi
python3 @srcdir@/difffloat.py brute_force_pair_active.dat swift_dopair_active.dat @srcdir@/tolerance_pair_active.dat
if [ $? -ne 0 ]
then
echo "Accuracy test failed"
exit 1
fi
python3 @srcdir@/difffloat.py brute_force_dopair2_active.dat swift_dopair2_force_active.dat @srcdir@/tolerance_pair_force_active.dat
if [ $? -ne 0 ]
then
echo "Accuracy test failed"
exit 1
fi
exit $?