From 268acf8b1653c965bff9ad83dc4490aff18e32fc Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Wed, 5 Aug 2026 14:20:54 -0400 Subject: [PATCH] Run Rust tests with test rake task --- Rakefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 152f0cd..6e1712f 100644 --- a/Rakefile +++ b/Rakefile @@ -8,10 +8,20 @@ require "rake/testtask" task default: :"install:debug" -Rake::TestTask.new(:test) do |t| - t.test_files = FileList["test/**/test_*.rb"] +namespace :test do + Rake::TestTask.new(:ruby) do |t| + t.test_files = FileList["test/**/test_*.rb"] + end + + task :rust do + Dir.chdir("gc/mmtk") do + sh("cargo test") + end + end end +task test: [:"test:ruby", :"test:rust"] + Rake::ExtensionTask.prepend(Module.new do def binary(platform = nil) "librubygc.mmtk.#{RbConfig::CONFIG["DLEXT"]}"