aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-12-15 13:48:10 +0800
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-12-15 14:05:13 +0800
commit9a204fb82e36dc30fc86827234e99ca6f55d442c (patch)
treecfa07b64c80d7fa722a4bb755c0cd5457a9ed355 /tool
parent25a133ba17a0025451befecd4008b18de2c1e190 (diff)
downloadruby-9a204fb82e36dc30fc86827234e99ca6f55d442c.tar.gz
Added test case of bootsnap
Diffstat (limited to 'tool')
-rw-r--r--tool/test_for_warn_bundled_gems/.gitignore1
-rw-r--r--tool/test_for_warn_bundled_gems/test_no_warn_bootsnap.rb20
2 files changed, 21 insertions, 0 deletions
diff --git a/tool/test_for_warn_bundled_gems/.gitignore b/tool/test_for_warn_bundled_gems/.gitignore
new file mode 100644
index 0000000000..a9a5aecf42
--- /dev/null
+++ b/tool/test_for_warn_bundled_gems/.gitignore
@@ -0,0 +1 @@
+tmp
diff --git a/tool/test_for_warn_bundled_gems/test_no_warn_bootsnap.rb b/tool/test_for_warn_bundled_gems/test_no_warn_bootsnap.rb
new file mode 100644
index 0000000000..1ed16c4670
--- /dev/null
+++ b/tool/test_for_warn_bundled_gems/test_no_warn_bootsnap.rb
@@ -0,0 +1,20 @@
+require "bundler/inline"
+
+gemfile do
+ source "https://rubygems.org"
+ gem "bootsnap", require: false
+end
+
+require 'bootsnap'
+Bootsnap.setup(
+ cache_dir: 'tmp/cache',
+ ignore_directories: ['node_modules'],
+ development_mode: true,
+ load_path_cache: true,
+ compile_cache_iseq: true,
+ compile_cache_yaml: true,
+ compile_cache_json: true,
+ readonly: true,
+)
+
+require 'csv' \ No newline at end of file