11#! /bin/bash
2- # we set the compiledir to the /Tmp dir to make the test faster by bypassing the nfs network.
2+
3+ # If not jenkins, set workspace to local Tmp
4+ if [ -v $WORKSPACE ]; then
5+ if [ -v $TMPDIR ]; then
6+ TMPDIR=/tmp
7+ fi
8+ WORKSPACE=$TMPDIR
9+ fi
10+
311date
4- ROOT_CWD=/Tmp /nightly_build
5- COMPILEDIR=/Tmp /lisa_theano_compile_dir_deeplearning
12+ ROOT_CWD=$WORKSPACE /nightly_build
13+ COMPILEDIR=$WORKSPACE /compile /lisa_theano_compile_dir_deeplearning
614NOSETESTS=${ROOT_CWD} /Theano/bin/theano-nose
15+ XUNIT=" --with-xunit --xunit-file="
716
817FLAGS=warn.ignore_bug_before=0.5,compiledir=${COMPILEDIR}
918export PYTHONPATH=${ROOT_CWD} /Theano:${ROOT_CWD} /Pylearn:$PYTHONPATH
@@ -19,14 +28,17 @@ echo "git version:" `git rev-parse HEAD`
1928# echo "executing nosetests with mode=FAST_COMPILE"
2029# THEANO_FLAGS=${FLAGS},mode=FAST_COMPILE ${NOSETESTS}
2130echo " executing nosetests speed with mode=FAST_RUN"
22- THEANO_FLAGS=${FLAGS} ,mode=FAST_RUN ${NOSETESTS} test.py:speed
31+ FILE=${ROOT_CWD} /dlt_tests.xml
32+ THEANO_FLAGS=${FLAGS} ,mode=FAST_RUN ${NOSETESTS} ${XUNIT}${FILE} test.py:speed
2333# echo "executing nosetests speed with mode=FAST_RUN and OMP_NUM_THREADS=2"
2434# OMP_NUM_THREADS=2 THEANO_FLAGS=${FLAGS},mode=FAST_RUN ${NOSETESTS} test.py:speed
2535echo " executing nosetests with mode=FAST_RUN,floatX=float32"
26- THEANO_FLAGS=${FLAGS} ,mode=FAST_RUN,floatX=float32 ${NOSETESTS}
36+ FILE=${ROOT_CWD} /dlt_float32_tests.xml
37+ THEANO_FLAGS=${FLAGS} ,mode=FAST_RUN,floatX=float32 ${NOSETESTS} ${XUNIT}${FILE}
2738
2839# we change the seed and record it everyday to test different combination. We record it to be able to reproduce bug caused by different seed. We don't want multiple test in DEBUG_MODE each day as this take too long.
2940# seed=$RANDOM
3041# echo "executing nosetests with mode=DEBUG_MODE with seed of the day $seed"
31- # THEANO_DEBUGMODE_CHECK_STRIDES=0 THEANO_DEBUGMODE_PATIENCE=3 THEANO_COMPILEDIR=/Tmp/lisa_theano_compile_dir_deeplearning THEANO_UNITTEST_SEED=$seed THEANO_DEFAULT_MODE=DEBUG_MODE ${NOSETESTS}
42+ # FILE=${ROOT_CWD}/'dlt_debug_tests.xml'
43+ # THEANO_DEBUGMODE_CHECK_STRIDES=0 THEANO_DEBUGMODE_PATIENCE=3 THEANO_COMPILEDIR=$WORKSPACE/lisa_theano_compile_dir_deeplearning THEANO_UNITTEST_SEED=$seed THEANO_DEFAULT_MODE=DEBUG_MODE ${NOSETESTS} ${XUNIT}${FILE}
3244
0 commit comments