Browse Source

[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 years ago
parent
commit
9c16548506
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/tests/test.c

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

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

Loading…
Cancel
Save