1 # Copyright (c) 2016 Google, Inc
3 # SPDX-License-Identifier: GPL-2.0+
7 OF_PLATDATA_OUTPUT = '''
14 longbytearray 09 0a 0b 0c 0d 0e 0f 10 11
16 stringarray "multi-word" "message" ""
23 longbytearray 09 00 00 00 00 00 00 00 00
25 stringarray "another" "multi-word" "message"
32 longbytearray 00 00 00 00 00 00 00 00 00
34 stringarray "one" "" ""
37 @pytest.mark.buildconfigspec('spl')
38 def test_ofplatdata(u_boot_console):
39 """Test that of-platdata can be generated and used in sandbox"""
41 output = cons.get_spawn_output().replace('\r', '')
42 assert OF_PLATDATA_OUTPUT in output