File: ruby-tests.rb

package info (click to toggle)
unicorn 5.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,288 kB
  • ctags: 978
  • sloc: ruby: 7,591; ansic: 4,155; sh: 1,775; makefile: 11
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