summaryrefslogtreecommitdiff
path: root/yjit/yjit.mk
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2023-02-23 11:49:00 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2023-02-23 12:12:57 -0500
commitc3cd1910923495916e1f95ae8efd9004ee78c396 (patch)
treee663ce8aad37ddc837c7008fb07c7e18b639c53e /yjit/yjit.mk
parent7c47c2617a091e2a7abaeff329fdef47d1f3f3f5 (diff)
downloadruby-c3cd1910923495916e1f95ae8efd9004ee78c396.tar.gz
YJIT: Add `make yjit-smoke-test` [ci skip]
I have this as a shell command and Maxime told me that she finds it useful, too. I tested this on a release build and a dev build. Note I intentional didn't put `$(Q)` in front of everything so `make` echos the command it runs.
Diffstat (limited to 'yjit/yjit.mk')
-rw-r--r--yjit/yjit.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/yjit/yjit.mk b/yjit/yjit.mk
index 17e6479195..634d5d56d9 100644
--- a/yjit/yjit.mk
+++ b/yjit/yjit.mk
@@ -86,6 +86,15 @@ update-yjit-bench:
$(Q) $(tooldir)/git-refresh -C $(srcdir) --branch main \
https://github.com/Shopify/yjit-bench yjit-bench $(GIT_OPTS)
+# Gives quick feedback about YJIT. Not a replacement for a full test run.
+.PHONY: yjit-smoke-test
+yjit-smoke-test:
+ifneq ($(strip $(CARGO)),)
+ $(CARGO) test --all-features -q --manifest-path='$(top_srcdir)/yjit/Cargo.toml'
+endif
+ $(MAKE) btest RUN_OPTS='--yjit-call-threshold=1' BTESTS=-j
+ $(MAKE) test-all TESTS='$(top_srcdir)/test/ruby/test_yjit.rb'
+
# Generate Rust bindings. See source for details.
# Needs `./configure --enable-yjit=dev` and Clang.
ifneq ($(strip $(CARGO)),) # if configure found Cargo