regtests.sh

来自「FreeFem++可以生成高质量的有限元网格。可以用于流体力学」· Shell 代码 · 共 88 行

SH
88
字号
#!/bin/bash# Runs all regression tests on all compiled FreeFem++ versions# ------------------------------------------------------------# Antoine Le Hyaric - LJLL Paris 6 - lehyaric@ann.jussieu.fr - 19/5/04# $Id: regtests.sh,v 1.16 2008/11/25 15:49:48 hecht Exp $# To run one set of tests on one executable# $1=program to run# $2=tag for trace file# $3=EDP script to runfunction dotest(){    # Running FreeFem++ on regtests.edp (specific to regression    # tests), otherwise on all.edp.    echo regtests.sh: running $1 $3, result in regtests-$2.log    $1 $3|tee regtests-$2.log    if test $PIPESTATUS != 0	then	exit 1    fi}# For the example++-load testsexport LD_LIBRARY_PATH="$LD_LIBRARY_PATH:."# In visual checks, we can run even the most invasive programsscript=$REGEDPif test "$VISUALCHECK" = yes -a "$REGEDP" = regtests.edpthen    script=all.edpfi# Number of processors in parallel modeif test "$NPROCS" != ""    then    nprocs=$NPROCSelse    nprocs=1fi# Do not test windowed programs by default, because their windows are# too invasive.if test "$VISUALCHECK" = yesthen    export PATH="${PROGLOC}/nw/:$PATH";  dotest FreeFem++${EXEEXT} std $scriptfiif test $nprocs = 1    then    dotest ${PROGLOC}/nw/FreeFem++-nw${EXEEXT} nw $scriptfiif test "${X11PROG}" != "" -a "${VISUALCHECK}" = "yes"then    dotest ${PROGLOC}/x11/FreeFem++-x11${EXEEXT} x11 $scriptfiif test "${GLXPROG}" != "" -a "${VISUALCHECK}" = "yes"then    dotest ${PROGLOC}/glx/FreeFem++-glx${EXEEXT} glx $scriptfiif test "${AGLPROG}" != "" -a "${VISUALCHECK}" = "yes"then    dotest ${PROGLOC}/agl/FreeFem++-agl${EXEEXT} agl $scriptfiif test "${MPIPROG}" != ""    then    mpich=`mpirun -h 2>&1 |grep mpich  |wc  -l`    host=`hostname`    echo $host>machinefile    echo $host>>machinefile    if [ $mpich -ne 0 ] ; then    dotest "mpirun -np $nprocs -machinefile machinefile ${PROGLOC}/mpi/FreeFem++-mpi${EXEEXT}" mpi $script    else    lamboot      dotest "mpirun -np $nprocs ${PROGLOC}/mpi/FreeFem++-mpi${EXEEXT}" mpi $script    fifiif test "${IDEPROG}" != "" -a "${VISUALCHECK}" = "yes"then    dotest ${PROGLOC}/ide/FreeFem++-cs${EXEEXT} ide $scriptfi

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?