File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,8 @@ before_install:
82
82
brew tap homebrew/binary --quiet
83
83
brew_force_set_latest_binary_hash perforce
84
84
brew_force_set_latest_binary_hash perforce-server
85
+ # Uncomment this if you want to run perf tests:
86
+ # brew install gnu-time
85
87
brew install git-lfs perforce-server perforce gettext
86
88
brew link --force gettext
87
89
;;
Original file line number Diff line number Diff line change @@ -127,11 +127,15 @@ test_checkout_worktree () {
127
127
# Performance tests should never fail. If they do, stop immediately
128
128
immediate=t
129
129
130
+ # Perf tests require GNU time
131
+ case " $( uname -s) " in Darwin) GTIME=" ${GTIME:- gtime} " ;; esac
132
+ GTIME=" ${GTIME:-/ usr/ bin/ time} "
133
+
130
134
test_run_perf_ () {
131
135
test_cleanup=:
132
136
test_export_=" test_cleanup"
133
137
export test_cleanup test_export_
134
- /usr/bin/time -f " %E %U %S" -o test_time.$i " $SHELL " -c '
138
+ " $GTIME " -f " %E %U %S" -o test_time.$i " $SHELL " -c '
135
139
. ' " $TEST_DIRECTORY " /test-lib-functions.sh'
136
140
test_export () {
137
141
[ $# != 0 ] || return 0
You can’t perform that action at this time.
0 commit comments