diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2005-02-01 09:30:24 +0300 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2005-02-01 09:30:24 +0300 |
commit | d4ef11456a691a389bd33058b4894195e0a95113 (patch) | |
tree | 577fd295960d5fe3d3f5fd5f1e13047113481519 /runtime | |
parent | 19709715c25ca2498997aa222dfbe74842bb7a4f (diff) |
* runtime/Makefile.am (test-support-files): New target.
(mcs-do-compiler-tests): Use it.
(mcs-compileall): Likewise. Don't exit out on the first failing DLL.
($(tmpinst)/config): Update to changes in data/config.in.
svn path=/trunk/mono/; revision=39913
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/Makefile.am | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/runtime/Makefile.am b/runtime/Makefile.am index a9008bf9323..24d6630a5d5 100644 --- a/runtime/Makefile.am +++ b/runtime/Makefile.am @@ -82,30 +82,33 @@ endif mcs-do-test-profiles: d=`pwd`; cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper PROFILES='$(build_profiles)' test-profiles -mcs-do-run-test-profiles: - $(mkinstalldirs) $(tmpinst)/bin - $(MAKE) $(TEST_SUPPORT_FILES) +mcs-do-run-test-profiles: test-support-files d=`pwd`; PATH=$$d/$(tmpinst)/bin:$$PATH ; export PATH ; \ ( cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/$(tmpinst)/bin/mono PROFILES='$(build_profiles)' run-test-profiles ) || ret=false ; \ - rm -fr $(tmpinst) ; $$ret + rm -fr $(tmpinst); $$ret # Use --compile-all as a poor man's PEVerify to detect invalid IL # This doesn't yet work on the 2.0 profile verify_profiles = $(filter-out net_2_0, $(build_profiles)) #verify_profiles = $(build_profiles) -mcs-compileall: $(tmpinst)/bin/mono - save_MONO_PATH=$$MONO_PATH; mcs_topdir=`cd $(mcs_topdir) && pwd`; \ +mcs-compileall: test-support-files + save_MONO_PATH=$$MONO_PATH; mcs_topdir=`cd $(mcs_topdir) && pwd`; ret=:; \ for profile in $(verify_profiles); do \ MONO_PATH="$$mcs_topdir/class/lib/$$profile:$$save_MONO_PATH"; export MONO_PATH; \ for i in $(mcs_topdir)/class/lib/$$profile/*.dll $(mcs_topdir)/class/lib/$$profile/*.exe; do \ - echo $$i; ./$(tmpinst)/bin/mono --compile-all $$i || exit 1; done; done + if ./$(tmpinst)/bin/mono --compile-all $$i; then \ + echo $$i verified OK; \ + else \ + echo $$i verification failed; ret=false; \ + fi; done; done; \ + rm -fr $(tmpinst); $$ret check-local: mcs-compileall mcs-do-test-profiles $(MAKE) $(test_select) mcs-do-run-test-profiles $(tmpinst)/config: ../data/config d=`cd ../support && pwd`; \ - sed 's,<configuration>,& <dllmap dll="MonoPosixHelper" target="'$$d/libMonoPosixHelper.la'" />,' ../data/config > $@ + sed 's,target="libMonoPosixHelper[^"]*",target="'$$d/libMonoPosixHelper.la'",' ../data/config > $@ $(tmpinst)/bin/mono: mono-wrapper $(tmpinst)/config sed 's,/data/config",/runtime/$(tmpinst)/config",' mono-wrapper > $@ @@ -123,6 +126,10 @@ $(tmpinst)/bin/gmcs: $(tmpinst)/bin/ilasm: $(MAKE) test-support-file target=$@ file=ilasm/ilasm.exe +test-support-files: + $(mkinstalldirs) $(tmpinst)/bin + $(MAKE) $(TEST_SUPPORT_FILES) + test-support-file: echo '#! /bin/sh' > $(target) r=`pwd`; m=`cd $(mcs_topdir) && pwd`; echo 'exec "'"$$r/mono-wrapper"'" "'"$$m/$(file)"'" "$$@"' >> $(target) |