blob: dd8a09f03242e2c3b026329792b3a7e4a04c8b21 [file] [log] [blame]
Simon Glassc405fc42016-07-04 11:58:41 -06001# SPDX-License-Identifier: GPL-2.0+
Tom Rini10e47792018-05-06 17:58:06 -04002# Copyright (c) 2016 Google, Inc
Simon Glassc405fc42016-07-04 11:58:41 -06003
4import pytest
5
Simon Glass17b11072017-06-18 22:09:05 -06006OF_PLATDATA_OUTPUT = ''
Simon Glassc405fc42016-07-04 11:58:41 -06007
Simon Glasse0b02742016-07-16 18:36:44 -06008@pytest.mark.buildconfigspec('spl_of_platdata')
Simon Glassc405fc42016-07-04 11:58:41 -06009def test_ofplatdata(u_boot_console):
10 """Test that of-platdata can be generated and used in sandbox"""
11 cons = u_boot_console
12 output = cons.get_spawn_output().replace('\r', '')
13 assert OF_PLATDATA_OUTPUT in output