diff options
author | Rebecca Mckeever <remckee0@gmail.com> | 2022-07-14 06:17:17 +0300 |
---|---|---|
committer | Mike Rapoport <rppt@linux.ibm.com> | 2022-07-20 10:46:33 +0300 |
commit | 06c8580aa23ddc9b1c37b9c7c5e2cc504e460207 (patch) | |
tree | fa68978a36d3dea19ba4e611d8759f4dc615e7cd /tools/testing/memblock/main.c | |
parent | fe833b4edc594a4a6f1ce2d68975733e17b8f8ed (diff) | |
download | linux-06c8580aa23ddc9b1c37b9c7c5e2cc504e460207.tar.xz |
memblock tests: change build options to run-time options
Change verbose and movable node build options to run-time options.
Movable node usage:
$ ./main -m
Or:
$ ./main --movable-node
Verbose usage:
$ ./main -v
Or:
$ ./main --verbose
Signed-off-by: Rebecca Mckeever <remckee0@gmail.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Link: https://lore.kernel.org/r/20220714031717.12258-1-remckee0@gmail.com
Diffstat (limited to 'tools/testing/memblock/main.c')
-rw-r--r-- | tools/testing/memblock/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/memblock/main.c b/tools/testing/memblock/main.c index fb183c9e76d1..4ca1024342b1 100644 --- a/tools/testing/memblock/main.c +++ b/tools/testing/memblock/main.c @@ -3,9 +3,11 @@ #include "tests/alloc_api.h" #include "tests/alloc_helpers_api.h" #include "tests/alloc_nid_api.h" +#include "tests/common.h" int main(int argc, char **argv) { + parse_args(argc, argv); memblock_basic_checks(); memblock_alloc_checks(); memblock_alloc_helpers_checks(); |