File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/test/run-make/thumb-none-qemu Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,16 @@ RUSTC := $(RUSTC_ORIGINAL)
1111LD_LIBRARY_PATH := $(HOST_RPATH_DIR )
1212# We need to be outside of 'src' dir in order to run cargo
1313WORK_DIR := $(TMPDIR )
14-
1514HERE := $(shell pwd)
1615
16+
17+ # hint: we could set variables per $(TARGET) basis in order to support other targets.
1718CRATE := lm3s6965evb
1819CRATE_URL := https://github.com/japaric/lm3s6965evb
1920CRATE_SHA1 := 9eeea58826438e84d89e9691a1bb0f85b03d377c
2021QEMU_CPU := cortex-m3
2122QEMU_MACHINE := lm3s6965evb
23+ QEMU_OUTPUT_TEXT := "x = 42"
2224
2325all :
2426 env
3234 -semihosting-config enable=on,target=native \
3335 -nographic \
3436 -kernel target/$(TARGET)/debug/$(CRATE) > out.txt
35- cd $(WORK_DIR)/$(CRATE) && grep "x = 42" out.txt
37+ cd $(WORK_DIR)/$(CRATE) && grep $(QEMU_OUTPUT_TEXT) out.txt
3638else
3739
3840all :
You can’t perform that action at this time.
0 commit comments