-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tests1
executable file
·21 lines (20 loc) · 1017 Bytes
/
run_tests1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
ERROR=0 \
&& pushd CI-Examples/bash &>/dev/null \
&& TEST="bash"; echo ">>>>>> $TEST <<<<<<"; RESULT="PASS" \
&& make &>/dev/null && make regression || { ERROR=1; RESULT="FAIL"; } \
&& echo ">>>>> ${TEST}: $RESULT <<<<<" \
&& popd &>/dev/null \
&& pushd CI-Examples/python &>/dev/null \
&& TEST="python"; echo ">>>>>> $TEST <<<<<<"; RESULT="PASS" \
&& if [ -n "${INSTALL_DEPS}" ]; then sudo apt-get -y install python3.6 python3-scipy &>/dev/null; fi \
&& make &>/dev/null && make check || { ERROR=1; RESULT="FAIL"; } \
&& echo ">>>>> ${TEST}: $RESULT <<<<<" \
&& popd &>/dev/null \
&& pushd CI-Examples/sqlite &>/dev/null \
&& TEST="sqlite"; echo ">>>>>> $TEST <<<<<<"; RESULT="PASS" \
&& if [ -n "${INSTALL_DEPS}" ]; then sudo apt-get -y install sqlite &>/dev/null; fi \
&& make regression || { ERROR=1; RESULT="FAIL"; } \
&& echo ">>>>> ${TEST}: $RESULT <<<<<" \
&& popd &>/dev/null \
&& exit $ERROR