File: ruby-tests.rb

package info (click to toggle)
ruby-json 2.0.1%2Bdfsg-3%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,092 kB
  • sloc: javascript: 3,477; ansic: 3,294; java: 3,132; ruby: 2,683; sh: 37; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 337 bytes parent folder | download
1
2
3
4
5
6
7
8
9
$:.unshift File.expand_path('../../tests', __FILE__)
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