mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test-bundled-gems-run: Respect -k option
This commit is contained in:
parent
a39f218f22
commit
5108a5dd7f
1 changed files with 6 additions and 3 deletions
|
@ -536,12 +536,15 @@ cont.$(OBJEXT): $(COROUTINE_H)
|
|||
TEST_BUNDLED_GEMS_ALLOW_FAILURES =
|
||||
|
||||
test-bundled-gems-run:
|
||||
$(Q) while read gem _; do \
|
||||
$(Q) fail=0 keep=; case "$(MFLAGS)" in *k*) keep=1;; esac; \
|
||||
while read gem _; do \
|
||||
echo testing $$gem gem; \
|
||||
echo $(TEST_BUNDLED_GEMS_ALLOW_FAILURES) | grep -q $$gem || set -e; \
|
||||
[ $$keep ] || echo $(TEST_BUNDLED_GEMS_ALLOW_FAILURES) | grep -q $$gem || set -e; \
|
||||
$(XRUBY) -C $(srcdir)/gems/src/$$gem -Ilib ../../../.bundle/bin/rake; \
|
||||
[ $$? = 0 ] || fail=1; \
|
||||
set +e; \
|
||||
done < $(srcdir)/gems/bundled_gems
|
||||
done < $(srcdir)/gems/bundled_gems; \
|
||||
exit $$fail
|
||||
|
||||
update-src::
|
||||
@$(CHDIR) "$(srcdir)" && LC_TIME=C exec $(VCSUP)
|
||||
|
|
Loading…
Reference in a new issue