Merge branch 'sg/travis-install-dependencies'
[gitweb.git] / t / perf / perf-lib.sh
index a54be0951667e0bb3d00e7129912b5052b0ebab0..11d1922cf58edb78b8e311e3fa041ae54b625e74 100644 (file)
@@ -231,6 +231,19 @@ test_perf () {
        test_wrapper_ test_perf_ "$@"
 }
 
+test_size_ () {
+       say >&3 "running: $2"
+       if test_eval_ "$2" 3>"$base".size; then
+               test_ok_ "$1"
+       else
+               test_failure_ "$@"
+       fi
+}
+
+test_size () {
+       test_wrapper_ test_size_ "$@"
+}
+
 # We extend test_done to print timings at the end (./run disables this
 # and does it after running everything)
 test_at_end_hook_ () {