test/runtests.rb in rio-0.5.1 vs test/runtests.rb in rio-0.6.0
- old
+ new
@@ -1,15 +1,13 @@
-#!/usr/bin/ruby -KU
+#!/usr/bin/env ruby
# encoding: UTF-8
Dir.chdir File.dirname(__FILE__)
$devlib=File.expand_path('../lib/')
$:.unshift $devlib unless $:[0] == $devlib
$testlib=File.expand_path('../test/')
$:.unshift $testlib unless $:[0] == $testlib
-
-
require 'platform'
require 'rio'
p "[#{RUBY_PLATFORM}] - Ruby(#{RUBY_VERSION}) - Rio(#{RIO::VERSION})"
@@ -54,21 +52,25 @@
def run(options)
ms = RioTest::ModSuite.new("RIO")
options.keys.each do |opt|
case opt
+
when :std
require 'tc/all'
require 'alturi/tests'
require 'uriref/tests'
find_tests(ms)
ms.add(:URI,Alt)
ms.add(:URIRef)
+
when :http
require 'http/tests'
+ require 'lib/temp_server'
ms.add(:HTTP)
- #require 'lib/temp_server.rb'
- #TempServer.new.run('runhttptests.rb')
+ runtestpath = File.expand_path('runhttptests.rb')
+ TempServer.run(runtestpath)
+
when :ftp
require 'ftp/tests'
ms.add(:FTP)
end
end