blob: c495ac7b307c0a430184f4e370c24bbb7ec28fd2 [file] [log] [blame]
Rasmus Villemoes30d4d2b2021-04-21 11:06:55 +02001#include <command.h>
2#include <env_attr.h>
3#include <test/env.h>
4#include <test/ut.h>
5
6static 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}
19ENV_TEST(env_test_fdt_import, 0);