Rasmus Villemoes | 30d4d2b | 2021-04-21 11:06:55 +0200 | [diff] [blame] | 1 | #include <command.h> |
2 | #include <env_attr.h> | ||||
3 | #include <test/env.h> | ||||
4 | #include <test/ut.h> | ||||
5 | |||||
6 | static int env_test_fdt_import(struct unit_test_state *uts) | ||||
7 | { | ||||
8 | const char *val; | ||||
9 | |||||
10 | val = env_get("from_fdt"); | ||||
11 | ut_assertnonnull(val); | ||||
12 | ut_asserteq_str("yes", val); | ||||
13 | |||||
14 | val = env_get("fdt_env_path"); | ||||
15 | ut_assertnull(val); | ||||
16 | |||||
17 | return 0; | ||||
18 | } | ||||
19 | ENV_TEST(env_test_fdt_import, 0); |