blob: c0cfa3b3398de4c18e5de0587f82adc7b9d4ce6a [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 Glassddba5202025-02-09 09:07:14 -070013 cons = ubman
Simon Glasse14f1a22018-11-15 18:44:09 -070014 response = cons.run_command('sb handoff')
15 assert ('SPL handoff magic %x' % TEST_HANDOFF_MAGIC) in response