summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorMichael Brown2014-05-02 16:20:12 +0200
committerMichael Brown2014-05-02 16:23:20 +0200
commit9c1654850662448333ae5c9a9e25f8bdd1d44884 (patch)
treec786a5d66fa9ee4280d755a1abd4704ca11c8b62 /src/tests
parent[pcbios] Do not switch to real mode to sleep the CPU (diff)
downloadipxe-9c1654850662448333ae5c9a9e25f8bdd1d44884.tar.gz
ipxe-9c1654850662448333ae5c9a9e25f8bdd1d44884.tar.xz
ipxe-9c1654850662448333ae5c9a9e25f8bdd1d44884.zip
[test] Print out profiling statistics after a successful test run
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/test.c b/src/tests/test.c
index 9b65e351..c05e72a7 100644
--- a/src/tests/test.c
+++ b/src/tests/test.c
@@ -35,6 +35,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/test.h>
#include <ipxe/init.h>
#include <ipxe/image.h>
+#include <usr/profstat.h>
/** Current self-test set */
static struct self_test *current_tests;
@@ -134,6 +135,7 @@ static int run_all_tests ( void ) {
return -EINPROGRESS;
} else {
printf ( "OK: all %d tests passed\n", total );
+ profstat();
return 0;
}
}