File: ruby-tests.rb

package info (click to toggle)
unicorn 6.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,324 kB
  • sloc: ruby: 8,068; ansic: 4,175; sh: 1,773; perl: 53; makefile: 8
file content (7 lines) | stat: -rw-r--r-- 253 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
require 'rbconfig' unless defined?(RbConfig)

ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])

Dir['test/unit/test_*.rb'].each do |test|
  exit($?.exitstatus) unless system("#{ruby} -I. -e \"require '#{test}'\"")
end