@@ -22,14 +22,14 @@ This script builds and runs benchmarks from compute-benchmarks."
2222
2323clone_perf_res () {
2424 echo " ### Cloning llvm-ci-perf-res ($PERF_RES_GIT_REPO :$PERF_RES_BRANCH ) ###"
25- mkdir -p " $( dirname $PERF_RES_PATH ) "
25+ mkdir -p " $( dirname " $PERF_RES_PATH " ) "
2626 git clone -b $PERF_RES_BRANCH https://github.com/$PERF_RES_GIT_REPO $PERF_RES_PATH
2727 [ " $? " -ne 0 ] && exit $?
2828}
2929
3030clone_compute_bench () {
3131 echo " ### Cloning compute-benchmarks ($COMPUTE_BENCH_GIT_REPO :$COMPUTE_BENCH_BRANCH ) ###"
32- mkdir -p " $( dirname $COMPUTE_BENCH_PATH ) "
32+ mkdir -p " $( dirname " $COMPUTE_BENCH_PATH " ) "
3333 git clone -b $COMPUTE_BENCH_BRANCH \
3434 --recurse-submodules https://github.com/$COMPUTE_BENCH_GIT_REPO \
3535 $COMPUTE_BENCH_PATH
@@ -98,8 +98,8 @@ samples_under_threshold () {
9898#
9999# Usage: check_regression <relative path of output csv>
100100check_regression () {
101- csv_relpath=" $( dirname $1 ) "
102- csv_name=" $( basename $1 ) "
101+ csv_relpath=" $( dirname " $1 " ) "
102+ csv_name=" $( basename " $1 " ) "
103103 if samples_under_threshold " $csv_relpath " ; then
104104 echo " Not enough samples to construct a good average, performance\
105105 check skipped!"
@@ -145,7 +145,7 @@ process_benchmarks() {
145145 exit 1
146146 else
147147 rm " $BENCHMARK_ERROR_LOG " " $BENCHMARK_SLOW_LOG " 2> /dev/null
148- mkdir -p " $( dirname $BENCHMARK_ERROR_LOG ) " " $( dirname $BENCHMARK_SLOW_LOG ) "
148+ mkdir -p " $( dirname " $BENCHMARK_ERROR_LOG " ) " " $( dirname " $BENCHMARK_SLOW_LOG " ) "
149149 # Loop through each line of enabled_tests.conf, but ignore lines in the
150150 # test config starting with #'s:
151151 grep " ^[^#]" " $TESTS_CONFIG " | while read -r testcase; do
@@ -216,7 +216,7 @@ load_configs() {
216216 # If this is not provided, this function tries to guess where the files
217217 # are based on how the script is called, and verifies that all necessary
218218 # configs and scripts are reachable.
219- [ -z " $BENCHMARKING_ROOT " ] && BENCHMARKING_ROOT=" $( dirname $0 ) "
219+ [ -z " $BENCHMARKING_ROOT " ] && BENCHMARKING_ROOT=" $( dirname " $0 " ) "
220220
221221 BENCHMARK_CI_CONFIG=" $( realpath $BENCHMARKING_ROOT /benchmark-ci.conf) "
222222 TESTS_CONFIG=" $( realpath $BENCHMARKING_ROOT /enabled_tests.conf) "
0 commit comments