From 4f8b5026ec569a542e578c10d0c6227363d8e3d8 Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Wed, 20 Jul 2011 23:05:27 +0200 Subject: [PATCH] testsuite: Target for timing all tests --- testsuite/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testsuite/Makefile b/testsuite/Makefile index 70634544..b19f0fe4 100644 --- a/testsuite/Makefile +++ b/testsuite/Makefile @@ -34,3 +34,9 @@ portable: # Cache sudo password sudo echo time bash Portable.sh + +timings: tests-to-run/* + ls tests-to-run/*3.sh | xargs -n1 echo /usr/bin/time -f %e bash >/tmp/timing.script + stdout bash -x /tmp/timing.script >/tmp/timing.out + echo usr.bin.time_END >>/tmp/timing.out + perl -ne '/usr.bin.time/ and do { print $$last.$$h; $$h=$$_ }; chomp; $$last = $$_' /tmp/timing.out | sort -n >timings