Lines Matching full:cache
30 set(ASSERT_FAIL_COUNT 0 CACHE INTERNAL "")
36 if($CACHE{ASSERT_FAIL_COUNT} GREATER 0)
42 message(${mode} "$CACHE{ASSERT_FAIL_COUNT} assertion(s) failed")
91 math(EXPR ASSERT_FAIL_COUNT "$CACHE{ASSERT_FAIL_COUNT} + 1")
92 set(ASSERT_FAIL_COUNT ${ASSERT_FAIL_COUNT} CACHE INTERNAL "")
100 set(VARIABLE "cmake cache" CACHE INTERNAL "")
103 # CMake cache value has the highest precedence.
105 assert_equal(VARIABLE "cmake cache")
108 unset(VARIABLE CACHE)
115 assert_equal(CACHE{VARIABLE} "environment")
118 unset(VARIABLE CACHE)
124 assert_equal(CACHE{VARIABLE} "")
135 set(TESTCASE_VARIABLE "cmake cache" CACHE INTERNAL "")
140 IMAGE no_sysbuild "cmake cache"
153 unset(TESTCASE_VARIABLE CACHE)
164 assert_equal(CACHE{TESTCASE_VARIABLE}
171 unset(TESTCASE_VARIABLE CACHE)
189 set(VARIABLE "cmake cache" CACHE INTERNAL "")
193 assert_equal(VARIABLE "cmake cache;environment;local")
196 unset(VARIABLE CACHE)
201 assert_equal(CACHE{VARIABLE} "")
204 set(VARIABLE "cmake cache" CACHE INTERNAL "")
208 assert_equal(VARIABLE "cmake cache;local")
210 unset(VARIABLE CACHE)
225 unset(TESTCASE_VARIABLE CACHE)
250 set(TESTCASE_VARIABLE "cmake cache" CACHE INTERNAL "")
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"
271 unset(TESTCASE_VARIABLE CACHE)
281 assert_equal(CACHE{TESTCASE_VARIABLE} "")
289 unset(${var} CACHE)
295 set(VARIABLE_2 "cmake cache 2" CACHE INTERNAL "")
301 assert_equal(RESULT "cmake cache 2")
303 assert_equal(RESULT "cmake cache 2")
306 set(VARIABLE_1 "cmake cache 1" CACHE INTERNAL "")
308 assert_equal(RESULT "cmake cache 1")
310 assert_equal(RESULT "cmake cache 2")
313 unset(RESULT CACHE)
318 assert_equal(RESULT "cmake cache 1;cmake cache 2;environment 1;environment 3;local 2;local 3")
321 set(RESULT "cmake cache r" CACHE INTERNAL "")
326 assert_equal(RESULT "cmake cache 2;cmake cache 1;environment 3;environment 1;local 3;local 2")
330 …assert_equal(RESULT "cmake cache r;cmake cache 2;cmake cache 1;environment r;environment 3;environ…
334 …assert_equal(RESULT "cmake cache 2;cmake cache 1;cmake cache r;environment 3;environment 1;environ…
337 unset(RESULT CACHE)
341 unset(VARIABLE_1 CACHE)
342 unset(VARIABLE_2 CACHE)
346 assert_equal(CACHE{VARIABLE_1} "environment 1")
347 assert_equal(CACHE{VARIABLE_2} "")
348 assert_equal(CACHE{VARIABLE_3} "")
349 assert_equal(CACHE{RESULT} "")
351 unset(VARIABLE_1 CACHE)
356 assert_equal(CACHE{VARIABLE_1} "")
357 assert_equal(CACHE{VARIABLE_2} "")
358 assert_equal(CACHE{VARIABLE_3} "environment 3")
359 assert_equal(CACHE{RESULT} "")
361 set(VARIABLE_2 "cmake cache 2" CACHE INTERNAL "")
364 unset(VARIABLE_3 CACHE)
368 set(TESTCASE_VARIABLE "cmake cache s" CACHE INTERNAL "")
373 IMAGE no_sysbuild "cmake cache s"
380 IMAGE no_sysbuild "cmake cache s"
383 IMAGE zephyr_get_3rd "cmake cache s"
389 …IMAGE no_sysbuild "cmake cache s;cmake cache 2;environment s;environment 1;environment 3;local …
390 …IMAGE zephyr_get "sysbuild.main;cmake cache s;cmake cache 2;environment s;environment 1;enviro…
391 …IMAGE zephyr_get_2nd "sysbuild.2nd;sysbuild.main;cmake cache s;cmake cache 2;environment s;environ…
392 …IMAGE zephyr_get_3rd "sysbuild.main;cmake cache s;cmake cache 2;environment s;environment 1;enviro…
397 …IMAGE no_sysbuild "cmake cache s;cmake cache 2;environment s;environment 1;environment 3;local …
398 …IMAGE zephyr_get "sysbuild.main;cmake cache s;cmake cache 2;environment s;environment 1;enviro…
399 …IMAGE zephyr_get_2nd "sysbuild.2nd;cmake cache s;cmake cache 2;environment s;environment 1;environ…
400 …IMAGE zephyr_get_3rd "cmake cache s;cmake cache 2;environment s;environment 1;environment 3;local …
405 …IMAGE no_sysbuild "cmake cache 2;cmake cache s;environment 3;environment 1;environment s;local …
406 …IMAGE zephyr_get "sysbuild.main;cmake cache 2;cmake cache s;environment 3;environment 1;enviro…
407 …IMAGE zephyr_get_2nd "sysbuild.2nd;sysbuild.main;cmake cache 2;cmake cache s;environment 3;environ…
408 …IMAGE zephyr_get_3rd "sysbuild.main;cmake cache 2;cmake cache s;environment 3;environment 1;enviro…
413 …IMAGE no_sysbuild "cmake cache 2;cmake cache s;environment 3;environment 1;environment s;local …
414 …IMAGE zephyr_get "sysbuild.main;cmake cache 2;cmake cache s;environment 3;environment 1;enviro…
415 …IMAGE zephyr_get_2nd "sysbuild.2nd;cmake cache 2;cmake cache s;environment 3;environment 1;environ…
416 …IMAGE zephyr_get_3rd "cmake cache 2;cmake cache s;environment 3;environment 1;environment s;local …
425 unset(${var} CACHE)
431 set(VARIABLE_1 "cmake cache 1" CACHE INTERNAL "")
432 set(VARIABLE_2 "cmake cache 2" CACHE INTERNAL "")
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 …equal(RESULT "local 1;local 2;F;E;environment 1;environment 2;A;B;C;D;cmake cache 1;cmake cache 2")
456 unset(TESTCASE_VARIABLE CACHE)
469 set(TESTCASE_VARIABLE "cmake cache s" CACHE INTERNAL "")
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"
495 …ocal 1;local 2;environment s;environment 1;environment 2;cmake cache s;cmake cache 1;cmake cache 2"
496 …l 1;local 2;environment s;environment 1;environment 2;cmake cache s;cmake cache 1;cmake cache 2;sy…
497 …l 1;local 2;environment s;environment 1;environment 2;cmake cache s;cmake cache 1;cmake cache 2;sy…
498 …l 1;local 2;environment s;environment 1;environment 2;cmake cache s;cmake cache 1;cmake cache 2;sy…
516 unset(${var} CACHE)
522 set(VARIABLE_2 "cmake cache 2" CACHE INTERNAL "")
523 set(VARIABLE_3 "cmake cache 3" CACHE INTERNAL "")
525 # Snippets have higher precedence than environment, but lower than CMake cache.
533 assert_equal(VARIABLE_2 "cmake cache 2")
536 assert_equal(VARIABLE_2 "cmake cache 2;snippet 2;local 2")
539 assert_equal(VARIABLE_3 "cmake cache 3")
542 assert_equal(VARIABLE_3 "cmake cache 3;snippet 3;environment 3;local 3")
549 …l 2;local 3;environment 1;environment 3;snippet 1;snippet 2;snippet 3;cmake cache 2;cmake cache 3")
579 assert_equal(CACHE{VARIABLE_1} "environment 1")
585 unset(VARIABLE_1 CACHE)