ruby-changes:48321
From: nobu <ko1@a...>
Date: Thu, 26 Oct 2017 09:59:22 +0900 (JST)
Subject: [ruby-changes:48321] nobu:r60435 (trunk): common.mk: test-bundled-gem [ci skip]
nobu 2017-10-26 09:59:15 +0900 (Thu, 26 Oct 2017) New Revision: 60435 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60435 Log: common.mk: test-bundled-gem [ci skip] * common.mk (test-bundled-gems): moved from Makefile.in so it might work on nmake too. Modified files: trunk/Makefile.in trunk/common.mk trunk/win32/Makefile.sub Index: win32/Makefile.sub =================================================================== --- win32/Makefile.sub (revision 60434) +++ win32/Makefile.sub (revision 60435) @@ -1097,6 +1097,13 @@ $(RCFILES): $(RBCONFIG) $(srcdir)/revisi https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L1097 -so_name=$(RUBY_SO_NAME) \ . $(icondirs) $(win_srcdir) +test-bundled-gems-run: + $(Q) for /f %G in ($(srcdir)/gems/bundled_gems) do @( \ + echo testing %G gem & \ + $(XRUBY) -C $(srcdir)/gems/src/%G -Ilib ../../../.bundle/bin/rake || \ + exit /b %STATUS% \ + ) + $(ruby_pc): $(RBCONFIG) @$(BOOTSTRAPRUBY) $(srcdir)/tool/expand-config.rb \ -output=$@ -mode=$(INSTALL_DATA_MODE) -config=rbconfig.rb \ Index: Makefile.in =================================================================== --- Makefile.in (revision 60434) +++ Makefile.in (revision 60435) @@ -474,21 +474,11 @@ ext/extinit.$(OBJEXT): ext/extinit.c $(S https://github.com/ruby/ruby/blob/trunk/Makefile.in#L474 enc/encinit.$(OBJEXT): enc/encinit.c $(SETUP) -test-bundled-gems-precheck: $(arch)-fake.rb programs - -test-bundled-gems-fetch: $(PREP) - $(Q) $(BASERUBY) -C $(srcdir)/gems ../tool/fetch-bundled_gems.rb src bundled_gems - -yes-test-bundled-gems-prepare: test-bundled-gems-precheck test-bundled-gems-fetch - $(XRUBY) -C "$(srcdir)" bin/gem install --no-ri --no-rdoc \ - --install-dir .bundle --conservative 'minitest:~> 5' 'test-unit' 'rake' 'hoe' 'yard' 'pry' 'packnga' - -test-bundled-gems: $(TEST_RUNNABLE)-test-bundled-gems -yes-test-bundled-gems: yes-test-bundled-gems-prepare - for gem in minitest test-unit xmlrpc net-telnet did_you_mean power_assert rake; do \ +test-bundled-gems-run: + $(Q) set -e; while read gem _; do \ + echo testing $$gem gem && \ $(XRUBY) -C $(srcdir)/gems/src/$$gem -Ilib ../../../.bundle/bin/rake; \ - done -no-test-bundled-gems: + done < $(srcdir)/gems/bundled_gems update-src:: @$(CHDIR) "$(srcdir)" && LC_TIME=C exec $(VCSUP) Index: common.mk =================================================================== --- common.mk (revision 60434) +++ common.mk (revision 60435) @@ -1157,6 +1157,21 @@ update-bundled_gems: PHONY https://github.com/ruby/ruby/blob/trunk/common.mk#L1157 "$(srcdir)/gems/bundled_gems" | \ "$(IFCHANGE)" "$(srcdir)/gems/bundled_gems" - +test-bundled-gems-precheck: $(arch)-fake.rb programs + +test-bundled-gems-fetch: $(PREP) + $(Q) $(BASERUBY) -C $(srcdir)/gems ../tool/fetch-bundled_gems.rb src bundled_gems + +test-bundled-gems-prepare: test-bundled-gems-precheck test-bundled-gems-fetch + $(XRUBY) -C "$(srcdir)" bin/gem install --no-ri --no-rdoc \ + --install-dir .bundle --conservative 'minitest:~> 5' 'test-unit' 'rake' 'hoe' 'yard' 'pry' 'packnga' + +PREPARE_BUNDLED_GEMS = test-bundled-gems-prepare +test-bundled-gems: $(TEST_RUNNABLE)-test-bundled-gems +yes-test-bundled-gems: test-bundled-gems-run +no-test-bundled-gems: +test-bundled-gems-run: $(PREPARE_BUNDLED_GEMS) + test-bundler-precheck: $(arch)-fake.rb programs yes-test-bundler-prepare: test-bundler-precheck -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/