File: ruby-tests.rb

package info (click to toggle)
ruby-json 1.7.3-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,296 kB
  • sloc: java: 3,380; ansic: 3,297; ruby: 2,632; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 284 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
inc = $:.map { |d| "-I#{d}" }.join(' ')
p inc
ENV['json'] = 'pure'
puts "Pure version of the tests"
system("#{ENV['RUBY_TEST_BIN']} #{inc} tests/test_*.rb") or raise
ENV['json'] = 'ext'
puts "Ext version of the tests"
system("#{ENV['RUBY_TEST_BIN']} #{inc} tests/test_*.rb") or raise