Line | Count | Source |
1 | #include <command.h> | |
2 | #include <env.h> | |
3 | #include <env_attr.h> | |
4 | #include <test/env.h> | |
5 | #include <test/ut.h> | |
6 | ||
7 | static int env_test_fdt_import(struct unit_test_state *uts) | |
8 | 0 | { |
9 | 0 | const char *val; |
10 | ||
11 | 0 | val = env_get("from_fdt"); |
12 | 0 | ut_assertnonnull(val); |
13 | 0 | ut_asserteq_str("yes", val); |
14 | ||
15 | 0 | val = env_get("fdt_env_path"); |
16 | 0 | ut_assertnull(val); |
17 | ||
18 | 0 | return 0; |
19 | 0 | } |
20 | ENV_TEST(env_test_fdt_import, 0); |