david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[test] Print out profiling statistics after a successful test run

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2014-05-02 15:20:12 +01:00
parent 34eaf69ddf
commit 9c16548506
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}