summaryrefslogtreecommitdiff
path: root/test/env/fdt.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-05-06 11:00:07 -0400
committerTom Rini <trini@konsulko.com>2021-05-06 11:00:07 -0400
commit1b8ad819cead7020d35f6251ef0cf3f393c61e51 (patch)
tree6331512066c3a921df043a1b6ba8b7c679a98230 /test/env/fdt.c
parent8ddaf943589756442bba21e5be645cd47526d82b (diff)
parentf0b21ebd417cfe75f266b4dc16318bb3581783b9 (diff)
Merge branch '2021-05-06-misc-updates'
- Allow for boards to update bootargs before booting the OS (helpful in some forms of secure boot). - Enhance GPT write support. - gpio-sysinfo updates - Allow env to be appended from dtb
Diffstat (limited to 'test/env/fdt.c')
-rw-r--r--test/env/fdt.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/env/fdt.c b/test/env/fdt.c
new file mode 100644
index 00000000000..30bfa88c355
--- /dev/null
+++ b/test/env/fdt.c
@@ -0,0 +1,20 @@
+#include <common.h>
+#include <command.h>
+#include <env_attr.h>
+#include <test/env.h>
+#include <test/ut.h>
+
+static int env_test_fdt_import(struct unit_test_state *uts)
+{
+ const char *val;
+
+ val = env_get("from_fdt");
+ ut_assertnonnull(val);
+ ut_asserteq_str("yes", val);
+
+ val = env_get("fdt_env_path");
+ ut_assertnull(val);
+
+ return 0;
+}
+ENV_TEST(env_test_fdt_import, 0);