Permalink
Browse files

Make tests pass on other OSs. Seperate integration tests

git-svn-id: http://mkrf.rubyforge.org/svn/trunk@33 6e48df83-f314-0410-b1e7-e69642b30866
  • Loading branch information...
1 parent 8885b41 commit 6ace065caaedd131f5573258a881b63a41277e79 kevinclark committed Sep 19, 2006
View
@@ -24,7 +24,14 @@ namespace :test do
desc "Run basic tests"
Rake::TestTask.new("units") { |t|
- t.pattern = 'test/test_*.rb'
+ t.pattern = 'test/unit/test_*.rb'
+ t.verbose = true
+ t.warning = true
+ }
+
+ desc "Run integration tests"
+ Rake::TestTask.new("integration") { |t|
+ t.pattern = 'test/integration/test_*.rb'
t.verbose = true
t.warning = true
}
View
1 TODO
@@ -2,7 +2,6 @@
* command-line configuration options
BUGS
-* Fix libpath (shouldn't default to /usr/local/lib)
From Tim Hunter:
@@ -1,12 +1,12 @@
-require File.dirname(__FILE__) + '/abstract_unit'
+require File.dirname(__FILE__) + '/../abstract_unit'
class TestSampleProjects < Test::Unit::TestCase
- SAMPLES_DIR = File.dirname(__FILE__) + '/sample_files'
+ SAMPLES_DIR = File.dirname(__FILE__) + '/../sample_files'
SAMPLE_LIBS = {
- :trivial => '/libtrivial/libtrivial.bundle',
- :syck => '/syck-0.55/ext/ruby/ext/syck/syck.bundle',
- :libxml => '/libxml-ruby-0.3.8/ext/xml/libxml_so.bundle'
+ :trivial => "/libtrivial/libtrivial.#{Config::CONFIG['DLEXT']}",
+ :syck => "/syck-0.55/ext/ruby/ext/syck/syck.#{Config::CONFIG['DLEXT']}",
+ :libxml => "/libxml-ruby-0.3.8/ext/xml/libxml_so.#{Config::CONFIG['DLEXT']}"
}
# Set to true for full command line output
@@ -1,9 +1,9 @@
-require File.dirname(__FILE__) + '/abstract_unit'
+require File.dirname(__FILE__) + '/../abstract_unit'
class TestAvailability < Test::Unit::TestCase
def setup
- @avail = Mkrf::Availability.new(:includes => File.join(File.dirname(__FILE__), 'fixtures'))
+ @avail = Mkrf::Availability.new(:includes => File.join(File.dirname(__FILE__), '..', 'fixtures'))
end
def teardown
@@ -46,7 +46,7 @@ def test_has_header_should_work_with_basic_headers
def test_has_header_should_check_many_paths
assert !@avail.has_header?('header_down_a_directory.h')
- assert @avail.has_header?('header_down_a_directory.h', File.join(File.dirname(__FILE__), 'fixtures', 'down_a_directory'))
+ assert @avail.has_header?('header_down_a_directory.h', File.join(File.dirname(__FILE__), '..', 'fixtures', 'down_a_directory'))
end
def test_include_header
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/abstract_unit'
+require File.dirname(__FILE__) + '/../abstract_unit'
# stubb this out so we don't overwrite our test rakefile
module Mkrf

0 comments on commit 6ace065

Please sign in to comment.