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:
8282 brew tap homebrew/binary --quiet
8383 brew_force_set_latest_binary_hash perforce
8484 brew_force_set_latest_binary_hash perforce-server
85+ # Uncomment this if you want to run perf tests:
86+ # brew install gnu-time
8587 brew install git-lfs perforce-server perforce gettext
8688 brew link --force gettext
8789 ;;
Original file line number Diff line number Diff line change @@ -127,11 +127,15 @@ test_checkout_worktree () {
127127# Performance tests should never fail. If they do, stop immediately
128128immediate=t
129129
130+ # Perf tests require GNU time
131+ case " $( uname -s) " in Darwin) GTIME=" ${GTIME:- gtime} " ;; esac
132+ GTIME=" ${GTIME:-/ usr/ bin/ time} "
133+
130134test_run_perf_ () {
131135 test_cleanup=:
132136 test_export_=" test_cleanup"
133137 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 '
135139. ' " $TEST_DIRECTORY " /test-lib-functions.sh'
136140test_export () {
137141 [ $# != 0 ] || return 0
You can’t perform that action at this time.
0 commit comments