forked from ruby-prof/ruby-prof
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various fixes to make testing easier:
* Support for 1.8.7 and 1.9.* load paths * Add 1.9 encodings to each file * Load the shared library from local lib directory instead of installed gem - makes testing much quicker/easier. * Centralize path management for tests in test_helper. * Adopt the lib/1.8 and lib/1.9 standard for fat gems for Windows.
- Loading branch information
Charlie Savage
committed
Sep 5, 2011
1 parent
364ea80
commit 8b80da8
Showing
25 changed files
with
98 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# encoding: UTF-8 | ||
|
||
# To make testing/debugging easier, test within this source tree versus an installed gem | ||
|
||
dir = File.dirname(__FILE__) | ||
root = File.expand_path(File.join(dir, '..')) | ||
lib = File.expand_path(File.join(root, 'lib')) | ||
ext = File.expand_path(File.join(root, 'ext', 'ruby_prof')) | ||
|
||
$LOAD_PATH << lib | ||
$LOAD_PATH << ext | ||
|
||
require 'ruby-prof' | ||
require 'test/unit' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,26 @@ | ||
begin | ||
require 'rubygems' | ||
require 'redgreen' | ||
rescue LoadError | ||
end | ||
require './test_helper' | ||
|
||
require 'test/unit' | ||
|
||
require 'aggregate_test' | ||
require 'basic_test' | ||
require 'duplicate_names_test' | ||
require 'exceptions_test' | ||
require 'line_number_test' | ||
require 'measurement_test' | ||
require 'module_test' | ||
require 'no_method_class_test' | ||
require 'prime_test' | ||
require 'printers_test' | ||
require 'recursive_test' | ||
require 'singleton_test' | ||
require 'stack_test' | ||
require 'start_stop_test' | ||
require 'thread_test' | ||
require 'unique_call_path_test' | ||
require 'stack_printer_test' | ||
require 'multi_printer_test' | ||
require 'method_elimination_test' | ||
require './aggregate_test' | ||
require './basic_test' | ||
require './duplicate_names_test' | ||
require './exceptions_test' | ||
require './line_number_test' | ||
require './measurement_test' | ||
require './module_test' | ||
require './no_method_class_test' | ||
require './prime_test' | ||
require './printers_test' | ||
require './recursive_test' | ||
require './singleton_test' | ||
require './stack_test' | ||
require './start_stop_test' | ||
require './thread_test' | ||
require './unique_call_path_test' | ||
require './stack_printer_test' | ||
require './multi_printer_test' | ||
require './method_elimination_test' | ||
|
||
# Can't use this one here cause it breaks | ||
# the rest of the unit tets (Ruby Prof gets | ||
# started twice). | ||
#require 'profile_unit_test' | ||
#require './profile_unit_test' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters