Mercurial > pylearn
comparison pylearn/misc/do_nightly_build @ 1529:9737834dcb0f
Add the total test time in the buildbot.
author | Frederic Bastien <nouiz@nouiz.org> |
---|---|
date | Mon, 11 Mar 2013 16:56:54 -0400 |
parents | 18c638290706 |
children |
comparison
equal
deleted
inserted
replaced
1528:dee276045768 | 1529:9737834dcb0f |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 #we set the compiledir to the /Tmp dir to make the test faster by bypassing the nfs network. | 2 #we set the compiledir to the /Tmp dir to make the test faster by bypassing the nfs network. |
3 date | 3 date |
4 START=`date +%s` | |
4 ROOT_CWD=/Tmp/nightly_build | 5 ROOT_CWD=/Tmp/nightly_build |
5 COMPILEDIR=/Tmp/lisa_theano_compile_dir_pylearn | 6 COMPILEDIR=/Tmp/lisa_theano_compile_dir_pylearn |
6 NOSETESTS=${ROOT_CWD}/Theano/bin/theano-nose | 7 NOSETESTS=${ROOT_CWD}/Theano/bin/theano-nose |
7 | 8 |
8 | 9 |
24 | 25 |
25 #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. | 26 #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. |
26 seed=$RANDOM | 27 seed=$RANDOM |
27 echo "executing nosetests with mode=DEBUG_MODE with seed of the day $seed" | 28 echo "executing nosetests with mode=DEBUG_MODE with seed of the day $seed" |
28 THEANO_FLAGS=${FLAGS},unittests.rseed=$seed,mode=DEBUG_MODE,DebugMode.check_strides=0,DebugMode.patience=3,DebugMode.check_preallocated_output= ${NOSETESTS} Pylearn | 29 THEANO_FLAGS=${FLAGS},unittests.rseed=$seed,mode=DEBUG_MODE,DebugMode.check_strides=0,DebugMode.patience=3,DebugMode.check_preallocated_output= ${NOSETESTS} Pylearn |
30 | |
31 echo | |
32 END=`date +%s` | |
33 python -c "print 'Total test time: %dm %ds'%((${END} - ${START})/60, (${END} - ${START})%60)" | |
29 date | 34 date |