-
Notifications
You must be signed in to change notification settings - Fork 3
/
run_tests.sh
executable file
·32 lines (25 loc) · 1.1 KB
/
run_tests.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
#!/usr/bin/env sh
echo "*****************************************************"
echo "* *"
echo "* Testing the LEAN toolset. *"
echo "* *"
echo "*****************************************************"
sh tests/test_docs/run_docs_test.sh | tee docs_test_results.txt
sh tests/test_mongo/run_mongo_test.sh | tee mongo_test_results.txt
sh tests/test_twitter/run_twitter_test.sh | tee twitter_test_results.txt
d="`grep -F failed docs_test_results.txt | wc -l`"
m="`grep -F failed mongo_test_results.txt | wc -l`"
t="`grep -F failed twitter_test_results.txt | wc -l`"
a="$(($d+$m+$t))"
if [ $a -ne 0 ]; then
echo "*****************************************"
echo " ERROR: $a test(s) failed"
echo "*****************************************"
else
echo "*****************************************"
echo " SUCCESS: all tests passed"
echo "*****************************************"
fi
rm -f -r docs_test_results.txt
rm -f -r mongo_test_results.txt
rm -f -r twitter_test_results.txt