1
0
Fork 0
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:
Nobuyoshi Nakada 2019-07-24 12:13:07 +09:00
parent a39f218f22
commit 5108a5dd7f
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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)