diff options
| author | Joe Hershberger <[email protected]> | 2015-05-20 14:27:36 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2015-05-21 09:16:18 -0400 |
| commit | 421f86f3293c63fa2669972fb7bdc5ae78729e50 (patch) | |
| tree | 0a4cf02061c15201325179e5aa8842871ee0a284 /include/test/env.h | |
| parent | b6227d3993db8f1763a8bd377b189e7b77cfe885 (diff) | |
test: env: Add test framework for env
Add a new "env" subcommand to the ut command.
This will run unit tests on the env code. This should be targetable to
any device that supports the env features needed for the tests.
Signed-off-by: Joe Hershberger <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/test/env.h')
| -rw-r--r-- | include/test/env.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/test/env.h b/include/test/env.h new file mode 100644 index 00000000000..2b0cd682e46 --- /dev/null +++ b/include/test/env.h @@ -0,0 +1,16 @@ +/* + * (C) Copyright 2015 + * Joe Hershberger, National Instruments, [email protected] + * + * SPDX-License-Identifier: GPL-2.0 + */ + +#ifndef __TEST_ENV_H__ +#define __TEST_ENV_H__ + +#include <test/test.h> + +/* Declare a new environment test */ +#define ENV_TEST(_name, _flags) UNIT_TEST(_name, _flags, env_test) + +#endif /* __TEST_ENV_H__ */ |
