Simon Glass | b979d3d | 2016-07-04 11:58:41 -0600 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 2 | # Copyright (c) 2016 Google, Inc |
Simon Glass | b979d3d | 2016-07-04 11:58:41 -0600 | [diff] [blame] | 3 | |
| 4 | import pytest |
| 5 | |
Simon Glass | 2028cc5 | 2017-06-18 22:09:05 -0600 | [diff] [blame] | 6 | OF_PLATDATA_OUTPUT = '' |
Simon Glass | b979d3d | 2016-07-04 11:58:41 -0600 | [diff] [blame] | 7 | |
Simon Glass | f60d060 | 2016-07-16 18:36:44 -0600 | [diff] [blame] | 8 | @pytest.mark.buildconfigspec('spl_of_platdata') |
Simon Glass | b979d3d | 2016-07-04 11:58:41 -0600 | [diff] [blame] | 9 | def 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 |