Lines Matching +full:0 +full:x36

26 	zassert_true(ret == 0, "Flash img init");  in ZTEST()
29 zassert_true(ret == 0, "Flash img init id"); in ZTEST()
37 zassert_true(ret == 0, "Flash img init id"); in ZTEST()
52 zassert_true(ret == 0, "Flash img init"); in ZTEST()
56 (void)memset(erase_buf, 0xff, sizeof(erase_buf)); in ZTEST()
65 for (i = 0U; i < 300 * sizeof(data) / sizeof(erase_buf); i++) { in ZTEST()
68 zassert_true(ret == 0, "Flash write failure (%d)", ret); in ZTEST()
74 zassert_true(ret == 0, "Flash write failure (%d)", ret); in ZTEST()
76 ret = flash_area_flatten(ctx.flash_area, 0, ctx.flash_area->fa_size); in ZTEST()
77 zassert_true(ret == 0, "Flash erase failure (%d)", ret); in ZTEST()
80 zassert(flash_img_bytes_written(&ctx) == 0, "pass", "fail"); in ZTEST()
82 k = 0U; in ZTEST()
83 for (i = 0U; i < 300; i++) { in ZTEST()
84 for (j = 0U; j < ARRAY_SIZE(data); j++) { in ZTEST()
88 zassert_true(ret == 0, "image collection fail: %d\n", ret); in ZTEST()
91 zassert(flash_img_buffered_write(&ctx, data, 0, true) == 0, "pass", in ZTEST()
101 k = 0U; in ZTEST()
102 for (i = 0U; i < 300 * sizeof(data); i++) { in ZTEST()
103 zassert(flash_area_read(fa, i, &temp, 1) == 0, "pass", "fail"); in ZTEST()
112 zassert_true(ret == 0, "Flash read failure (%d)", ret); in ZTEST()
113 zassert_true(memcmp(erase_buf, buf, sizeof(buf)) == 0, in ZTEST()
123 uint8_t tst_vec[] = { 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, in ZTEST()
124 0x38, 0x39, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, in ZTEST()
125 0x0a, 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, in ZTEST()
126 0x38, 0x37, 0x36, 0x35, 0x34, 0x33, 0x32, 0x31, in ZTEST()
127 0x30, 0x0a }; in ZTEST()
129 uint8_t tst_sha[] = { 0xc6, 0xb6, 0x7c, 0x46, 0xe7, 0x2e, 0x14, 0x17, in ZTEST()
130 0x49, 0xa4, 0xd2, 0xf1, 0x38, 0x58, 0xb2, 0xa7, in ZTEST()
131 0x54, 0xaf, 0x6d, 0x39, 0x50, 0x6b, 0xd5, 0x41, in ZTEST()
132 0x90, 0xf6, 0x18, 0x1a, 0xe0, 0xc2, 0x7f, 0x98 }; in ZTEST()
134 struct flash_img_check fic = { NULL, 0 }; in ZTEST()
139 zassert_true(ret == 0, "Flash img init 1"); in ZTEST()
140 ret = flash_area_flatten(ctx.flash_area, 0, ctx.flash_area->fa_size); in ZTEST()
141 zassert_true(ret == 0, "Flash erase failure (%d)\n", ret); in ZTEST()
143 zassert_true(ret == 0, "Flash img buffered write\n"); in ZTEST()
145 ret = flash_img_check(NULL, NULL, 0); in ZTEST()
147 ret = flash_img_check(NULL, &fic, 0); in ZTEST()
149 ret = flash_img_check(&ctx, NULL, 0); in ZTEST()
160 zassert_true(ret == 0, "Flash img check\n"); in ZTEST()
161 tst_sha[0] = 0x00; in ZTEST()
163 zassert_false(ret == 0, "Flash img check wrong sha\n"); in ZTEST()