Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

run extconf before make

  • Loading branch information...
commit 121813f5f1ac315c8e11046271f7db6de3091c0e 1 parent 9af551d
@mojombo authored
Showing with 6 additions and 4 deletions.
  1. +2 −2 Rakefile
  2. +4 −2 test/test_helper.rb
View
4 Rakefile
@@ -28,7 +28,7 @@ Rake::TestTask.new(:runtests) do |test|
end
task :make do
- Dir.chdir('ext/bert/c') { `make` }
+ Dir.chdir('ext/bert/c') { `ruby extconf.rb`; `make` }
end
task :clean do
@@ -50,7 +50,7 @@ task :test => :check_dependencies do
Process.waitpid(pid)
puts "\nRunning `make` to build extensions and rerunning decoder specs..."
- Dir.chdir('ext/bert/c') { `make` }
+ Dir.chdir('ext/bert/c') { `ruby extconf.rb`; `make` }
pid = fork do
exec 'rake runtests'
end
View
6 test/test_helper.rb
@@ -3,6 +3,8 @@
require 'shoulda'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
-$LOAD_PATH.unshift(File.dirname(__FILE__))
-require 'bert'
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'ext', 'bert', 'c'))
+
+load 'bert.rb'
+
puts "Using #{BERT::Decode.impl} implementation."
Please sign in to comment.
Something went wrong with that request. Please try again.