diff options
Diffstat (limited to 'testsuite/tests/tool-ocamlobjinfo/Makefile')
-rw-r--r-- | testsuite/tests/tool-ocamlobjinfo/Makefile | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/testsuite/tests/tool-ocamlobjinfo/Makefile b/testsuite/tests/tool-ocamlobjinfo/Makefile index ed4ba04534..19a745c733 100644 --- a/testsuite/tests/tool-ocamlobjinfo/Makefile +++ b/testsuite/tests/tool-ocamlobjinfo/Makefile @@ -2,6 +2,9 @@ BASEDIR=../.. LD_PATH= +# This test ensures that ocamlobjinfo is behaving as the configuration +# expects and is a guard against the breakage fixed in 17fc532 + .PHONY: default default: @printf " ... testing 'ocamlobjinfo'" @@ -10,23 +13,19 @@ default: elif ! grep -q HAS_LIBBFD $(TOPDIR)/byterun/caml/s.h ; then \ echo ' => skipped (BFD library not available)'; \ else \ - case " $(OTHERLIBRARIES) " in \ - *' unix '* | *' win32unix '*) \ - $(SET_LD_PATH) OCAMLLIB=$(TOPDIR)/tools $(MAKE) run;; \ - *) echo ' => skipped (unix.cmxs not available)';; \ - esac \ + $(SET_LD_PATH) OCAMLLIB=$(TOPDIR)/tools $(MAKE) run; \ fi .PHONY: run run: @rm -f $(MAIN_MODULE).result + @$(OCAMLOPT) -shared -o question.cmxs question.ml @$(OCAMLRUN) `$(CYGPATH) $(TOPDIR)/tools/ocamlobjinfo` \ - $(OTOPDIR)/otherlibs/$(UNIXLIBVAR)unix/unix.cmxs \ + question.cmxs \ > test.raw.result 2>&1 \ && sed -e 's/\([^0-9a-z]\)[0-9a-z]\{32\}\([^0-9a-z]\|$$\)/\1<MD5>\2/' \ - -e 's/File .*otherlibs/File otherlibs/' \ test.raw.result > test.result \ - && $(DIFF) test.$(BACKEND).reference test.result > /dev/null \ + && $(DIFF) test.reference test.result > /dev/null \ && echo " => passed" || echo " => failed" .PHONY: promote @@ -37,9 +36,3 @@ clean: defaultclean @rm -f *.result include $(BASEDIR)/makefiles/Makefile.common - -ifeq "$(FLAMBDA)" "true" -BACKEND=flambda -else -BACKEND=clambda -endif |