I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 7346ce1c authored by str4d's avatar str4d
Browse files

Enable benchmarks.sh to run with everything in one directory

parent d5e97d23
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
CWD=$(dirname "$0")
if [ "x$JBIGI" = 'x' ]
then
JBIGI="$CWD/../build/jbigi.jar"
fi
if [ "x$JAVA" = 'x' ]
then
JAVA=java
fi
CLASSPATH="$CWD/java/build/benchmarks.jar"
if [ "x$BENCHMARKS" = 'x' ]
then
BENCHMARKS="$CWD/benchmarks.jar"
stat "$BENCHMARKS" >/dev/null 2>&1
if [ "x$?" != 'x0' ]
then
BENCHMARKS="$CWD/java/build/benchmarks.jar"
fi
fi
if [ "x$JBIGI" = 'x' ]
then
JBIGI="$CWD/jbigi.jar"
stat "$JBIGI" >/dev/null 2>&1
if [ "x$?" != 'x0' ]
then
JBIGI="$CWD/../build/jbigi.jar"
fi
fi
CLASSPATH="$BENCHMARKS"
if [ "x${1:-}" = 'x--jbigi' ]
then
CLASSPATH="$CLASSPATH:$JBIGI"
shift
fi
$JAVA -cp "$CLASSPATH" org.openjdk.jmh.Main "$@"
$JAVA -cp "$CLASSPATH" "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment