mirror of https://github.com/ipxe/ipxe.git
[test] Print out profiling statistics after a successful test run
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/19/head
parent
34eaf69ddf
commit
9c16548506
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue