blob: dd8a09f03242e2c3b026329792b3a7e4a04c8b21 [file] [log] [blame]
Simon Glassb979d3d2016-07-04 11:58:41 -06001# SPDX-License-Identifier: GPL-2.0+
Tom Rini83d290c2018-05-06 17:58:06 -04002# Copyright (c) 2016 Google, Inc
Simon Glassb979d3d2016-07-04 11:58:41 -06003
4import pytest
5
Simon Glass2028cc52017-06-18 22:09:05 -06006OF_PLATDATA_OUTPUT = ''
Simon Glassb979d3d2016-07-04 11:58:41 -06007
Simon Glassf60d0602016-07-16 18:36:44 -06008@pytest.mark.buildconfigspec('spl_of_platdata')
Simon Glassb979d3d2016-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