summaryrefslogtreecommitdiffstats
path: root/tests/run-make/thumb-none-qemu
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/run-make/thumb-none-qemu/Makefile27
-rw-r--r--tests/run-make/thumb-none-qemu/example/.cargo/config (renamed from src/test/run-make/thumb-none-qemu/example/.cargo/config)0
-rw-r--r--tests/run-make/thumb-none-qemu/example/Cargo.lock (renamed from src/test/run-make/thumb-none-qemu/example/Cargo.lock)0
-rw-r--r--tests/run-make/thumb-none-qemu/example/Cargo.toml (renamed from src/test/run-make/thumb-none-qemu/example/Cargo.toml)0
-rw-r--r--tests/run-make/thumb-none-qemu/example/memory.x (renamed from src/test/run-make/thumb-none-qemu/example/memory.x)0
-rw-r--r--tests/run-make/thumb-none-qemu/example/src/main.rs (renamed from src/test/run-make/thumb-none-qemu/example/src/main.rs)0
-rw-r--r--tests/run-make/thumb-none-qemu/script.sh (renamed from src/test/run-make/thumb-none-qemu/script.sh)0
7 files changed, 27 insertions, 0 deletions
diff --git a/tests/run-make/thumb-none-qemu/Makefile b/tests/run-make/thumb-none-qemu/Makefile
new file mode 100644
index 000000000..a1c2ba12c
--- /dev/null
+++ b/tests/run-make/thumb-none-qemu/Makefile
@@ -0,0 +1,27 @@
+include ../../run-make-fulldeps/tools.mk
+
+# only-thumb
+
+# How to run this
+# $ ./x.py clean
+# $ ./x.py test --target thumbv7m-none-eabi tests/run-make
+
+# For cargo setting
+export RUSTC := $(RUSTC_ORIGINAL)
+export LD_LIBRARY_PATH := $(HOST_RPATH_DIR)
+# We need to be outside of 'src' dir in order to run cargo
+export WORK_DIR := $(TMPDIR)
+export HERE := $(shell pwd)
+
+## clean up unused env variables which might cause harm.
+unexport RUSTC_LINKER
+unexport RUSTC_BOOTSTRAP
+unexport RUST_BUILD_STAGE
+unexport RUST_TEST_THREADS
+unexport RUST_TEST_TMPDIR
+unexport AR
+unexport CC
+unexport CXX
+
+all:
+ bash script.sh
diff --git a/src/test/run-make/thumb-none-qemu/example/.cargo/config b/tests/run-make/thumb-none-qemu/example/.cargo/config
index 8b30310e7..8b30310e7 100644
--- a/src/test/run-make/thumb-none-qemu/example/.cargo/config
+++ b/tests/run-make/thumb-none-qemu/example/.cargo/config
diff --git a/src/test/run-make/thumb-none-qemu/example/Cargo.lock b/tests/run-make/thumb-none-qemu/example/Cargo.lock
index 687b962a8..687b962a8 100644
--- a/src/test/run-make/thumb-none-qemu/example/Cargo.lock
+++ b/tests/run-make/thumb-none-qemu/example/Cargo.lock
diff --git a/src/test/run-make/thumb-none-qemu/example/Cargo.toml b/tests/run-make/thumb-none-qemu/example/Cargo.toml
index 63eb5f90a..63eb5f90a 100644
--- a/src/test/run-make/thumb-none-qemu/example/Cargo.toml
+++ b/tests/run-make/thumb-none-qemu/example/Cargo.toml
diff --git a/src/test/run-make/thumb-none-qemu/example/memory.x b/tests/run-make/thumb-none-qemu/example/memory.x
index dc7ad967a..dc7ad967a 100644
--- a/src/test/run-make/thumb-none-qemu/example/memory.x
+++ b/tests/run-make/thumb-none-qemu/example/memory.x
diff --git a/src/test/run-make/thumb-none-qemu/example/src/main.rs b/tests/run-make/thumb-none-qemu/example/src/main.rs
index 2abfde8e7..2abfde8e7 100644
--- a/src/test/run-make/thumb-none-qemu/example/src/main.rs
+++ b/tests/run-make/thumb-none-qemu/example/src/main.rs
diff --git a/src/test/run-make/thumb-none-qemu/script.sh b/tests/run-make/thumb-none-qemu/script.sh
index a8aa72af1..a8aa72af1 100644
--- a/src/test/run-make/thumb-none-qemu/script.sh
+++ b/tests/run-make/thumb-none-qemu/script.sh