Lines Matching refs:var
26 uint8_t var[1]; in ZTEST() local
29 memset(var, 0xff, sizeof(var)); in ZTEST()
30 rc = settings_runtime_get("blinfo/mode", var, sizeof(var)); in ZTEST()
31 zassert_equal(rc, sizeof(var), "Expected data length mismatch"); in ZTEST()
32 zassert_equal(var[0], MCUBOOT_MODE_SWAP_USING_MOVE, "Expected data mismatch"); in ZTEST()
37 uint8_t var[1]; in ZTEST() local
40 memset(var, 0xff, sizeof(var)); in ZTEST()
41 rc = settings_runtime_get("blinfo/signature_type", var, sizeof(var)); in ZTEST()
42 zassert_equal(rc, sizeof(var), "Expected data length mismatch"); in ZTEST()
43 zassert_equal(var[0], MCUBOOT_SIGNATURE_TYPE_RSA, "Expected data mismatch"); in ZTEST()
48 uint8_t var[1]; in ZTEST() local
51 memset(var, 0xff, sizeof(var)); in ZTEST()
52 rc = settings_runtime_get("blinfo/recovery", var, sizeof(var)); in ZTEST()
53 zassert_equal(rc, sizeof(var), "Expected data length mismatch"); in ZTEST()
54 zassert_equal(var[0], MCUBOOT_RECOVERY_MODE_NONE, "Expected data mismatch"); in ZTEST()
59 uint8_t var[1]; in ZTEST() local
62 memset(var, 0xff, sizeof(var)); in ZTEST()
63 rc = settings_runtime_get("blinfo/running_slot", var, sizeof(var)); in ZTEST()
64 zassert_equal(rc, sizeof(var), "Expected data length mismatch"); in ZTEST()
65 zassert_equal(var[0], RUNNING_SLOT, "Expected data mismatch"); in ZTEST()
70 uint8_t var[8]; in ZTEST() local
72 struct image_version *version = (void *)var; in ZTEST()
74 memset(var, 0xff, sizeof(var)); in ZTEST()
75 rc = settings_runtime_get("blinfo/bootloader_version", var, sizeof(var)); in ZTEST()
76 zassert_equal(rc, sizeof(var), "Expected data length mismatch"); in ZTEST()
89 uint8_t var[4]; in ZTEST() local
93 memset(var, 0xff, sizeof(var)); in ZTEST()
94 rc = settings_runtime_get("blinfo/max_application_size", var, sizeof(var)); in ZTEST()
95 zassert_equal(rc, sizeof(var), "Expected data length mismatch"); in ZTEST()
96 memcpy(&value, var, sizeof(value)); in ZTEST()
103 uint8_t var[4]; in ZTEST() local
106 memset(var, 0xff, sizeof(var)); in ZTEST()
107 rc = settings_runtime_get("blinfo/does_not_exist", var, sizeof(var)); in ZTEST()
108 zassert_not_equal(rc, sizeof(var), "Expected data length (error) mismatch"); in ZTEST()
114 uint8_t var[2]; in ZTEST() local
117 memset(var, 0xff, sizeof(var)); in ZTEST()
118 rc = settings_runtime_get("blinfo/bootloader_version", var, sizeof(var)); in ZTEST()
119 zassert_not_equal(rc, sizeof(var), "Expected data length mismatch"); in ZTEST()