diff options
author | Michael Brown <mcb30@ipxe.org> | 2014-05-02 15:20:12 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2014-05-02 15:23:20 +0100 |
commit | 9c1654850662448333ae5c9a9e25f8bdd1d44884 (patch) | |
tree | c786a5d66fa9ee4280d755a1abd4704ca11c8b62 /src | |
parent | 34eaf69ddfabc0877345228a75edecc23a79fc68 (diff) | |
download | ipxe-9c1654850662448333ae5c9a9e25f8bdd1d44884.zip ipxe-9c1654850662448333ae5c9a9e25f8bdd1d44884.tar.gz ipxe-9c1654850662448333ae5c9a9e25f8bdd1d44884.tar.bz2 |
[test] Print out profiling statistics after a successful test run
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/test.c b/src/tests/test.c index 9b65e35..c05e72a 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; } } |