Lines Matching +full:key +full:- +full:string

1 # SPDX-License-Identifier: Apache-2.0
42 set(expected "Simple string")
43 yaml_get(actual NAME yaml-test KEY cmake test key-string)
46 COMMENT "yaml key value does not match expectation."
52 yaml_length(actual NAME yaml-test KEY cmake test key-list-string)
58 yaml_get(actual NAME yaml-test KEY cmake test key-list-string)
69 yaml_get(actual NAME yaml-test KEY cmake test key-int)
72 COMMENT "yaml key value does not match expectation."
78 yaml_length(actual NAME yaml-test KEY cmake test key-list-int)
84 yaml_get(actual NAME yaml-test KEY cmake test key-list-int)
95 yaml_get(actual NAME yaml-test KEY cmake test key-int)
98 COMMENT "yaml key value does not match expectation."
103 set(expected cmake-missing-NOTFOUND)
104 yaml_get(actual NAME yaml-test KEY cmake missing test key)
107 COMMENT "Expected -NOTFOUND, but something was found."
112 set(expected cmake-missing-NOTFOUND)
113 yaml_length(actual NAME yaml-test KEY cmake missing test array list)
116 COMMENT "Expected -NOTFOUND, but something was found."
121 set(expected -1)
122 yaml_length(actual NAME yaml-test KEY cmake test key-int)
125 COMMENT "Not array expected, so length should be -1."
130 yaml_save(NAME yaml-test FILE ${CMAKE_BINARY_DIR}/${CMAKE_CURRENT_FUNCTION}_test_save.yaml)
132 # Read-back the yaml and verify the value.
136 set(expected "Simple string")
137 yaml_get(actual NAME ${CMAKE_CURRENT_FUNCTION}_readback KEY cmake test key-string)
140 COMMENT "yaml key value does not match expectation."
144 yaml_get(actual NAME ${CMAKE_CURRENT_FUNCTION}_readback KEY cmake test key-int)
147 COMMENT "yaml key value does not match expectation."
153 NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create
156 set(new_value "A new string")
157 yaml_set(actual NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create
158 KEY cmake test set key-string VALUE ${new_value}
161 yaml_save(NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create)
163 # Read-back the yaml and verify the value.
168 yaml_get(readback NAME ${CMAKE_CURRENT_FUNCTION}_readback KEY cmake test set key-string)
177 NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create
181 yaml_set(actual NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create
182 KEY cmake test set key-list-string LIST ${new_value}
185 yaml_save(NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create)
187 # Read-back the yaml and verify the value.
192 yaml_length(readback NAME ${CMAKE_CURRENT_FUNCTION}_readback KEY cmake test set key-list-string)
198 yaml_get(readback NAME ${CMAKE_CURRENT_FUNCTION}_readback KEY cmake test set key-list-string)
209 NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create
213 yaml_set(actual NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create
214 KEY cmake test set key-int VALUE ${new_value}
217 yaml_save(NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create)
219 # Read-back the yaml and verify the value.
224 yaml_get(readback NAME ${CMAKE_CURRENT_FUNCTION}_readback KEY cmake test set key-int)
233 NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create
237 yaml_set(actual NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create
238 KEY cmake test set key-list-int LIST ${new_value}
241 yaml_save(NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create)
243 # Read-back the yaml and verify the value.
248 yaml_length(readback NAME ${CMAKE_CURRENT_FUNCTION}_readback KEY cmake test set key-list-int)
254 yaml_get(readback NAME ${CMAKE_CURRENT_FUNCTION}_readback KEY cmake test set key-list-int)
265 NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create
269 yaml_set(actual NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create
270 KEY cmake test set key-int VALUE ${new_value}
273 yaml_save(NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create)
275 # Read-back the yaml and verify the value.
280 yaml_get(readback NAME ${CMAKE_CURRENT_FUNCTION}_readback KEY cmake test set key-int)
293 NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create
297 yaml_set(NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create
298 KEY cmake test set key-list-int LIST ${new_value}
301 yaml_save(NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create)
303 # Read-back the yaml and verify the value.
308 yaml_length(readback NAME ${CMAKE_CURRENT_FUNCTION}_readback KEY cmake test set key-list-int)
314 yaml_get(readback NAME ${CMAKE_CURRENT_FUNCTION}_readback KEY cmake test set key-list-int)
325 NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create
329 yaml_set(NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create
330 KEY cmake test set key-int VALUE ${new_value}
333 yaml_save(NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create)
335 # Read-back the yaml and verify the value.
340 yaml_get(readback NAME ${CMAKE_CURRENT_FUNCTION}_readback KEY cmake test set key-int)
347 yaml_remove(NAME ${CMAKE_CURRENT_FUNCTION}_readback KEY cmake test set key-int)
350 # Read-back again and verify the value has been removed.
355 yaml_get(readback NAME ${CMAKE_CURRENT_FUNCTION}_readback_removed KEY cmake test set key-int)
357 set(expected cmake-test-set-key-int-NOTFOUND)
360 COMMENT "Expected -NOTFOUND, but something was found."
365 yaml_create(NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create)
368 yaml_set(actual NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create
369 KEY cmake test set key-int VALUE ${new_value}
373 yaml_save(NAME ${CMAKE_CURRENT_FUNCTION}_yaml-create)
382 yaml_load(FILE ${CMAKE_CURRENT_LIST_DIR}/test.yaml NAME yaml-test)