mirror of
https://github.com/ipxe/ipxe
synced 2026-04-16 03:00:10 +03:00
[test] Print out profiling statistics after a successful test run
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -35,6 +35,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
|||||||
#include <ipxe/test.h>
|
#include <ipxe/test.h>
|
||||||
#include <ipxe/init.h>
|
#include <ipxe/init.h>
|
||||||
#include <ipxe/image.h>
|
#include <ipxe/image.h>
|
||||||
|
#include <usr/profstat.h>
|
||||||
|
|
||||||
/** Current self-test set */
|
/** Current self-test set */
|
||||||
static struct self_test *current_tests;
|
static struct self_test *current_tests;
|
||||||
@@ -134,6 +135,7 @@ static int run_all_tests ( void ) {
|
|||||||
return -EINPROGRESS;
|
return -EINPROGRESS;
|
||||||
} else {
|
} else {
|
||||||
printf ( "OK: all %d tests passed\n", total );
|
printf ( "OK: all %d tests passed\n", total );
|
||||||
|
profstat();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user