1 # SPDX-License-Identifier: GPL-2.0+
2 # Copyright (c) 2016 Google, Inc
6 OF_PLATDATA_OUTPUT = '''
13 longbytearray 09 0a 0b 0c 0d 0e 0f 10 11
15 stringarray "multi-word" "message" ""
22 longbytearray 09 00 00 00 00 00 00 00 00
24 stringarray "another" "multi-word" "message"
31 longbytearray 00 00 00 00 00 00 00 00 00
33 stringarray "one" "" ""
36 @pytest.mark.buildconfigspec('spl_of_platdata')
37 def test_ofplatdata(u_boot_console):
38 """Test that of-platdata can be generated and used in sandbox"""
40 cons.restart_uboot_with_flags(['--show_of_platdata'])
41 output = cons.get_spawn_output().replace('\r', '')
42 assert OF_PLATDATA_OUTPUT in output