Skip to content

Commit

Permalink
test renames
Browse files Browse the repository at this point in the history
  • Loading branch information
rdp committed Nov 8, 2009
1 parent 72d07a0 commit 276c705
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 88 deletions.
3 changes: 2 additions & 1 deletion Rakefile
Expand Up @@ -9,10 +9,11 @@ begin
s.homepage = "http://ruby2cext.rubyforge.org/"
s.summary = "Ruby2CExtension is a Ruby to C extension translator/compiler/concretizer."
s.add_dependency("rubynode", ">= 0.1.1")
s.add_dependency("rogerdpack-sane")
s.add_dependency("sane")
s.files.exclude '**/temp*'
s.add_dependency("backports")
s.add_development_dependency("assert2")
s.add_development_dependency("backtracer")
end

rescue LoadError
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/bench.rb
@@ -1,4 +1,4 @@
# some benchmarks
# some benchmarks from ruby2cext that it used against itself

require "benchmark"

Expand Down
15 changes: 0 additions & 15 deletions benchmarks/tak.rb

This file was deleted.

52 changes: 5 additions & 47 deletions ruby2cext.gemspec
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |s|

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Dominik Bathon, rogerdpack"]
s.date = %q{2009-10-10}
s.date = %q{2009-11-07}
s.default_executable = %q{rb2cx}
s.email = %q{dbatml@gmx.de}
s.executables = ["rb2cx"]
Expand All @@ -25,6 +25,7 @@ Gem::Specification.new do |s|
"VERSION",
"benchmarks/bench.rb",
"benchmarks/concretize_test.rb",
"benchmarks/tak.rb",
"bin/rb2cx",
"doc/eval2c.txt",
"doc/gen_html.rb",
Expand Down Expand Up @@ -80,49 +81,6 @@ Gem::Specification.new do |s|
s.test_files = [
"test/causes_crash_all_opts.rb",
"test/eval2c/test_eval2c.rb",
"test/ruby2ruby-1.2.4/lib/ruby2ruby.rb",
"test/ruby2ruby-1.2.4/test/test_ruby2ruby.rb",
"test/temp_10.rb",
"test/temp_11.rb",
"test/temp_12.rb",
"test/temp_13.rb",
"test/temp_14.rb",
"test/temp_15.rb",
"test/temp_16.rb",
"test/temp_17.rb",
"test/temp_18.rb",
"test/temp_19.rb",
"test/temp_2.rb",
"test/temp_20.rb",
"test/temp_28.rb",
"test/temp_3.rb",
"test/temp_31.rb",
"test/temp_32.rb",
"test/temp_34.rb",
"test/temp_37.rb",
"test/temp_4.rb",
"test/temp_40.rb",
"test/temp_43.rb",
"test/temp_49.rb",
"test/temp_5.rb",
"test/temp_50.rb",
"test/temp_6.rb",
"test/temp_63.rb",
"test/temp_67.rb",
"test/temp_69.rb",
"test/temp_7.rb",
"test/temp_77.rb",
"test/temp_78.rb",
"test/temp_79.rb",
"test/temp_8.rb",
"test/temp_84.rb",
"test/temp_85.rb",
"test/temp_86.rb",
"test/temp_88.rb",
"test/temp_89.rb",
"test/temp_9.rb",
"test/temp_91.rb",
"test/temp_92.rb",
"test/test_all.rb",
"test/test_bootstrap.rb",
"test/test_concretize.rb",
Expand All @@ -138,18 +96,18 @@ Gem::Specification.new do |s|

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<rubynode>, [">= 0.1.1"])
s.add_runtime_dependency(%q<rogerdpack-sane>, [">= 0"])
s.add_runtime_dependency(%q<sane>, [">= 0"])
s.add_runtime_dependency(%q<backports>, [">= 0"])
s.add_development_dependency(%q<assert2>, [">= 0"])
else
s.add_dependency(%q<rubynode>, [">= 0.1.1"])
s.add_dependency(%q<rogerdpack-sane>, [">= 0"])
s.add_dependency(%q<sane>, [">= 0"])
s.add_dependency(%q<backports>, [">= 0"])
s.add_dependency(%q<assert2>, [">= 0"])
end
else
s.add_dependency(%q<rubynode>, [">= 0.1.1"])
s.add_dependency(%q<rogerdpack-sane>, [">= 0"])
s.add_dependency(%q<sane>, [">= 0"])
s.add_dependency(%q<backports>, [">= 0"])
s.add_dependency(%q<assert2>, [">= 0"])
end
Expand Down
2 changes: 2 additions & 0 deletions test/test_bootstrap.rb → test/bootstrap.rb
Expand Up @@ -4,3 +4,5 @@
require "../lib/ruby2cext/compiler"
require "../lib/ruby2cext/version"
require 'logger'
require 'assert2'
require 'benchmark'
14 changes: 3 additions & 11 deletions test/test_concretize.rb
@@ -1,14 +1,6 @@
require File.dirname(__FILE__) + '/test_bootstrap'
require 'assert2'
require 'benchmark'

at_exit {
if $!
puts "==== "
puts $!.backtrace.join("\n")
puts "===="
end
}
require File.dirname(__FILE__) + '/bootstrap'

require 'backtracer'

class F
def go; end
Expand Down
4 changes: 1 addition & 3 deletions test/test_concretize_all.rb
@@ -1,6 +1,4 @@
require File.dirname(__FILE__) + '/test_bootstrap'
require 'assert2'

require File.dirname(__FILE__) + '/bootstrap'

at_exit {
if $!
Expand Down
20 changes: 10 additions & 10 deletions test/test_all.rb → test/test_syntax.rb
@@ -1,12 +1,14 @@
require File.dirname(__FILE__) + '/test_bootstrap'
# just runs the compiler against some sample files in the test_files directory

require File.dirname(__FILE__) + '/bootstrap'
include Ruby2CExtension


dir = File.dirname(__FILE__)

dir = File.dirname(__FILE__)
Dir.glob(dir + '/test_files/*.{c,so,o}').each{|f| File.delete f} # cleanup

logger = Logger.new STDOUT


logger = Logger.new STDOUT

for file_name in Dir[dir + '/test_files/*.rb']
# TODO grab the normal ruby output, then grab the ruby2c output :)
logger = Logger.new STDOUT
Expand All @@ -19,7 +21,5 @@
include_paths = [], only_c = false, logger)
require dir + '/test_files/test.so'
raise "non worky" unless defined?(AliasTest) # should have loaded it in

require dir + '/test_concretize' # run this test, too

puts 'success'

puts 'success'

0 comments on commit 276c705

Please sign in to comment.