-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmini_run_tests.sh
executable file
·85 lines (63 loc) · 2.07 KB
/
mini_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
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
#!/bin/bash
echo -e "======== Running tests ========\n"
python_bin=python
nose_bin=nosetests
$nose_bin tests/unit/*.py || {
echo "Please install nose and make sure that you're inside the PyRDF directory !"
exit 1
}
$nose_bin tests/unit/backend/*.py || {
echo "Please install nose and make sure that you're inside the PyRDF directory !"
exit 1
}
$nose_bin tests/integration/local/*.py || {
echo "Please install nose and make sure that you're inside the PyRDF directory !"
exit 1
}
$nose_bin tests/integration/spark/*.py || {
echo "Please install nose and make sure that you're inside the PyRDF directory !"
exit 1
}
echo -e "\n \033[0;32m Ran tests successfully ! \033[0m \n"
echo -e "======== Running single-threaded tutorials ========\n"
{
# Run single-threaded tutorials locally
for filename in ./tutorials/local/sequential/df*.py
do
echo -e "\n== Running $filename ==\n"
$python_bin "$filename"
echo -e "\n \033[0;32m Ran $filename successfully ! \033[0m"
done
} || {
echo "Error in running tutorials ! Check if you're in the PyRDF root directory !"
exit 1
}
echo -e "\n======== \033[0;32m Ran single-threaded tutorials successfully ! \033[0m ========\n"
echo -e "======== Running multi-threaded tutorials ========\n"
{
# Run multi-threaded tutorials locally
for filename in ./tutorials/local/MT/df*.py
do
echo -e "\n== Running $filename ==\n"
$python_bin "$filename"
echo -e "\n \033[0;32m Ran $filename successfully ! \033[0m"
done
} || {
echo -e "Error in running tutorials ! Check if you're in the PyRDF root directory !"
exit 1
}
echo -e "\n======== \033[0;32m Ran multi-threaded tutorials successfully ! \033[0m ========\n"
echo -e "======== Running Spark tutorials ========\n"
{
# Run Spark tutorials locally
for filename in ./tutorials/spark/df*.py
do
echo -e "\n== Running $filename ==\n"
$python_bin "$filename"
echo -e "\n \033[0;32m Ran $filename successfully ! \033[0m"
done
} || {
echo -e "Error in running tutorials ! Check if you're in the PyRDF root directory !"
exit 1
}
echo -e "\n======== \033[0;32m Ran Spark tutorials successfully ! \033[0m ========\n"