Simon Glass | c405fc4 | 2016-07-04 11:58:41 -0600 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 2 | # Copyright (c) 2016 Google, Inc |
Simon Glass | c405fc4 | 2016-07-04 11:58:41 -0600 | [diff] [blame] | 3 | |
| 4 | import pytest |
Simon Glass | db0e453 | 2025-02-09 09:07:16 -0700 | [diff] [blame] | 5 | import utils |
Simon Glass | c405fc4 | 2016-07-04 11:58:41 -0600 | [diff] [blame] | 6 | |
Simon Glass | 2a4b03f | 2021-03-07 17:34:41 -0700 | [diff] [blame] | 7 | @pytest.mark.boardspec('sandbox_spl') |
Patrick Delaunay | ae84ff1 | 2019-05-21 19:19:11 +0200 | [diff] [blame] | 8 | @pytest.mark.buildconfigspec('spl_of_platdata') |
Simon Glass | ddba520 | 2025-02-09 09:07:14 -0700 | [diff] [blame] | 9 | def test_spl_devicetree(ubman): |
Patrick Delaunay | ae84ff1 | 2019-05-21 19:19:11 +0200 | [diff] [blame] | 10 | """Test content of spl device-tree""" |
Simon Glass | 3270111 | 2025-02-09 09:07:17 -0700 | [diff] [blame] | 11 | dtb = ubman.config.build_dir + '/spl/u-boot-spl.dtb' |
| 12 | fdtgrep = ubman.config.build_dir + '/tools/fdtgrep' |
| 13 | output = utils.run_and_log(ubman, [fdtgrep, '-l', dtb]) |
Patrick Delaunay | ae84ff1 | 2019-05-21 19:19:11 +0200 | [diff] [blame] | 14 | |
Simon Glass | fc1aa35 | 2023-02-13 08:56:34 -0700 | [diff] [blame] | 15 | assert "bootph-all" not in output |
| 16 | assert "bootph-some-ram" not in output |
| 17 | assert "bootph-pre-ram" not in output |
| 18 | assert "bootph-pre-sram" not in output |
Patrick Delaunay | ae84ff1 | 2019-05-21 19:19:11 +0200 | [diff] [blame] | 19 | |
Patrick Delaunay | ae84ff1 | 2019-05-21 19:19:11 +0200 | [diff] [blame] | 20 | assert "spl-test5" not in output |
| 21 | assert "spl-test6" not in output |
| 22 | assert "spl-test7" in output |