blob: 038f03064a6fe3018b93830b31d4d6f33ca25174 [file] [log] [blame]
Simon Glassb0edea32018-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 Glass1785bf52019-12-27 07:46:30 -07009@pytest.mark.boardspec('sandbox_spl')
Simon Glassb0edea32018-11-15 18:44:09 -070010@pytest.mark.buildconfigspec('spl')
11def test_handoff(u_boot_console):
12 """Test that of-platdata can be generated and used in sandbox"""
13 cons = u_boot_console
14 response = cons.run_command('sb handoff')
15 assert ('SPL handoff magic %x' % TEST_HANDOFF_MAGIC) in response