Simon Glass | e14f1a2 | 2018-11-15 18:44:09 -0700 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
| 2 | # Copyright (c) 2016 Google, Inc |
| 3 | |
| 4 | import pytest |
| 5 | |
| 6 | # Magic number to check that SPL handoff is working |
| 7 | TEST_HANDOFF_MAGIC = 0x14f93c7b |
| 8 | |
Simon Glass | dd8e634 | 2019-12-27 07:46:30 -0700 | [diff] [blame] | 9 | @pytest.mark.boardspec('sandbox_spl') |
Simon Glass | e14f1a2 | 2018-11-15 18:44:09 -0700 | [diff] [blame] | 10 | @pytest.mark.buildconfigspec('spl') |
Simon Glass | ddba520 | 2025-02-09 09:07:14 -0700 | [diff] [blame] | 11 | def test_handoff(ubman): |
Simon Glass | e14f1a2 | 2018-11-15 18:44:09 -0700 | [diff] [blame] | 12 | """Test that of-platdata can be generated and used in sandbox""" |
Simon Glass | 3270111 | 2025-02-09 09:07:17 -0700 | [diff] [blame] | 13 | response = ubman.run_command('sb handoff') |
Simon Glass | e14f1a2 | 2018-11-15 18:44:09 -0700 | [diff] [blame] | 14 | assert ('SPL handoff magic %x' % TEST_HANDOFF_MAGIC) in response |