ruby-changes:52062
From: mame <ko1@a...>
Date: Fri, 10 Aug 2018 17:42:50 +0900 (JST)
Subject: [ruby-changes:52062] mame:r64270 (trunk): common.mk: "make check" now runs test-spec
mame 2018-08-10 17:42:45 +0900 (Fri, 10 Aug 2018) New Revision: 64270 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64270 Log: common.mk: "make check" now runs test-spec Currently there are many "make" targets for testing: test, test-all, check, exam, etc. To make it simple, this change makes "make check" run all tests. "make exam" is just an alias to "make check". If a new test suite is added in future, "make check" should include it (unless it takes too much time...) [Feature #14187] Also, this introduces "make test-short" as an alias to "make test". I believe "make test" should equal to "make check", but there is objection against this. So now I commit only things that we agreed. Modified files: trunk/common.mk Index: common.mk =================================================================== --- common.mk (revision 64269) +++ common.mk (revision 64270) @@ -683,7 +683,7 @@ clean-spec: PHONY https://github.com/ruby/ruby/blob/trunk/common.mk#L683 -$(Q) $(RM) $(RUBYSPEC_CAPIEXT)/*.$(OBJEXT) $(RUBYSPEC_CAPIEXT)/*.$(DLEXT) -$(Q) $(RMDIRS) $(RUBYSPEC_CAPIEXT) 2> $(NULL) || exit 0 -check: main test test-testframework test-almost +check: main test test-testframework test-almost test-spec $(ECHO) check succeeded check-ruby: test test-ruby @@ -726,7 +726,8 @@ yes-test-testframework: prog PHONY https://github.com/ruby/ruby/blob/trunk/common.mk#L726 no-test-testframework: PHONY test-sample: test-basic # backward compatibility for mswin-build -test: btest-ruby test-knownbug test-basic +test-short: btest-ruby test-knownbug test-basic +test: test-short # $ make test-all TESTOPTS="--help" displays more detail # for example, make test-all TESTOPTS="-j2 -v -n test-name -- test-file-name" @@ -805,7 +806,7 @@ $(ENC_MK): $(srcdir)/enc/make_encmake.rb https://github.com/ruby/ruby/blob/trunk/common.mk#L806 .PHONY: clean clean-ext clean-local clean-enc clean-golf clean-rdoc clean-html clean-extout .PHONY: distclean distclean-ext distclean-local distclean-enc distclean-golf distclean-extout .PHONY: realclean realclean-ext realclean-local realclean-enc realclean-golf realclean-extout -.PHONY: check test test-all btest btest-ruby test-basic test-knownbug +.PHONY: exam check test test-short test-all btest btest-ruby test-basic test-knownbug .PHONY: run runruby parse benchmark gdb gdb-ruby .PHONY: update-mspec update-rubyspec test-rubyspec test-spec .PHONY: touch-unicode-files @@ -1358,7 +1359,7 @@ info-arch: PHONY https://github.com/ruby/ruby/blob/trunk/common.mk#L1359 change: PHONY $(BASERUBY) -C "$(srcdir)" ./tool/change_maker.rb $(CHANGES) > change.log -exam: check test-spec +exam: check love: sudo-precheck up all test exam install @echo love is all you need -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/