]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[test] Print out profiling statistics after a successful test run
authorMichael Brown <mcb30@ipxe.org>
Fri, 2 May 2014 14:20:12 +0000 (15:20 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 2 May 2014 14:23:20 +0000 (15:23 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/tests/test.c

index 9b65e35146e1a2d2401d33aba6ac8acf206cd221..c05e72a769acbe555e12252728dcc9389c405ea0 100644 (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;
        }
 }