]> Git Repo - J-u-boot.git/blob - test/py/tests/test_ofplatdata.py
Merge tag 'u-boot-imx-master-20250127' of https://gitlab.denx.de/u-boot/custodians...
[J-u-boot.git] / test / py / tests / test_ofplatdata.py
1 # SPDX-License-Identifier: GPL-2.0+
2 # Copyright (c) 2016 Google, Inc
3
4 import pytest
5 import u_boot_utils as util
6
7 @pytest.mark.boardspec('sandbox_spl')
8 @pytest.mark.buildconfigspec('spl_of_platdata')
9 def test_spl_devicetree(u_boot_console):
10     """Test content of spl device-tree"""
11     cons = u_boot_console
12     dtb = cons.config.build_dir + '/spl/u-boot-spl.dtb'
13     fdtgrep = cons.config.build_dir + '/tools/fdtgrep'
14     output = util.run_and_log(cons, [fdtgrep, '-l', dtb])
15
16     assert "bootph-all" not in output
17     assert "bootph-some-ram" not in output
18     assert "bootph-pre-ram" not in output
19     assert "bootph-pre-sram" not in output
20
21     assert "spl-test5" not in output
22     assert "spl-test6" not in output
23     assert "spl-test7" in output
This page took 0.027744 seconds and 4 git commands to generate.