summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2018-10-06 18:12:24 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-02-09 08:56:47 +0800
commit7d728e447d70d79e93c01a7c51efbd61be09d68f (patch)
treeb33adb78c873ea6c4579a3fdd006f07f4ed9f1cf
parent0992c4af5242fc95e8cc028c5af7fb86424e624c (diff)
downloadmrust-7d728e447d70d79e93c01a7c51efbd61be09d68f.tar.gz
Makefile - Add libcore-test
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 23c799d2..2ef88f9e 100644
--- a/Makefile
+++ b/Makefile
@@ -236,6 +236,7 @@ LIB_TESTS := collections #std
rust_tests-libs: $(patsubst %,output/lib%-test_out.txt, $(LIB_TESTS))
RUNTIME_ARGS_output/libcollections-test := --test-threads 1
+#RUNTIME_ARGS_output/libcore-test := --test-threads 1
RUNTIME_ARGS_output/libstd-test := --test-threads 1
RUNTIME_ARGS_output/libstd-test += --skip ::collections::hash::map::test_map::test_index_nonexistent
RUNTIME_ARGS_output/libstd-test += --skip ::collections::hash::map::test_map::test_drops
@@ -243,6 +244,13 @@ RUNTIME_ARGS_output/libstd-test += --skip ::collections::hash::map::test_map::te
RUNTIME_ARGS_output/libstd-test += --skip ::collections::hash::map::test_map::test_placement_panic
RUNTIME_ARGS_output/libstd-test += --skip ::io::stdio::tests::panic_doesnt_poison # Unbounded execution
+output/libcore-test: $(RUSTCSRC)src/libcore/tests/lib.rs $(TEST_DEPS)
+ @echo "--- [MRUSTC] --test -o $@"
+ @mkdir -p output/
+ @rm -f $@
+ $(DBG) $(ENV_$@) $(BIN) --test $< -o $@ $(RUST_FLAGS) $(ARGS_$@) $(PIPECMD)
+# # HACK: Work around gdb returning success even if the program crashed
+ @test -e $@
output/lib%-test: $(RUSTCSRC)src/lib%/lib.rs $(TEST_DEPS)
@echo "--- [MRUSTC] --test -o $@"
@mkdir -p output/