Просмотр исходного кода

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 лет назад
Родитель
Сommit
9c16548506
1 измененных файлов: 2 добавлений и 0 удалений
  1. 2
    0
      src/tests/test.c

+ 2
- 0
src/tests/test.c Просмотреть файл

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
 }

Загрузка…
Отмена
Сохранить