Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Commit

Permalink
Imported Upstream version 1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
terceiro committed Sep 5, 2011
0 parents commit f25a37c
Show file tree
Hide file tree
Showing 9,517 changed files with 1,376,031 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
111 changes: 111 additions & 0 deletions .autotest
@@ -0,0 +1,111 @@
# -*- ruby -*-

require 'autotest/timestamp'

$f = true # quickstart
$q = ! $v # don't print all the files unless we run -v

ENV['PRETTY'] = "1"

Autotest.add_hook :run_command do |at|
system "rake"
end

class Autotest
alias :old_ruby :ruby
def ruby
ENV["RUBY"] || "bin/mspec ci -fu"
end

alias :old_consolidate_failures :consolidate_failures
def consolidate_failures(failed)
filters = new_hash_of_arrays

failed.each do |spec, failed_trace|
failed_trace.scan(/ at ([^:]+)/).each do |file,|
file.sub!(/^\.\//, '')
next unless file =~ /^spec/
test_files_for(file).each do |f|
filters[f] # mspec doesn't have real spec filtering yet
end
break
end
end

return filters
end

alias :old_make_test_cmd :make_test_cmd
def make_test_cmd files_to_test
# until bin/ci and bin/mspec allow for regexps, run the whole file again
classes = reorder(files_to_test).map { |k,v| k }.join(' ')
"PRETTY=1 #{ruby} #{classes} | #{unit_diff}"
end
end

Autotest.add_hook :initialize do |at|
at.order = :natural

at.sleep = 2

at.add_exception(/\.rbc$/)
at.add_exception(/shotgun\/external_libs/)
at.add_exception(/README/)
at.add_exception(/spec.tags.critical.txt/)

at.find_directories.clear
at.find_directories.push(
'kernel',
'lib',
'shotgun',
'spec/ruby/1.8/core',
'spec/ruby/1.8/language',
'spec/ruby/1.8/library',
'spec/compiler',
'spec/parser',
'spec/tags'
)

at.failed_results_re = /^\d+\)\n([^\n]*)(?:FAILED|ERROR)?\n(.*?)\n\n/m
at.completed_re = /\Z/ # FIX: some sort of summary line at the end?

at.add_mapping %r%^spec/tags/(.*)_tags.txt$% do |_, m|
Dir["spec/#{m[1]}_spec.rb"]
end

at.add_mapping %r%^spec/.*([^/]+)/(shared|fixtures)/% do |_, m|
at.files_matching(%r%^spec/.*#{m[1]}/.*_spec.rb$%)
end

at.add_mapping %r%^spec/spec_helper.rb% do
at.files_matching(%r%^spec/.*_spec.rb$%)
end

at.add_mapping %r%^spec/compiler/spec_helper.rb% do
at.files_matching(%r%^spec/compiler/.*_spec.rb$%)
end

at.add_mapping %r%^spec/parser/sexp_expectations.rb% do
at.files_matching(%r%^spec/parser/.*_spec.rb$%)
end

at.add_mapping %r%^spec/.*_spec\.rb$% do |filename, _|
filename
end

at.add_mapping %r%^kernel/(.*)/(.*).rb$% do |_, m|
Dir["spec/#{m[1]}/#{m[2]}/*_spec.rb"]
end

at.add_mapping %r%^compiler/(bytecode|sexp|translation)/*.rb$% do |_, m|
Dir["spec/compiler/rubinius/*_spec.rb"] + Dir["spec/language/*_spec.rb"]
end

at.add_mapping %r%^lib/(.*).rb% do |_, m|
Dir["spec/library/#{m[1]}*_spec.rb"]
end

at.add_mapping %r%^shotgun% do |_, m|
at.files_matching(/^spec.*_spec\.rb/)
end
end
35 changes: 35 additions & 0 deletions .gdbinit
@@ -0,0 +1,35 @@
define rbt
p __printbt__()
end

define rp
p __show__($arg0)
end

define rps
p __show_simple__($arg0)
end

define rph
p __show_subtend__($arg0)
end

define validate
p rubinius::VM::current_state()->om->validate_object($arg0)
end

define refs
p print_references($arg0)
end

define memstat
p x_memstat()
end

define snapshot
p x_snapshot()
end

define print_snapshot
p x_print_snapshot()
end
113 changes: 113 additions & 0 deletions .gitignore
@@ -0,0 +1,113 @@
artifacts/
*.a
*.bundle
*.dSYM
*.dot
*.dylib
*.la
*.lo
*.o
*.rbc
.rbx
*.so
*.swp
*~
.*.d
.DS_Store
.\#*
.dotest
.gdb_history
.glimpse*
.hg
.hgignore
.libs
.spec/bm.yml
.depends.mf
/rubinius_tasks.dot
/nbproject
.project
CI-specs
COMMIT
TAGS
\#*
autom4te.cache
code-cache
coverage
config.rb
cscope.files
cscope.out
configure.log
rakelib/ryan.rake
runtime
scratch
stamp-h1
stats
tmp
tmtags
/tags
/lib/site
/share
/work

# ignore gems and commands installed by gems
/gems/*
/bin/*

# don't ignore our commands
!/bin/bm
!/bin/bm-automatic
!/bin/cmspec
!/bin/contributors.rb
!/bin/contributors.sh
!/bin/laces.rb
!/bin/mkspec
!/bin/mspec
!/bin/prof.rb
!/bin/rbx

# don't ignore spec/tags
!spec/tags

/vm/log
/vm/.deps

/kernel/signature.rb

/lib/compiler/opcodes.rb
/lib/compiler/generator_methods.rb

vm/capi/include/rbx_config.h

/lib/etc.rb
/lib/kernel.rb
/lib/zlib.rb
/lib/fcntl.rb
/lib/syslog.rb
/lib/readline.rb

/lib/ext/melbourne/Makefile

# LLVM and its Makefiles
vm/external_libs/llvm/Makefile
vm/external_libs/llvm/Makefile.common
vm/external_libs/llvm/bindings/Makefile
vm/external_libs/llvm/bindings/ocaml/Makefile.ocaml
vm/external_libs/llvm/examples/Makefile
vm/external_libs/llvm/lib/Makefile
vm/external_libs/llvm/projects/Makefile
vm/external_libs/llvm/projects/sample/Makefile
vm/external_libs/llvm/projects/sample/lib/Makefile
vm/external_libs/llvm/projects/sample/lib/sample/Makefile
vm/external_libs/llvm/projects/sample/tools/Makefile
vm/external_libs/llvm/projects/sample/tools/sample/Makefile
vm/external_libs/llvm/runtime/Makefile
vm/external_libs/llvm/test/Makefile
vm/external_libs/llvm/test/Makefile.tests
vm/external_libs/llvm/tools/Makefile
vm/external_libs/llvm/utils/Makefile

# Generated documentation
doc/generated/vm
web/doc/*/*.bak
web/doc/*/*.new

1 change: 1 addition & 0 deletions .rvm/2.0.0
@@ -0,0 +1 @@
hydra

0 comments on commit f25a37c

Please sign in to comment.