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/tests/common.h | |
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/tests/common.h')
-rw-r--r-- | tools/testing/memblock/tests/common.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tools/testing/memblock/tests/common.h b/tools/testing/memblock/tests/common.h index 46de86a755f3..3e7f23d341d7 100644 --- a/tools/testing/memblock/tests/common.h +++ b/tools/testing/memblock/tests/common.h @@ -70,22 +70,14 @@ void reset_memblock_attributes(void); void setup_memblock(void); void dummy_physical_memory_init(void); void dummy_physical_memory_cleanup(void); +void parse_args(int argc, char **argv); -#ifdef VERBOSE void test_fail(void); void test_pass(void); void test_print(const char *fmt, ...); void prefix_reset(void); void prefix_push(const char *prefix); void prefix_pop(void); -#else -static inline void test_fail(void) {} -static inline void test_pass(void) {} -static inline void test_print(const char *fmt, ...) {} -static inline void prefix_reset(void) {} -static inline void prefix_push(const char *prefix) {} -static inline void prefix_pop(void) {} -#endif /* VERBOSE */ static inline void test_pass_pop(void) { |