Skip to content

Commit

Permalink
dev: add "test:lldb" rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Mar 7, 2021
1 parent fb10fe5 commit a0c372c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions rakelib/test.rake
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ class GdbTestTask < ValgrindTestTask
end
end

class LldbTestTask < ValgrindTestTask
def ruby(*args, **options, &block)
command = "lldb #{RUBY} -- #{args.join(' ')}"
sh(command, **options, &block)
end
end

def nokogiri_test_task_configuration(t)
t.libs << "test"
t.test_files = FileList["test/**/test_*.rb"]
Expand All @@ -82,4 +89,8 @@ namespace "test" do
GdbTestTask.new("gdb") do |t|
nokogiri_test_task_configuration(t)
end

LldbTestTask.new("lldb") do |t|
nokogiri_test_task_configuration(t)
end
end

0 comments on commit a0c372c

Please sign in to comment.