Lines Matching +full:image +full:- +full:1

1 # SPDX-License-Identifier: Apache-2.0
6 # Script mode initialization (re-run)
24 # - run_suite(<test-1> [<test-2> ...])
47 # - assert_equal(<variable> <expected-value>)
49 # - assert_equal(<variable>
50 # IMAGE <image-1> <expected-value-for-image-1>
51 # [IMAGE <image-2> <expected-value-for-image-2> ...]
61 if(expected_value STREQUAL "IMAGE")
62 set(i 1)
64 if(NOT ARGV${i} STREQUAL "IMAGE")
65 message(FATAL_ERROR "Invalid argument ${i}: '${ARGV${i}}' (expected 'IMAGE')")
67 math(EXPR i "${i} + 1")
69 math(EXPR i "${i} + 1")
71 math(EXPR i "${i} + 1")
79 message(FATAL_ERROR "No value provided for image: '${IMAGE_NAME}'")
91 math(EXPR ASSERT_FAIL_COUNT "$CACHE{ASSERT_FAIL_COUNT} + 1")
140 IMAGE no_sysbuild "cmake cache"
141 # Provided -DTESTCASE_VARIABLE=<...> serves as the
142 # LOCAL sysbuild-defined value for this primary image.
143 IMAGE zephyr_get "sysbuild.main"
144 # Provided -Dzephyr_get_2nd_TESTCASE_VARIABLE=<...> serves as
145 # the LOCAL sysbuild-defined value for this secondary image.
146 IMAGE zephyr_get_2nd "sysbuild.2nd"
147 # Provided -DTESTCASE_VARIABLE=<...> serves as the
148 # GLOBAL sysbuild-defined value for this tertiary image;
150 IMAGE zephyr_get_3rd "sysbuild.main"
158 IMAGE no_sysbuild "environment"
159 IMAGE zephyr_get "sysbuild.main"
160 IMAGE zephyr_get_2nd "sysbuild.2nd"
161 # This image has no LOCAL sysbuild-defined value.
162 IMAGE zephyr_get_3rd "environment"
165 IMAGE no_sysbuild "environment"
166 IMAGE zephyr_get ""
167 IMAGE zephyr_get_2nd ""
168 IMAGE zephyr_get_3rd "environment"
178 IMAGE no_sysbuild "local"
179 IMAGE zephyr_get "sysbuild.main"
180 IMAGE zephyr_get_2nd "sysbuild.2nd"
181 IMAGE zephyr_get_3rd "sysbuild.main"
229 IMAGE no_sysbuild ""
230 IMAGE zephyr_get "sysbuild.main"
231 IMAGE zephyr_get_2nd "sysbuild.2nd"
232 # This image has no LOCAL sysbuild-defined value.
233 IMAGE zephyr_get_3rd ""
238 # Add the GLOBAL sysbuild-defined value.
241 IMAGE no_sysbuild ""
242 # This image's LOCAL and GLOBAL are identical; duplicates are removed.
243 IMAGE zephyr_get "sysbuild.main"
244 IMAGE zephyr_get_2nd "sysbuild.2nd;sysbuild.main"
245 IMAGE zephyr_get_3rd "sysbuild.main"
255 IMAGE no_sysbuild "cmake cache;environment;local"
256 IMAGE zephyr_get "sysbuild.main;cmake cache;environment;local"
257 IMAGE zephyr_get_2nd "sysbuild.2nd;sysbuild.main;cmake cache;environment;local"
258 IMAGE zephyr_get_3rd "sysbuild.main;cmake cache;environment;local"
264 IMAGE no_sysbuild "cmake cache;environment"
265 IMAGE zephyr_get "sysbuild.main;cmake cache;environment"
266 IMAGE zephyr_get_2nd "sysbuild.2nd;cmake cache;environment"
267 IMAGE zephyr_get_3rd "cmake cache;environment"
276 IMAGE no_sysbuild "environment"
277 IMAGE zephyr_get "sysbuild.main;environment"
278 IMAGE zephyr_get_2nd "sysbuild.2nd;sysbuild.main;environment"
279 IMAGE zephyr_get_3rd "sysbuild.main;environment"
293 set(ENV{VARIABLE_1} "environment 1")
306 set(VARIABLE_1 "cmake cache 1" CACHE INTERNAL "")
308 assert_equal(RESULT "cmake cache 1")
318 assert_equal(RESULT "cmake cache 1;cmake cache 2;environment 1;environment 3;local 2;local 3")
326 assert_equal(RESULT "cmake cache 2;cmake cache 1;environment 3;environment 1;local 3;local 2")
330 …_equal(RESULT "cmake cache r;cmake cache 2;cmake cache 1;environment r;environment 3;environment 1
334 …assert_equal(RESULT "cmake cache 2;cmake cache 1;cmake cache r;environment 3;environment 1;environ…
345 assert_equal(RESULT "environment 1")
346 assert_equal(CACHE{VARIABLE_1} "environment 1")
373 IMAGE no_sysbuild "cmake cache s"
374 IMAGE zephyr_get "sysbuild.main"
375 IMAGE zephyr_get_2nd "sysbuild.2nd"
376 IMAGE zephyr_get_3rd "sysbuild.main"
380 IMAGE no_sysbuild "cmake cache s"
381 IMAGE zephyr_get "sysbuild.main"
382 IMAGE zephyr_get_2nd "sysbuild.2nd"
383 IMAGE zephyr_get_3rd "cmake cache s"
389IMAGE no_sysbuild "cmake cache s;cmake cache 2;environment s;environment 1;environment 3;local …
390IMAGE zephyr_get "sysbuild.main;cmake cache s;cmake cache 2;environment s;environment 1;enviro…
391IMAGE zephyr_get_2nd "sysbuild.2nd;sysbuild.main;cmake cache s;cmake cache 2;environment s;environ…
392IMAGE zephyr_get_3rd "sysbuild.main;cmake cache s;cmake cache 2;environment s;environment 1;enviro…
397IMAGE no_sysbuild "cmake cache s;cmake cache 2;environment s;environment 1;environment 3;local …
398IMAGE zephyr_get "sysbuild.main;cmake cache s;cmake cache 2;environment s;environment 1;enviro…
399IMAGE zephyr_get_2nd "sysbuild.2nd;cmake cache s;cmake cache 2;environment s;environment 1;environ…
400IMAGE zephyr_get_3rd "cmake cache s;cmake cache 2;environment s;environment 1;environment 3;local …
405IMAGE no_sysbuild "cmake cache 2;cmake cache s;environment 3;environment 1;environment s;local …
406IMAGE zephyr_get "sysbuild.main;cmake cache 2;cmake cache s;environment 3;environment 1;enviro…
407IMAGE zephyr_get_2nd "sysbuild.2nd;sysbuild.main;cmake cache 2;cmake cache s;environment 3;environ…
408IMAGE zephyr_get_3rd "sysbuild.main;cmake cache 2;cmake cache s;environment 3;environment 1;enviro…
413IMAGE no_sysbuild "cmake cache 2;cmake cache s;environment 3;environment 1;environment s;local …
414IMAGE zephyr_get "sysbuild.main;cmake cache 2;cmake cache s;environment 3;environment 1;enviro…
415IMAGE zephyr_get_2nd "sysbuild.2nd;cmake cache 2;cmake cache s;environment 3;environment 1;environ…
416IMAGE zephyr_get_3rd "cmake cache 2;cmake cache s;environment 3;environment 1;environment s;local …
429 set(ENV{VARIABLE_1} "environment 1")
431 set(VARIABLE_1 "cmake cache 1" CACHE INTERNAL "")
433 set(VARIABLE_1 "local 1")
438 assert_equal(VARIABLE_1 "local 1;environment 1;cmake cache 1")
441 assert_equal(RESULT "local 1;local 2;environment 1;environment 2;cmake cache 1;cmake cache 2")
452 …assert_equal(RESULT "local 1;local 2;F;E;environment 1;environment 2;A;B;C;D;cmake cache 1;cmake c…
461 IMAGE no_sysbuild ""
462 IMAGE zephyr_get "sysbuild.main"
463 IMAGE zephyr_get_2nd "sysbuild.main;sysbuild.2nd"
464 IMAGE zephyr_get_3rd "sysbuild.main"
474 IMAGE no_sysbuild "local s;environment s;cmake cache s"
475 IMAGE zephyr_get "local s;environment s;cmake cache s;sysbuild.main"
476 IMAGE zephyr_get_2nd "local s;environment s;cmake cache s;sysbuild.main;sysbuild.2nd"
477 IMAGE zephyr_get_3rd "local s;environment s;cmake cache s;sysbuild.main"
483 IMAGE no_sysbuild "environment s;cmake cache s"
484 IMAGE zephyr_get "environment s;cmake cache s;sysbuild.main"
485 IMAGE zephyr_get_2nd "environment s;cmake cache s;sysbuild.2nd"
486 IMAGE zephyr_get_3rd "environment s;cmake cache s"
495IMAGE no_sysbuild "local s;local 1;local 2;environment s;environment 1;environment 2;cmake cach…
496IMAGE zephyr_get "local s;local 1;local 2;environment s;environment 1;environment 2;cmake cach…
497IMAGE zephyr_get_2nd "local s;local 1;local 2;environment s;environment 1;environment 2;cmake cach…
498IMAGE zephyr_get_3rd "local s;local 1;local 2;environment s;environment 1;environment 2;cmake cach…
509 zephyr_set(VARIABLE_1 "snippet 1" SCOPE snippets)
520 set(ENV{VARIABLE_1} "environment 1")
527 assert_equal(VARIABLE_1 "snippet 1")
530 assert_equal(VARIABLE_1 "snippet 1;environment 1")
549 …assert_equal(RESULT "local 2;local 3;environment 1;environment 3;snippet 1;snippet 2;snippet 3;cma…
551 # Transitively, snippets have lower precedence than sysbuild-defined values.
554 IMAGE no_sysbuild "snippet s"
555 IMAGE zephyr_get "sysbuild.main"
556 IMAGE zephyr_get_2nd "sysbuild.2nd"
557 IMAGE zephyr_get_3rd "sysbuild.main"
561 IMAGE no_sysbuild "snippet s"
562 IMAGE zephyr_get "sysbuild.main"
563 IMAGE zephyr_get_2nd "sysbuild.2nd"
564 IMAGE zephyr_get_3rd "snippet s"
569 IMAGE no_sysbuild "snippet s"
570 IMAGE zephyr_get "sysbuild.main;snippet s"
571 IMAGE zephyr_get_2nd "sysbuild.2nd;sysbuild.main;snippet s"
572 IMAGE zephyr_get_3rd "sysbuild.main;snippet s"
578 assert_equal(VARIABLE_1 "environment 1")
579 assert_equal(CACHE{VARIABLE_1} "environment 1")
581 zephyr_set(VARIABLE_1 "snippet 1" SCOPE snippets)
583 assert_equal(VARIABLE_1 "environment 1")
587 assert_equal(VARIABLE_1 "snippet 1")
600 # Re-run this testsuite in plain script mode
601 execute_process(COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_LIST_FILE})