Changeset 7346ce1


Ignore:
Timestamp:
Sep 8, 2017 10:49:05 AM (3 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
3d24cc9
Parents:
d5e97d2
Message:

Enable benchmarks.sh to run with everything in one directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmarks/benchmark.sh

    rd5e97d2 r7346ce1  
    22
    33CWD=$(dirname "$0")
    4 if [ "x$JBIGI" = 'x' ]
    5 then
    6     JBIGI="$CWD/../build/jbigi.jar"
    7 fi
    84if [ "x$JAVA" = 'x' ]
    95then
     
    117fi
    128
    13 CLASSPATH="$CWD/java/build/benchmarks.jar"
     9if [ "x$BENCHMARKS" = 'x' ]
     10then
     11    BENCHMARKS="$CWD/benchmarks.jar"
     12    stat "$BENCHMARKS" >/dev/null 2>&1
     13    if [ "x$?" != 'x0' ]
     14    then
     15        BENCHMARKS="$CWD/java/build/benchmarks.jar"
     16    fi
     17fi
     18
     19if [ "x$JBIGI" = 'x' ]
     20then
     21    JBIGI="$CWD/jbigi.jar"
     22    stat "$JBIGI" >/dev/null 2>&1
     23    if [ "x$?" != 'x0' ]
     24    then
     25        JBIGI="$CWD/../build/jbigi.jar"
     26    fi
     27fi
     28
     29CLASSPATH="$BENCHMARKS"
    1430if [ "x${1:-}" = 'x--jbigi' ]
    1531then
     
    1834fi
    1935
    20 $JAVA -cp "$CLASSPATH" org.openjdk.jmh.Main "$@"
     36$JAVA -cp "$CLASSPATH" "$@"
Note: See TracChangeset for help on using the changeset viewer.