Skip to content
Snippets Groups Projects
Commit 22daa9bc authored by Jean-Baptiste Keck's avatar Jean-Baptiste Keck
Browse files

fixed test.sh

parent 5cdc8736
No related branches found
No related tags found
1 merge request!16MPI operators
Pipeline #19962 failed
...@@ -41,14 +41,16 @@ if [ "$HAS_CACHE_DIR" = true ]; then ...@@ -41,14 +41,16 @@ if [ "$HAS_CACHE_DIR" = true ]; then
fi fi
fi fi
export PYTHONPATH="$INSTALL_DIR/lib/python2.7/site-packages:$INSTALL_DIR:$PYTHONPATH" export PYTHONPATH="$INSTALL_DIR/lib/python2.7/site-packages:$INSTALL_DIR:$PYTHONPATH"
export MPLBACKEND='cairo' export MPLBACKEND='cairo'
export HYSOP_VERBOSE=0 export HYSOP_VERBOSE=0
export HYSOP_DEBUG=0 export HYSOP_DEBUG=0
export HYSOP_PROFILE=0 export HYSOP_PROFILE=0
export HYSOP_KERNEL_DEBUG=0 export HYSOP_KERNEL_DEBUG=0
echo "Trying to load hysop module:"
python -c 'import hysop; print hysop' python -c 'import hysop; print hysop'
echo "module import succesfull !"
echo
DO_TESTS=${DO_TESTS:-true} DO_TESTS=${DO_TESTS:-true}
DO_EXAMPLES=${DO_EXAMPLES:-true} DO_EXAMPLES=${DO_EXAMPLES:-true}
...@@ -61,15 +63,19 @@ EXAMPLE_DIR="$HYSOP_DIR/../examples" ...@@ -61,15 +63,19 @@ EXAMPLE_DIR="$HYSOP_DIR/../examples"
function hysop_test { function hysop_test {
test=$1 test=$1
echo
echo "TESTING $1" echo "TESTING $1"
echo "========$(printf '=%.0s' `seq ${#1}`)" echo "========$(printf '=%.0s' `seq ${#1}`)"
python "${TEST_DIR}/${1} ${TEST_OPTIONS}" python2 "${TEST_DIR}/${1}" ${TEST_OPTIONS}
echo
} }
function example_test { function example_test {
test=$1 test=$1
echo
echo "EXAMPLE $1" echo "EXAMPLE $1"
echo "========$(printf '=%.0s' `seq ${#1}`)" echo "========$(printf '=%.0s' `seq ${#1}`)"
python "${EXAMPLE_DIR}/${1} ${EXAMPLE_OPTIONS}" python2 "${EXAMPLE_DIR}/${1}" ${EXAMPLE_OPTIONS}
echo
} }
if [ "$DO_TESTS" = true ]; then if [ "$DO_TESTS" = true ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment