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 <joe.hershberger@ni.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Tom Rini
parent
b6227d3993
commit
421f86f329
16
include/test/env.h
Normal file
16
include/test/env.h
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* (C) Copyright 2015
|
||||
* Joe Hershberger, National Instruments, joe.hershberger@ni.com
|
||||
*
|
||||
* 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__ */
|
||||
@@ -9,6 +9,7 @@
|
||||
#define __TEST_SUITES_H__
|
||||
|
||||
int do_ut_dm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
|
||||
int do_ut_env(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
|
||||
int do_ut_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
|
||||
|
||||
#endif /* __TEST_SUITES_H__ */
|
||||
|
||||
Reference in New Issue
Block a user