perf/run: add '--config' option to the 'run' script
[gitweb.git] / t / perf / run
index beb4acc0e428d20280a649c428da8b0b3aa5b4c6..1e7c2a59e45dcfbd8f84fb7e29cf8b0448aa73d2 100755 (executable)
@@ -2,9 +2,14 @@
 
 case "$1" in
        --help)
-               echo "usage: $0 [other_git_tree...] [--] [test_scripts]"
+               echo "usage: $0 [--config file] [other_git_tree...] [--] [test_scripts]"
                exit 0
                ;;
+       --config)
+               shift
+               GIT_PERF_CONFIG_FILE=$(cd "$(dirname "$1")"; pwd)/$(basename "$1")
+               export GIT_PERF_CONFIG_FILE
+               shift ;;
 esac
 
 die () {