v0.14.0
run_cron_script_continous.sh
Go to the documentation of this file.
1 #!/bin/sh
2 
3 export LD_LIBRARY_PATH=/opt/local_boost_1_65_1/lib
4 
5 if [ -e $HOME/tests_cephas.lock ]
6 then
7  echo "lock"
8 else
9  CWD=`pwd`
10  CTEST_SCRIPTS_FILE_PATH=$HOME/mofem-cephas/mofem/cmake
11  CTEST_USER_MODULES_PATH=$HOME/tmp/cephas_users_modules/users_modules/
12  CTSET_SCRIPT=CTestScript_rdb-srv1.cmake
13  BUILD_DIR=$HOME/tmp/cephas/build
14  touch $HOME/tests_cephas.lock
15  cd $CTEST_SCRIPTS_FILE_PATH
16  /opt/local/bin/ctest -VV --http1.0 -S $CTSET_SCRIPT >> $HOME/tests_cephas.log 2>&1
17  if [ -e $HOME/tmp/cephas/source/has_bin_build ]; then
18  rm $HOME/tmp/cephas/source/has_bin_build
19  cd $BUILD_DIR
20  /usr/bin/make install
21  chmod u+x $CTEST_USER_MODULES_PATH/scripts/run_cron_script.sh
22  $CTEST_USER_MODULES_PATH/scripts/run_cron_script.sh
23  fi
24  cd $CWD
25  rm -v $HOME/tests_cephas.lock
26 fi