Permalink
Browse files

fix test to use a file task for building native libs

  • Loading branch information...
1 parent ac24573 commit 25fde47ac79bd834f65e69ff7626edfff4154a85 @ninjudd committed Aug 31, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 Rakefile
View
@@ -59,12 +59,14 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-namespace :test do
+namespace :test => 'lib/memcache/native_server.o' do
Rake::TestTask.new(:native) do |t|
- `cd ext && make && cp native_server.bundle native_server.o ../lib/memcache/`
t.libs << 'test'
t.pattern = 'test/memcache_*native_server_test.rb'
t.verbose
end
end
+file 'lib/memcache/native_server.o' do
+ `cd ext && ruby extconf.rb && make && cp native_server.bundle native_server.o ../lib/memcache/`
+end

0 comments on commit 25fde47

Please sign in to comment.