adjust ruby load path
This commit is contained in:
parent
282c008aea
commit
98470f551f
3
Rakefile
3
Rakefile
|
@ -68,6 +68,7 @@ end
|
||||||
|
|
||||||
Rake::TestTask.new do |t|
|
Rake::TestTask.new do |t|
|
||||||
t.pattern = 'test/*_test.rb'
|
t.pattern = 'test/*_test.rb'
|
||||||
|
t.libs << "."
|
||||||
end
|
end
|
||||||
|
|
||||||
task :test => [:build] do
|
task :test => [:build] do
|
||||||
|
@ -90,7 +91,7 @@ desc 'Run sigar examples (test)'
|
||||||
task :examples => [:build] do
|
task :examples => [:build] do
|
||||||
in_ext()
|
in_ext()
|
||||||
Dir["examples/*.rb"].each do |file|
|
Dir["examples/*.rb"].each do |file|
|
||||||
cmd = "ruby #{file}"
|
cmd = "ruby -I. #{file}"
|
||||||
print cmd + "\n"
|
print cmd + "\n"
|
||||||
system(cmd)
|
system(cmd)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue