diff options
author | Artem Pyanykh <artem.pyanykh@gmail.com> | 2019-04-16 19:10:31 +0300 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-04-21 09:19:29 -0400 |
commit | 687152f288dc37a1038094ed9e9c1ee2759706b1 (patch) | |
tree | b612bf897ea98c557798904ecbb6c19f67d761dc /testsuite/tests/rts/Makefile | |
parent | 0e96d1205905707369b82ce024afdfed3fd7bdf8 (diff) | |
download | haskell-687152f288dc37a1038094ed9e9c1ee2759706b1.tar.gz |
testsuite: move tests related to linker under tests/rts/linker
Diffstat (limited to 'testsuite/tests/rts/Makefile')
-rw-r--r-- | testsuite/tests/rts/Makefile | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/testsuite/tests/rts/Makefile b/testsuite/tests/rts/Makefile index 08d2051891..32c2b17e27 100644 --- a/testsuite/tests/rts/Makefile +++ b/testsuite/tests/rts/Makefile @@ -16,11 +16,6 @@ outofmem2:: $(MAKE) -s --no-print-directory outofmem2-prep @ulimit -m 1000000 2>/dev/null; ./outofmem2 +RTS -M5m -RTS || echo "exit($$?)" -T2615-prep: - $(RM) libfoo_T2615.so - '$(TEST_HC)' $(TEST_HC_OPTS) -fPIC -c libfoo_T2615.c -o libfoo_T2615.o - '$(TEST_HC)' $(filter-out -rtsopts, $(TEST_HC_OPTS)) -shared -no-auto-link-packages libfoo_T2615.o -o libfoo_T2615.so - .PHONY: T4059 T4059: $(RM) T4059_c.o T4059.o T4059.hi @@ -62,38 +57,6 @@ T9405: # | asm // manually laid out sections # $(0) = obj-src -define run_T5435_v -$(RM) T5435_load_v_$(1) T5435_v_$(1)$(exeext) -'$(TEST_HC)' $(TEST_HC_OPTS) -optc-D$(HostOS)_HOST_OS -optc-DLOAD_CONSTR=$(2) -v0 -c T5435_$(1).c -o T5435_load_v_$(1).o -'$(TEST_HC)' $(TEST_HC_OPTS) -v0 T5435.hs -osuf main_v_$(1)_o -o T5435_v_$(1)$(exeext) -./T5435_v_$(1) v ./T5435_load_v_$(1).o -endef - -define run_T5435_dyn -$(RM) T5435_load_dyn_$(1) T5435_dyn_$(1)$(exeext) -'$(TEST_HC)' $(filter-out -rtsopts, $(TEST_HC_OPTS)) -optc-D$(HostOS)_HOST_OS -v0 -fPIC -shared -c T5435_$(1).c -osuf dyn_$(1)_o -o T5435_load_dyn_$(1)$(dllext) -'$(TEST_HC)' $(TEST_HC_OPTS) -v0 T5435.hs -osuf main_dyn_$(1)_o -o T5435_dyn_$(1)$(exeext) -./T5435_dyn_$(1) dyn ./T5435_load_dyn_$(1)$(dllext) -endef - -.PHONY: T5435_v_gcc -T5435_v_gcc : - $(call run_T5435_v,gcc,0) - -.PHONY: T5435_v_asm_a T5435_v_asm_b -T5435_v_asm_a : - $(call run_T5435_v,asm,0) -T5435_v_asm_b : - $(call run_T5435_v,asm,1) - -.PHONY: T5435_dyn_gcc -T5435_dyn_gcc : - $(call run_T5435_dyn,gcc) - -.PHONY: T5435_dyn_asm -T5435_dyn_asm : - $(call run_T5435_dyn,asm) - T6006_setup : '$(TEST_HC)' $(TEST_HC_OPTS) -c T6006.hs @@ -121,52 +84,6 @@ T10296a: '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -threaded T10296a.hs T10296a_c.c -o T10296a ./T10296a +RTS -N2 -.PHONY: linker_unload -linker_unload: - $(RM) Test.o Test.hi - "$(TEST_HC)" $(TEST_HC_OPTS) -c Test.hs -v0 - # -rtsopts causes a warning - "$(TEST_HC)" LinkerUnload.hs -package ghc $(filter-out -rtsopts, $(TEST_HC_OPTS)) linker_unload.c -o linker_unload -no-hs-main -optc-Werror - ./linker_unload "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" - -# ----------------------------------------------------------------------------- -# Testing failures in the RTS linker. We should be able to repeatedly -# load bogus object files of various kinds without crashing and -# without any memory leaks. -# -# Check for memory leaks manually by running e.g. -# -# make linker_error1 -# valgrind --leak-check=full --show-reachable=yes ./linker_error1 linker_error1_o.o - -# linker_error1: not a valid object file - -.PHONY: linker_error1 -linker_error1: - "$(TEST_HC)" -c linker_error.c -o linker_error1.o - "$(TEST_HC)" linker_error1.o -o linker_error1 -no-hs-main -optc-g -debug -threaded - ./linker_error1 linker_error.c - -# linker_error2: the object file has an unknown symbol (fails in -# resolveObjs()) - -.PHONY: linker_error2 -linker_error2: - "$(TEST_HC)" -c linker_error.c -o linker_error2.o - "$(TEST_HC)" -c linker_error2.c -o linker_error2_o.o - "$(TEST_HC)" linker_error2.o -o linker_error2 -no-hs-main -optc-g -debug -threaded - ./linker_error2 linker_error2_o.o - -# linker_error3: the object file duplicates an existing symbol (fails -# in loadObj()) - -.PHONY: linker_error3 -linker_error3: - "$(TEST_HC)" -c linker_error.c -o linker_error3.o - "$(TEST_HC)" -c linker_error3.c -o linker_error3_o.o - "$(TEST_HC)" linker_error3.o -o linker_error3 -no-hs-main -optc-g -debug -threaded - ./linker_error3 linker_error3_o.o - .PHONY: T11788 T11788: "$(TEST_HC)" -c T11788.c -o T11788_obj.o |