forked from Tribler/tribler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dispersy-test
executable file
·90 lines (78 loc) · 6.8 KB
/
dispersy-test
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/bash
BRANCH="."
if [ -d "$1" ]; then
BRANCH="$1"
fi
echo "================================================================================"
echo "Testcases in __debug__ mode"
echo "================================================================================"
rm -f sqlite/dispersy.db
rm -f sqlite/dispersy.db-journal
rm -f dispersy.log
python "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-batch || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-classification || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-crypto || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-destroy-community || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-dynamic-settings || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-identical-payload || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-member-tag || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-missing-message || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-signature || exit 1
# python "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-subjective-set || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-sync || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-timeline || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-undo || exit 1
rm -f sqlite/dispersy.db
rm -f sqlite/dispersy.db-journal
rm -f dispersy.log
python "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-batch || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-classification || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-crypto || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-destroy-community || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-dynamic-settings || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-identical-payload || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-member-tag || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-missing-message || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-signature || exit 1
# python "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-subjective-set || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-sync || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-timeline || exit 1
python "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-undo || exit 1
echo "================================================================================"
echo "Testcases in optimized mode"
echo "================================================================================"
rm -f sqlite/dispersy.db
rm -f sqlite/dispersy.db-journal
rm -f dispersy.log
python -O "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-batch || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-classification || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-crypto || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-destroy-community || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-dynamic-settings || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-identical-payload || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-member-tag || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-missing-message || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-signature || exit 1
# python -O "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-subjective-set || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-sync || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-timeline || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --enable-dispersy-script --script dispersy-undo || exit 1
rm -f sqlite/dispersy.db
rm -f sqlite/dispersy.db-journal
rm -f dispersy.log
python -O "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-batch || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-classification || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-crypto || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-destroy-community || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-dynamic-settings || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-identical-payload || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-member-tag || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-missing-message || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-signature || exit 1
# python -O "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-subjective-set || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-sync || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-timeline || exit 1
python -O "$BRANCH/Tribler/Main/dispersy.py" --swiftproc --enable-dispersy-script --script dispersy-undo || exit 1
echo "================================================================================"
echo "Finished testcases successfully"
echo "================================================================================"