summaryrefslogtreecommitdiff
path: root/tool/test_for_warn_bundled_gems/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tool/test_for_warn_bundled_gems/test.sh')
-rwxr-xr-xtool/test_for_warn_bundled_gems/test.sh53
1 files changed, 53 insertions, 0 deletions
diff --git a/tool/test_for_warn_bundled_gems/test.sh b/tool/test_for_warn_bundled_gems/test.sh
new file mode 100755
index 0000000000..a14d5bcedc
--- /dev/null
+++ b/tool/test_for_warn_bundled_gems/test.sh
@@ -0,0 +1,53 @@
+#!/bin/bash
+
+echo "* Show warning require and LoadError"
+ruby test_warn_bundled_gems.rb
+echo
+
+echo "* Show warning when bundled gems called as dependency"
+ruby test_warn_dependency.rb
+echo
+
+echo "* Show warning sub-feature like bigdecimal/util"
+ruby test_warn_sub_feature.rb
+echo
+
+echo "* Show warning dash gem like net/smtp"
+ruby test_warn_dash_gem.rb
+echo
+
+echo "* Show warning when bundle exec with ruby and script"
+bundle exec ruby test_warn_bundle_exec.rb
+echo
+
+echo "* Show warning when bundle exec with shebang's script"
+bundle exec ./test_warn_bundle_exec_shebang.rb
+echo
+
+echo "* Show warning when bundle exec with -r option"
+bundle exec ruby -rostruct -e ''
+echo
+
+echo "* Show warning with bootsnap"
+ruby test_warn_bootsnap.rb
+echo
+
+echo "* Show warning with bootsnap for gem with native extension"
+ruby test_warn_bootsnap_rubyarchdir_gem.rb
+echo
+
+echo "* Show warning with zeitwerk"
+ruby test_warn_zeitwerk.rb
+echo
+
+echo "* Don't show warning bundled gems on Gemfile"
+ruby test_no_warn_dependency.rb
+echo
+
+echo "* Don't show warning with net/smtp when net-smtp on Gemfile"
+ruby test_no_warn_dash_gem.rb
+echo
+
+echo "* Don't show warning bigdecimal/util when bigdecimal on Gemfile"
+ruby test_no_warn_sub_feature.rb
+echo