Add test-timing script

Through some clever stream redirections and options, we can get decent
timing data for each of our tests.
pull/2616/head
Jason Petersen 2019-02-26 22:23:24 -07:00
parent 1b605a6109
commit 5817bc3cce
No known key found for this signature in database
GPG Key ID: 9F1D3510D110ABA9
2 changed files with 5 additions and 1 deletions

View File

@ -15,7 +15,7 @@ endif
##
MULTI_INSTALLDIR=$(CURDIR)/tmp_check/install
pg_regress_multi_check = $(PERL) $(citus_abs_srcdir)/pg_regress_multi.pl --pgxsdir="$(pgxsdir)" --bindir="$(bindir)" --libdir="$(libdir)" --majorversion="$(MAJORVERSION)" --postgres-builddir="$(postgres_abs_builddir)" --postgres-srcdir="$(postgres_abs_srcdir)"
MULTI_REGRESS_OPTS = --inputdir=$(citus_abs_srcdir) $(pg_regress_locale_flags)
MULTI_REGRESS_OPTS = --inputdir=$(citus_abs_srcdir) $(pg_regress_locale_flags) --launcher="$(citus_abs_srcdir)/log_test_times"
# XXX: Can't actually do useful testruns against install - $libdir
# etc will point to the directory configured during postgres'

View File

@ -0,0 +1,4 @@
#!/bin/bash
export TIMEFORMAT="${PG_MAJOR}/${PGAPPNAME} %6R"
{ { time "$@" 1>&3- 2>&4-; } 2>> test_times.log; } 3>&1 4>&2