Simon Glass
b25ff5cbaa
dm: test: Add a way to run SPL tests
...
Add a -u flag for U-Boot SPL which requests that unit tests be run. To
make this work, export dm_test_main() and update it to skip test features
that are not used with of-platdata.
To run the tests:
$ spl/u-boot-spl -u
U-Boot SPL 2020.10-rc5 (Oct 01 2020 - 07:35:39 -0600)
Running 0 driver model tests
Failures: 0
At present there are no SPL unit tests.
Note that there is one wrinkle with these tests. SPL has limited memory
available for allocation. Also malloc_simple does not free memory
(free() is a nop) and running tests repeatedly causes driver-model to
reinit multiple times and allocate memory. Therefore it is not possible
to run more than a few tests at a time. One solution is to increase the
amount of malloc space in sandbox_spl. This is not a problem for pytest,
since it runs each test individually, so for now this is left as is.
Signed-off-by: Simon Glass <sjg@chromium.org >
2020-10-29 14:42:18 -06:00
..
2020-09-25 11:27:26 +08:00
2020-10-29 14:42:17 -06:00
2020-09-09 16:57:35 -04:00
2020-10-29 09:10:24 -04:00
2020-07-22 12:37:17 +02:00
2020-10-29 14:42:18 -06:00
2020-10-28 11:48:32 -04:00
2020-10-12 07:26:57 -04:00
2020-07-17 09:30:13 -04:00
2020-08-25 09:33:35 +08:00
2020-10-20 00:49:05 +02:00
2020-09-30 16:55:03 -04:00
2020-10-23 16:38:33 -04:00
2020-10-29 14:42:18 -06:00
2020-10-12 21:30:37 -04:00
2020-10-01 19:43:05 +02:00
2020-10-23 09:16:01 -04:00
2020-10-22 09:54:53 -04:00
2020-10-09 17:53:12 +08:00
2020-08-24 14:11:13 -04:00
2020-10-29 14:42:17 -06:00
2020-08-14 15:18:30 -04:00
2020-10-06 09:07:54 -06:00
2020-10-14 11:16:34 -04:00
2020-07-09 12:33:24 +08:00
2020-07-28 19:30:39 -06:00
2020-07-09 22:00:29 -06:00
2020-07-08 17:21:46 -04:00
2020-10-06 07:43:56 +02:00
2020-10-29 14:42:17 -06:00
2020-08-07 22:31:32 -04:00
2020-07-25 14:46:57 -06:00
2020-07-08 17:21:46 -04:00
2020-09-01 14:47:43 +02:00
2020-10-22 09:54:54 -04:00
2020-08-03 22:19:54 -04:00
2020-08-03 22:19:54 -04:00
2020-10-29 14:42:17 -06:00
2020-07-11 23:14:17 +02:00
2020-08-03 22:19:54 -04:00
2020-09-27 16:10:45 +02:00
2020-08-24 16:37:53 +02:00
2020-09-06 21:21:41 +02:00
2020-06-26 10:29:26 -04:00
2020-07-31 10:13:00 -04:00
2020-07-31 10:13:00 -04:00
2020-07-31 10:13:00 -04:00
2020-08-03 22:19:54 -04:00
2020-09-01 14:47:43 +02:00
2020-10-14 11:16:34 -04:00
2020-09-22 12:54:13 -06:00
2020-07-17 09:30:13 -04:00
2020-08-03 22:19:54 -04:00
2020-08-07 22:31:32 -04:00
2020-07-27 14:16:26 +05:30
2020-07-17 09:30:13 -04:00
2020-10-14 14:00:44 +08:00
2020-09-24 08:27:44 -04:00
2020-09-17 06:09:53 +02:00
2020-07-27 14:16:29 +05:30
2020-08-26 09:19:16 +02:00
2020-06-12 13:14:07 -04:00
2020-09-25 11:27:15 +08:00
2020-10-22 09:54:52 -04:00
2020-08-06 14:26:35 -04:00
2020-07-17 14:32:24 +08:00
2020-08-04 23:30:02 -04:00
2020-10-27 13:50:53 -04:00
2020-10-18 10:36:05 +02:00
2020-07-22 12:32:41 +02:00
2020-10-12 15:46:34 +08:00
2020-10-28 11:48:32 -04:00
2020-10-28 11:48:55 -04:00
2020-07-17 09:30:13 -04:00
2020-07-08 17:21:46 -04:00
2020-10-19 22:59:53 +02:00
2020-07-17 09:30:13 -04:00
2020-09-15 18:51:53 +05:30
2020-09-25 11:27:19 +08:00
2020-07-17 10:47:19 -04:00
2020-10-23 16:52:09 +05:30
2020-08-03 22:19:54 -04:00
2020-09-16 16:54:00 -04:00
2020-08-14 15:18:30 -04:00
2020-06-14 21:07:20 +02:00
2020-09-30 11:55:23 -04:00
2020-09-30 08:53:38 -04:00
2020-09-30 11:55:22 -04:00
2020-06-14 21:07:20 +02:00
2020-07-09 06:02:44 +02:00
2020-08-24 11:03:26 +02:00
2020-09-30 11:55:23 -04:00
2020-09-30 11:55:23 -04:00
2020-09-30 11:55:23 -04:00
2020-10-12 15:50:19 +08:00
2020-07-31 10:13:00 -04:00
2020-08-06 14:27:27 -04:00
2020-07-25 14:46:57 -06:00
2020-08-03 22:19:54 -04:00
2020-08-03 22:19:54 -04:00
2020-08-03 22:19:54 -04:00
2020-08-11 20:34:46 +05:30
2020-08-07 22:31:32 -04:00
2020-08-23 13:43:10 -04:00
2020-10-22 09:54:53 -04:00
2020-08-03 22:19:54 -04:00
2020-07-17 14:32:24 +08:00
2020-10-22 09:54:53 -04:00
2020-07-08 15:38:32 -04:00
2020-09-24 08:27:44 -04:00
2020-09-01 14:47:43 +02:00
2020-09-01 14:47:43 +02:00
2020-07-09 12:33:24 +08:00
2020-09-25 11:27:27 +08:00
2020-07-17 09:30:13 -04:00
2020-08-14 15:18:30 -04:00
2020-08-03 22:19:54 -04:00
2020-08-03 22:19:54 -04:00
2020-08-14 15:18:30 -04:00
2020-06-23 14:43:23 -04:00
2020-08-20 10:57:46 +02:00
2020-09-23 10:31:41 +02:00
2020-06-24 13:07:57 +02:00