blob: becd7d75cf7c68bb914e90008f3064968e49c203 [file] [log] [blame]
Simon Glasse14f1a22018-11-15 18:44:09 -07001# SPDX-License-Identifier: GPL-2.0+
2# Copyright (c) 2016 Google, Inc
3
4import pytest
5
6# Magic number to check that SPL handoff is working
7TEST_HANDOFF_MAGIC = 0x14f93c7b
8
Simon Glassdd8e6342019-12-27 07:46:30 -07009@pytest.mark.boardspec('sandbox_spl')
Simon Glasse14f1a22018-11-15 18:44:09 -070010@pytest.mark.buildconfigspec('spl')
Simon Glassddba5202025-02-09 09:07:14 -070011def test_handoff(ubman):
Simon Glasse14f1a22018-11-15 18:44:09 -070012 """Test that of-platdata can be generated and used in sandbox"""
Simon Glass32701112025-02-09 09:07:17 -070013 response = ubman.run_command('sb handoff')
Simon Glasse14f1a22018-11-15 18:44:09 -070014 assert ('SPL handoff magic %x' % TEST_HANDOFF_MAGIC) in response