Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /tests/rtest/scripts/run_sh.in
ViewVC logotype

Diff of /tests/rtest/scripts/run_sh.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5222, Thu Jul 27 20:49:46 2017 UTC revision 5223, Thu Jul 27 21:42:48 2017 UTC
# Line 11  Line 11 
11  #       tests/foo/foo.diderot           -- the test source code  #       tests/foo/foo.diderot           -- the test source code
12  #       tests/foo/assess.sh             -- an assessment script that should either return a  #       tests/foo/assess.sh             -- an assessment script that should either return a
13  #                                          numeric result representing the difference, or one  #                                          numeric result representing the difference, or one
14  #                                          of "ok" or "fail".  #                                          of "ok" or "fail".  This script is given the
15    #                                          '--double' flag if it was specified as one of the
16    #                                          diderotc flags.
17  #       tests/foo/correct.{nrrd,txt}    -- the correct output.  Usually a nrrd file, but  #       tests/foo/correct.{nrrd,txt}    -- the correct output.  Usually a nrrd file, but
18  #                                          some tests produce textual output  #                                          some tests produce textual output
19  #       tests/Makefile                  -- optional makefile for building the application  #       tests/Makefile                  -- optional makefile for building the application
# Line 71  Line 73 
73  DIDEROTC_FLAGS=""  DIDEROTC_FLAGS=""
74  RUNTIME_FLAGS=""  RUNTIME_FLAGS=""
75  PARALLEL="no"  PARALLEL="no"
76    DOUBLE=""
77  if [ $# -ne 0 ] ; then  if [ $# -ne 0 ] ; then
78    # first we check for the diderotc command    # first we check for the diderotc command
79    case $1 in    case $1 in
# Line 78  Line 81 
81      /*) DIDEROTC=$1; shift ;; # absolute path      /*) DIDEROTC=$1; shift ;; # absolute path
82      *) DIDEROTC=$HERE/$1; shift ;; #relative path      *) DIDEROTC=$HERE/$1; shift ;; #relative path
83    esac    esac
84    # get diderotc flags    # get diderotc flags; we check for the "--target=parallel" and
85      # "--double" options, since they affect how we build and assess
86      # tests (resp.)
87    while [ $# -ne 0 ] ; do    while [ $# -ne 0 ] ; do
88      case $1 in      case $1 in
89        --) shift; break ;; # switch modes        --) shift; break ;; # switch modes
# Line 86  Line 91 
91          PARALLEL=yes          PARALLEL=yes
92          DIDEROTC_FLAGS="$DIDEROTC_FLAGS $1"          DIDEROTC_FLAGS="$DIDEROTC_FLAGS $1"
93        ;;        ;;
94          --double) DOUBLE=$1 ;;
95        -*) DIDEROTC_FLAGS="$DIDEROTC_FLAGS $1" ;;        -*) DIDEROTC_FLAGS="$DIDEROTC_FLAGS $1" ;;
96        *) echo "unrecognized argument"        *) echo "unrecognized argument"
97          usage 1          usage 1
# Line 155  Line 161 
161      fi      fi
162      if [ "$STS" -eq "0" ] ; then      if [ "$STS" -eq "0" ] ; then
163        echo -n "execution succeeded ... " >> $REPORT        echo -n "execution succeeded ... " >> $REPORT
164        result=$(./assess.sh)        result=$(./assess.sh $DOUBLE)
165        case $result in        case $result in
166          ok) success $t $result ;;          ok) success $t $result ;;
167          fail)          fail)

Legend:
Removed from v.5222  
changed lines
  Added in v.5223

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0