test: dm: tee: extend with RPC test
authorIgor Opaniuk <igor.opaniuk@foundries.io>
Mon, 25 Jan 2021 12:28:43 +0000 (14:28 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 16 Feb 2021 16:48:20 +0000 (11:48 -0500)
commit9d1215be92c89a4cc52afc80ec6bb3a4f8e7af8e
treef6ef65fbeacc71a6c6c091d4fdd9231809909040
parent592b98bb9a65748799c6fd245cd990c8af80c2b6
test: dm: tee: extend with RPC test

Extend existing DM tee tests adding test coverage for reverse RPC calls.
Currently this commit only adds tests for I2C requests from TEE driver
to TEE supplicant, for instance reading/writing data to emulated i2c
eeprom defines in standard sandbox test device tree
(arch/sandbox/dts/test.dtb):

=> i2c bus
Bus 0: i2c@0  (active 0)
   2c: eeprom@2c, offset len 1, flags 0
   ...

Running TEE tests:
=> ut dm tee
Test: dm_test_tee: tee.c
Test: dm_test_tee: tee.c (flat tree)
Failures: 0

Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
test/dm/tee.c