Martin Kletzander
ae60ea48bc
tests: Add virfilewrapper -- the new super "mock"
...
This mock (which is actually not mock at all, see later) can redirect
all accesses to a path into another path. There is no need to
create mocks for particular directories, you just create a directory
with all the data a redirect the test there.
In the future, this should also be able to register callbacks for
calls/paths, e.g. when the test is going to write into anything under
"/sys/devices", call function fce(); Then in the open() call we would
add information about the fd into some structure and in write() we
would call fce() with parameters like @path to write to, @data to
be written and pointer to optional return value, so that fce() itself
could stop the call from happening or change its behaviour. But
that's an idea for a latter day.
This is not a mock because it will not be preloaded, but compiled in
the test itself. See future patches for usage.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
2017-05-09 13:12:40 +02:00
..
2017-02-11 06:51:28 +04:00
2017-03-26 19:22:30 +04:00
2017-03-26 19:22:30 +04:00
2017-04-11 14:06:47 +02:00
2017-03-27 16:29:27 +02:00
2017-04-18 13:27:11 +02:00
2017-04-11 14:06:47 +02:00
2017-04-11 14:06:47 +02:00
2017-01-18 06:31:54 -05:00
2017-04-28 10:22:40 +02:00
2017-04-11 14:06:47 +02:00
2016-07-01 21:13:30 -04:00
2017-03-21 11:25:59 -04:00
2017-03-21 11:25:59 -04:00
2017-03-21 11:25:59 -04:00
2017-02-17 15:47:58 +01:00
2016-12-06 13:34:00 +01:00
2017-04-11 14:06:47 +02:00
2017-04-11 14:06:47 +02:00
2017-04-28 10:44:03 +02:00
2016-09-23 10:30:54 +02:00
2017-04-11 14:06:47 +02:00
2016-11-02 17:36:50 +01:00
2017-04-11 14:06:47 +02:00
2017-03-28 10:54:50 +02:00
2017-03-27 10:35:19 +02:00
2017-04-28 10:47:12 +02:00
2017-04-21 13:34:41 +02:00
2016-09-09 08:20:05 -04:00
2017-03-29 10:36:55 +02:00
2017-03-29 10:36:55 +02:00
2017-03-08 13:22:33 -05:00
2017-03-08 13:22:33 -05:00
2017-03-08 13:22:33 -05:00
2017-03-07 10:44:26 +01:00
2017-03-27 13:13:29 +02:00
2017-03-27 13:13:29 +02:00
2016-12-06 13:33:18 +01:00
2016-05-05 10:01:55 +02:00
2017-04-04 16:36:15 +02:00
2017-04-27 15:05:44 -06:00
2016-09-02 12:46:03 -06:00
2016-06-26 19:33:08 -04:00
2017-02-14 10:54:29 +01:00
2016-07-10 15:40:11 -04:00
2017-04-04 17:30:03 +02:00
2017-04-21 13:35:04 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-11 13:23:01 +02:00
2017-04-19 16:36:38 +02:00
2016-07-01 12:20:54 +02:00
2017-04-18 13:27:11 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-27 14:13:19 +02:00
2017-04-11 13:23:01 +02:00
2017-04-28 14:17:10 +02:00
2017-04-28 10:22:40 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-05-09 13:12:40 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-19 10:51:51 +01:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2016-12-06 13:33:18 +01:00
2016-12-06 13:34:00 +01:00
2017-04-04 17:30:03 +02:00
2017-04-19 10:51:51 +01:00
2017-04-19 10:51:51 +01:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-11 14:06:47 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2016-11-25 20:34:26 +01:00
2017-04-04 17:30:03 +02:00
2017-03-23 10:24:34 +01:00
2017-04-06 10:07:43 +02:00
2017-04-11 14:06:47 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 12:40:27 -04:00
2017-04-04 17:30:03 +02:00
2017-04-10 14:49:20 +02:00
2017-01-18 10:04:11 +01:00
2017-01-20 15:42:12 +01:00
2017-04-28 10:47:12 +02:00
2017-01-20 15:42:12 +01:00
2017-04-21 13:34:41 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-11 14:06:47 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2016-08-18 13:37:08 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-11 14:06:47 +02:00
2017-04-11 14:06:47 +02:00
2017-04-27 15:05:44 -06:00
2016-06-14 08:25:25 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-11 14:06:47 +02:00
2017-04-11 13:23:01 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-05-09 13:12:40 +02:00
2017-05-09 13:12:40 +02:00
2017-04-19 10:51:51 +01:00
2017-04-04 17:30:03 +02:00
2017-04-27 14:13:19 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-25 21:14:18 +01:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2016-12-06 13:33:18 +01:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-03-27 17:34:59 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-02-19 06:45:09 -05:00
2017-04-04 17:30:03 +02:00
2017-04-05 09:51:51 +02:00
2017-04-04 17:30:03 +02:00
2017-04-11 14:06:47 +02:00
2017-04-13 10:14:42 +02:00
2016-09-14 13:18:07 +02:00
2016-08-24 17:43:29 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-11 14:06:47 +02:00
2016-09-14 13:18:07 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-27 15:05:44 -06:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00