Changeset 6f27b67


Ignore:
Timestamp:
Jul 12, 2021, 4:31:29 PM (3 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
37c6f77
Parents:
605673f
Message:

Could not get rmit.py working with the exception benchmark, but I got one improvement along the way.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • benchmark/rmit.py

    r605673f r6f27b67  
    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

    r605673f r6f27b67  
    3838        done
    3939        exit 0
    40 elif [ 2 == "$#" ]; then
     40elif [ 2 -eq "$#" ]; then
    4141    TEST_LANG="$1"
    4242    TEST_CASE="$2"
    43 # Just a weird hack to make this work with rmit.py.
    44 elif [ 4 == "$#" ]; then
    45     # -l TEST_LANG -t TEST_CASE
    46     if [ "-l" = "$1" ]; then
    47         TEST_LANG="$2"
    48         TEST_CASE="$4"
    49     # -t TEST_CASE -l TEST_LANG
    50     else
    51         TEST_LANG="$4"
    52         TEST_CASE="$2"
    53     fi
    5443else
    5544    echo "Unknown call pattern." >&2
Note: See TracChangeset for help on using the changeset viewer.