Skip to content
Browse files

more examples for running tests

  • Loading branch information...
1 parent 33a1cd5 commit e89ec8efd627fa3eef0b6084c3625cb6b85f9e97 @lnussbaum lnussbaum committed Mar 5, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/gem2deb/dh_make_ruby.rb
View
7 lib/gem2deb/dh_make_ruby.rb
@@ -262,10 +262,15 @@ def test_suite
# there's a spec/ or a test/ directory in the upstream source, but
# no test suite was defined in the Gem specification. It would be
# a good idea to define it here so the package gets tested at build time.
-# Example:
+# Examples:
# $: << 'lib' << '.'
# Dir['{spec,test}/**/*.rb'].each { |f| require f }
+#
# require 'test/ts_foo.rb'
+#
+# require 'rbconfig'
+# ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
+# exec("\#{ruby} -I. test/runtests.rb")
EOF
end
end

0 comments on commit e89ec8e

Please sign in to comment.
Something went wrong with that request. Please try again.