Andrii Nakryiko
0ff97e56c0
selftests/bpf: abstract away test log output
...
This patch changes how test output is printed out. By default, if test
had no errors, the only output will be a single line with test number,
name, and verdict at the end, e.g.:
#31 xdp:OK
If test had any errors, all log output captured during test execution
will be output after test completes.
It's possible to force output of log with `-v` (`--verbose`) option, in
which case output won't be buffered and will be output immediately.
To support this, individual tests are required to use helper methods for
logging: `test__printf()` and `test__vprintf()`.
Signed-off-by: Andrii Nakryiko <andriin@fb.com >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
2019-07-27 22:36:19 -07:00
..
2017-05-03 09:51:25 -04:00
2017-11-02 11:10:55 +01:00
2019-05-16 11:41:31 -07:00
2019-07-27 22:36:19 -07:00
2019-07-25 18:00:41 -07:00
2019-07-25 17:56:00 -07:00
2019-07-06 00:18:16 +02:00
2019-06-11 10:36:02 +02:00
2019-07-12 15:38:14 +02:00
2018-05-14 19:11:45 -07:00
2018-02-26 20:11:23 -08:00
2019-06-11 10:36:02 +02:00
2019-06-15 01:14:07 +02:00
2018-07-15 00:08:41 +02:00
2019-04-24 01:32:26 +02:00
2019-04-23 18:36:34 +02:00
2019-04-23 18:36:34 +02:00
2018-06-08 00:10:07 +02:00
2019-07-27 22:36:19 -07:00
2018-10-01 16:18:33 +02:00
2019-02-04 21:29:27 +01:00
2019-02-04 21:29:27 +01:00
2019-07-06 00:16:56 +02:00
2019-05-24 14:05:58 -07:00
2019-07-15 23:02:17 +02:00
2019-04-27 09:07:05 -07:00
2019-05-28 09:30:02 -07:00
2019-01-07 13:15:55 -08:00
2019-05-30 11:29:53 -07:00
2019-01-29 00:09:26 +01:00
2018-11-10 15:56:10 -08:00
2019-05-24 14:05:57 -07:00
2019-05-30 11:29:53 -07:00
2018-06-22 00:30:02 +02:00
2019-05-04 23:23:51 -07:00
2018-11-07 22:20:56 +01:00
2018-12-09 14:37:18 -08:00
2018-12-09 14:37:18 -08:00
2019-06-11 13:52:37 +02:00
2019-05-30 11:29:53 -07:00
2019-04-16 19:19:51 -07:00
2018-08-03 10:19:33 +02:00
2019-07-09 01:10:23 +02:00
2019-04-27 09:07:05 -07:00
2019-01-07 13:15:55 -08:00
2019-04-26 01:52:03 -04:00
2019-07-27 22:36:19 -07:00
2019-07-27 22:36:19 -07:00
2019-07-05 22:52:25 +02:00
2019-06-27 15:25:17 -07:00
2018-08-11 01:58:46 +02:00
2019-06-15 01:21:50 +02:00
2019-01-07 13:15:55 -08:00
2018-10-31 23:05:30 +01:00
2019-06-17 20:20:36 -07:00
2018-10-31 23:05:30 +01:00
2019-05-24 18:58:37 -07:00
2019-02-07 18:22:31 -08:00
2019-06-15 01:21:59 +02:00
2019-07-05 22:52:25 +02:00
2019-01-29 00:09:26 +01:00
2019-06-27 15:25:17 -07:00
2019-06-29 01:21:53 +02:00
2019-06-27 15:25:17 -07:00
2019-05-24 18:58:37 -07:00
2019-04-12 13:54:59 -07:00
2018-02-26 20:11:23 -08:00
2019-03-22 18:16:44 -07:00
2019-04-24 01:32:26 +02:00
2019-03-21 18:59:11 -07:00
2019-03-21 18:59:11 -07:00
2019-07-03 16:52:02 +02:00
2019-01-07 13:15:55 -08:00
2018-07-15 00:08:41 +02:00
2019-07-23 16:05:42 -07:00
2018-11-09 09:40:17 +01:00
2019-05-28 11:08:57 +02:00
2018-02-26 20:11:23 -08:00
2019-07-25 17:56:00 -07:00
2018-02-06 11:34:42 +01:00
2018-02-06 11:34:42 +01:00
2019-06-24 18:18:30 -07:00
2018-10-09 21:59:09 -07:00
2019-05-31 19:53:45 -07:00
2019-07-23 16:05:42 -07:00
2019-07-23 16:05:42 -07:00
2019-03-21 19:37:30 -07:00
2018-09-14 12:04:33 -07:00
2018-09-14 12:04:33 -07:00
2019-05-31 19:53:45 -07:00
2019-05-31 19:53:45 -07:00