Skip to content

Commit

Permalink
Printing sorted runtimes of all unit tests run under libopflex and ag…
Browse files Browse the repository at this point in the history
…ent-ovs

- This will give a high-level summary of how much time every test takes
- the time taken is obtained using boost log level=test_suite
- only added for the vanilla build (not for tsan, asan or ubsan where the times are expected to be longer)

Signed-off-by: Gautam Venkataramanan <gautam.chennai@gmail.com>
  • Loading branch information
gautvenk committed Jun 11, 2020
1 parent bfbde28 commit 4a02ed0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis/travis-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
set -o errtrace
set -x

export BOOST_TEST_COLOR_OUTPUT=yes
export BOOST_TEST_LOG_LEVEL=test_suite

pushd libopflex
./autogen.sh
./configure --enable-coverage &> /dev/null
Expand Down Expand Up @@ -30,3 +33,8 @@ sudo make install
make check
find . -name test-suite.log|xargs cat
popd

find . -name *_test.log | xargs grep "Leaving test case" | \
awk '{gsub(/\"|\;/,"")}1' | sed 's/..$//; s/\// /g; s/\:/ /g' | \
awk '{print $NF , $6 , $10}' | sort -nrk1 | \
awk '{print "time:"$1"us", "test:"$2":"$3}'

0 comments on commit 4a02ed0

Please sign in to comment.