Changes in / [9345684:37c6f77]


Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • benchmark/rmit.py

    r9345684 r37c6f77  
    138138        # ================================================================================
    139139        # Identify the commands to run
    140         commands = ["./" + options.command[0] + "-" + c for c in options.candidates]
     140        command = './' + options.command[0]
     141        if options.candidates:
     142                commands = [command + "-" + c for c in options.candidates]
     143        else:
     144                commands = [command]
    141145        for c in commands:
    142146                if not os.path.isfile(c):
  • doc/theses/andrew_beach_MMath/code/test.sh

    r9345684 r37c6f77  
    3838        done
    3939        exit 0
     40elif [ 2 -eq "$#" ]; then
     41    TEST_LANG="$1"
     42    TEST_CASE="$2"
     43else
     44    echo "Unknown call pattern." >&2
     45    exit 2
    4046fi
    4147
     
    4652}
    4753
    48 case "$2" in
     54case "$TEST_CASE" in
    4955cond-match-all)
    5056        CFAT="./cond-catch $ITERATIONS 1"
     
    96102        ;;
    97103*)
    98         echo "No such test." >&2
     104        echo "No such test: $TEST_CASE" >&2
    99105        exit 2
    100106        ;;
    101107esac
    102108
    103 case "$1" in
     109case "$TEST_LANG" in
    104110cfa-t) echo $CFAT; $CFAT;;
    105111cfa-r) echo $CFAR; $CFAR;;
    106112cpp) echo $CPP; $CPP;;
    107113java) echo $JAVA; $JAVA;;
     114*)
     115        echo "No such language: $TEST_LANG" >&2
     116        exit 2
    108117esac
Note: See TracChangeset for help on using the changeset viewer.