test/cbi: refactor test to by usable in Zephyr
test/cbi: refactor test to by usable in Zephyr

This change refactors test/cbi.c to use macros common for EC and Zephyr
tests. It is based on docs/ztest.

BUG=b:185205123
BRANCH=none
TEST=make run-cbi

Signed-off-by: Tomasz Michalec <a547db31280d14f095c760a23a7523d0b1e55fe6@semihalf.com>
Change-Id: I1c8eb5263b8bd8f435bb3c64b9dacfd14deb01e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2821697
Reviewed-by: Jeremy Bettis <4df7b5147fee087dca33c181f288ee7dbf56e022@chromium.org>

coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec