Sfoglia il codice sorgente

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 10 anni fa
parent
commit
9c16548506
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2
    0
      src/tests/test.c

+ 2
- 0
src/tests/test.c Vedi File

@@ -35,6 +35,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
35 35
 #include <ipxe/test.h>
36 36
 #include <ipxe/init.h>
37 37
 #include <ipxe/image.h>
38
+#include <usr/profstat.h>
38 39
 
39 40
 /** Current self-test set */
40 41
 static struct self_test *current_tests;
@@ -134,6 +135,7 @@ static int run_all_tests ( void ) {
134 135
 		return -EINPROGRESS;
135 136
 	} else {
136 137
 		printf ( "OK: all %d tests passed\n", total );
138
+		profstat();
137 139
 		return 0;
138 140
 	}
139 141
 }

Loading…
Annulla
Salva