Simon Glass | b979d3d | 2016-07-04 11:58:41 -0600 | [diff] [blame] | 1 | # Copyright (c) 2016 Google, Inc |
| 2 | # |
| 3 | # SPDX-License-Identifier: GPL-2.0+ |
| 4 | |
| 5 | import pytest |
| 6 | |
Simon Glass | 2028cc5 | 2017-06-18 22:09:05 -0600 | [diff] [blame^] | 7 | OF_PLATDATA_OUTPUT = '' |
Simon Glass | b979d3d | 2016-07-04 11:58:41 -0600 | [diff] [blame] | 8 | |
Simon Glass | f60d060 | 2016-07-16 18:36:44 -0600 | [diff] [blame] | 9 | @pytest.mark.buildconfigspec('spl_of_platdata') |
Simon Glass | b979d3d | 2016-07-04 11:58:41 -0600 | [diff] [blame] | 10 | def test_ofplatdata(u_boot_console): |
| 11 | """Test that of-platdata can be generated and used in sandbox""" |
| 12 | cons = u_boot_console |
| 13 | output = cons.get_spawn_output().replace('\r', '') |
| 14 | assert OF_PLATDATA_OUTPUT in output |