Ignore:
Timestamp:
Sep 8, 2021, 10:42:13 AM (3 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
f26923e
Parents:
031453c
Message:

Andrew MMath: Making sure the printed and actual number of iterations match.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/andrew_beach_MMath/code/test.sh

    r031453c r8e42847  
    5555)
    5656
    57 if [ "-a" = "$1" ]; then                        # build all
     57if [ "-a" = "$1" ]; then
    5858        for file in *.cfa *.cpp *.java; do
    5959                build $file
    6060        done
    6161        exit 0
    62 elif [ "-b" = "$1" ]; then                      # build given
     62elif [ "-b" = "$1" ]; then
    6363        for file in "${@:2}"; do
    6464                build $file
    6565        done
    6666        exit 0
    67 elif [ "-c" = "$1" ]; then                      # clean all
     67elif [ "-c" = "$1" ]; then
    6868        rm $(basename -s ".cfa" -a *.cfa)
    6969        rm $(basename -s ".cpp" -a *.cpp)
     
    9292raise-empty)
    9393        CFAT="./throw-empty $ITERS_1M $STACK_HEIGHT"
    94         CFAR="./resume-empty $ITERS_1M $STACK_HEIGHT"
     94        CFAR="./resume-empty $ITERS_10M $STACK_HEIGHT"
    9595        CPP="./throw-empty-cpp $ITERS_1M $STACK_HEIGHT"
    9696        JAVA="java ThrowEmpty $ITERS_1M $STACK_HEIGHT"
     
    9999raise-detor)
    100100        CFAT="./throw-detor $ITERS_1M $STACK_HEIGHT"
    101         CFAR="./resume-detor $ITERS_1M $STACK_HEIGHT"
     101        CFAR="./resume-detor $ITERS_10M $STACK_HEIGHT"
    102102        CPP="./throw-detor-cpp $ITERS_1M $STACK_HEIGHT"
    103103        JAVA=unsupported
     
    106106raise-finally)
    107107        CFAT="./throw-finally $ITERS_1M $STACK_HEIGHT"
    108         CFAR="./resume-finally $ITERS_1M $STACK_HEIGHT"
     108        CFAR="./resume-finally $ITERS_10M $STACK_HEIGHT"
    109109        CPP=unsupported
    110110        JAVA="java ThrowFinally $ITERS_1M $STACK_HEIGHT"
     
    113113raise-other)
    114114        CFAT="./throw-other $ITERS_1M $STACK_HEIGHT"
    115         CFAR="./resume-other $ITERS_1M $STACK_HEIGHT"
     115        CFAR="./resume-other $ITERS_10M $STACK_HEIGHT"
    116116        CPP="./throw-other-cpp $ITERS_1M $STACK_HEIGHT"
    117117        JAVA="java ThrowOther $ITERS_1M $STACK_HEIGHT"
     
    134134cond-match-all)
    135135        CFAT="./cond-catch $ITERS_10M 1"
    136         CFAR="./cond-fixup $ITERS_10M 1"
     136        CFAR="./cond-fixup $ITERS_100M 1"
    137137        CPP="./cond-catch-cpp $ITERS_10M 1"
    138138        JAVA="java CondCatch $ITERS_10M 1"
     
    141141cond-match-none)
    142142        CFAT="./cond-catch $ITERS_10M 0"
    143         CFAR="./cond-fixup $ITERS_10M 0"
     143        CFAR="./cond-fixup $ITERS_100M 0"
    144144        CPP="./cond-catch-cpp $ITERS_10M 0"
    145145        JAVA="java CondCatch $ITERS_10M 0"
     
    167167
    168168case "$TEST_LANG" in
    169         cfa-t) CALL="$CFAT";;
    170         cfa-r) CALL="$CFAR";;
    171         cpp) CALL="$CPP";;
    172         java) CALL="$JAVA";;
    173         python) CALL="$PYTHON";;
    174         *)
    175                 echo "No such language: $TEST_LANG" >&2
    176                 exit 2
     169cfa-t) CALL="$CFAT";;
     170cfa-r) CALL="$CFAR";;
     171cpp) CALL="$CPP";;
     172java) CALL="$JAVA";;
     173python) CALL="$PYTHON";;
     174*)
     175        echo "No such language: $TEST_LANG" >&2
     176        exit 2
    177177        ;;
    178178esac
Note: See TracChangeset for help on using the changeset viewer.