@@ -77,39 +77,17 @@ list_comparisons () {
80−# chart is expensive to build and usually not required to be rebuilt
81−cabal_which_report() {
82− local path="./bin/$1"
90− local prog_name="bench-report"
92− local prog_path=$(cabal_which_report $prog_name)
93− if test -x "$prog_path"
101build_report_prog() {
80build_report_prog() {
102− local prog_name="bench-report"
81+ local prog_path=$BENCH_REPORT_DIR/bin/bench-report
103− local prog_path=$(cabal_which_report $prog_name)
106 if test ! -x "$prog_path" -a "$BUILD_ONCE" = "0"
84 if test ! -x "$prog_path" -a "$BUILD_ONCE" = "0"
108 echo "Building bench-report executables"
86 echo "Building bench-report executables"
109 BUILD_ONCE=1
87 BUILD_ONCE=1
110− pushd $BENCHMARK_DIR/bench-report
88+ pushd $BENCH_REPORT_DIR
111 local cmd
89 local cmd
112− cmd="$CABAL_EXECUTABLE install --installdir $SCRIPT_DIR bench-report"
90+ cmd="$CABAL_EXECUTABLE install --installdir bin bench-report"
113 if test "$USE_NIX" -eq 0
91 if test "$USE_NIX" -eq 0
115 $cmd || die "bench-report build failed"
93 $cmd || die "bench-report build failed"
@@ -117,7 +95,6 @@ build_report_prog() {
117 nix-shell --run "$cmd" || die "bench-report build failed"
95 nix-shell --run "$cmd" || die "bench-report build failed"
121 elif test ! -x "$prog_path"
98 elif test ! -x "$prog_path"
@@ -130,8 +107,8 @@ build_report_progs() {
131 build_report_prog || exit 1
108 build_report_prog || exit 1
132 local prog
109 local prog
133− prog=$(find_report_prog) || \
110+ prog=$BENCH_REPORT_DIR/bin/bench-report
134− die "Cannot find bench-report executable"
111+ test -x $prog || die "Cannot find bench-report executable"
135 echo "Using bench-report executable [$prog]"
112 echo "Using bench-report executable [$prog]"
@@ -426,8 +403,8 @@ run_measurements() {
427run_reports() {
404run_reports() {
428 local prog
405 local prog
429− prog=$(find_report_prog) || \
406+ prog=$BENCH_REPORT_DIR/bin/bench-report
430− die "Cannot find bench-graph executable"
407+ test -x $prog || die "Cannot find bench-report executable"
433 for i in $1
410 for i in $1
@@ -445,8 +422,6 @@ run_reports() {
445# Execution starts here
422# Execution starts here
446#-----------------------------------------------------------------------------
423#-----------------------------------------------------------------------------
450USE_GIT_CABAL=1 # This is used by set_common_vars
425USE_GIT_CABAL=1 # This is used by set_common_vars
451set_common_vars
426set_common_vars