Skip to content

Commit

Permalink
qemu_v8.mk: Add CI test for Rust applications
Browse files Browse the repository at this point in the history
Invoke optee_rust/ci/qemu-check.exp in target "check-rust" to
trigger CI test for Rust applications.
Run check progress:
$ make CFG_TEE_CORE_LOG_LEVEL=0 check-rust

Signed-off-by: Yuan Zhuang <zhuangyuan04@baidu.com>
  • Loading branch information
DemesneGH committed Sep 23, 2021
1 parent 236a781 commit 31dc606
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions qemu_v8.mk
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,23 @@ check: $(CHECK_DEPS)
echo "== end of $$PWD/serial1.log:"; \
fi; false)

check-rust: $(CHECK_DEPS)
ln -sf $(ROOT)/out-br/images/rootfs.cpio.gz $(BINARIES_PATH)/
cd $(BINARIES_PATH) && \
export QEMU=$(QEMU_BUILD)/aarch64-softmmu/qemu-system-aarch64 && \
export QEMU_SMP=$(QEMU_SMP) && \
export QEMU_GIC=$(QEMU_GIC_VERSION) && \
export QEMU_MEM=$(QEMU_MEM) && \
expect $(ROOT)/optee_rust/ci/qemu-check.exp -- $(check-args) || \
(if [ "$(DUMP_LOGS_ON_ERROR)" ]; then \
echo "== $$PWD/serial0.log:"; \
cat serial0.log; \
echo "== end of $$PWD/serial0.log:"; \
echo "== $$PWD/serial1.log:"; \
cat serial1.log; \
echo "== end of $$PWD/serial1.log:"; \
fi; false)

check-only: check

check-clean:
Expand Down

0 comments on commit 31dc606

Please sign in to comment.