OSDN Git Service

tests/plugins/mem: introduce "track" arg and make args not positional
authorMahmoud Mandour <ma.mandourr@gmail.com>
Fri, 30 Jul 2021 13:58:15 +0000 (15:58 +0200)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 2 Sep 2021 10:29:34 +0000 (11:29 +0100)
commit5ae589faad33708c1db0024bb818a2421bd8444c
treede4268d0f259d955bcb4d025dff02a9abda49fd8
parent0163ce31794b5debcf2527b8156a78dabc45b802
tests/plugins/mem: introduce "track" arg and make args not positional

This commit makes the plugin adhere to the new plugins arg-passing
scheme by expecting full-form boolean args instead of short-form
booleans. This necessitates that we introduce a new argument, here
"track", to accept "r", "w", or "rw".

Also, it makes arguments not positional and we only care about the last
value specified for a certain argument.

callback/inline args are now supplied separately as bool arguments so
that both can be enabled individually.

Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210730135817.17816-12-ma.mandourr@gmail.com>
tests/plugin/mem.c