summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-08-29 14:34:06 -0400
committerKevin Newton <kddnewton@gmail.com>2023-08-29 15:53:25 -0400
commit455153705c81fc1561317279da54daa5e5b479b3 (patch)
treea69571e875e3ef72219a9890cfb77f57b0512668 /tool
parent5161c6c4cdf989ee63dbbe0baa81317f8e8ae491 (diff)
Tests for the YARP compiler
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8323
Diffstat (limited to 'tool')
-rwxr-xr-xtool/sync_default_gems.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 5bdede34a9..2ac66f9195 100755
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -399,8 +399,9 @@ module SyncDefaultGems
when "yarp"
# We don't want to remove yarp_init.c, so we temporarily move it
# out of the yarp dir, wipe the yarp dir, and then put it back
- mv("yarp/yarp_init.c", ".") if File.exist? "yarp/yarp_init.c"
- mv("yarp/yarp_compiler.c", ".") if File.exist? "yarp/yarp_compiler.c"
+ mv("yarp/yarp_init.c", ".")
+ mv("yarp/yarp_compiler.c", ".")
+ mv("test/yarp/compiler_test.rb", ".")
rm_rf(%w[test/yarp yarp])
# Run the YARP templating scripts
@@ -419,6 +420,7 @@ module SyncDefaultGems
rm("yarp/extconf.rb")
mv("yarp_init.c", "yarp/")
mv("yarp_compiler.c", "yarp/")
+ mv("compiler_test.rb", "test/yarp/")
else
sync_lib gem, upstream
end