@@ -46,6 +46,14 @@ done
47GAUGE_ARGS=$*
47GAUGE_ARGS=$*
49+if test -z "$BENCHMARK"
51+ BENCHMARK=$DEFAULT_BENCHMARK
52+ echo "Using default benchmark suite [$BENCHMARK], use --benchmark to specify another"
54+ echo "Using benchmark suite [$BENCHMARK]"
49STACK=stack
57STACK=stack
50echo "Using stack command [$STACK]"
58echo "Using stack command [$STACK]"
@@ -80,13 +88,6 @@ fi
80# find .stack-work/ -type f -name "benchmarks"
88# find .stack-work/ -type f -name "benchmarks"
82find_bench_prog () {
90find_bench_prog () {
83− if test -z "$BENCHMARK"
85− BENCHMARK=$DEFAULT_BENCHMARK
86− echo "Using default benchmark suite [$BENCHMARK], use --benchmark to specify another"
88− echo "Using benchmark suite [$BENCHMARK]"
90 BENCH_PROG=`$STACK path --dist-dir`/build/$BENCHMARK/$BENCHMARK
91 BENCH_PROG=`$STACK path --dist-dir`/build/$BENCHMARK/$BENCHMARK
91 if test ! -x "$BENCH_PROG"
92 if test ! -x "$BENCH_PROG"