Skip to content

Commit

Permalink
Add LLVM test to the Rakefile
Browse files Browse the repository at this point in the history
Signed-off-by: Afonso Oliveira <[email protected]>
  • Loading branch information
AFOliveira committed Dec 27, 2024
1 parent 3178538 commit 11d4c60
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,22 @@ namespace :serve do
end

namespace :test do

# "Run the cross-validation against LLVM"
task :llvm do
venv_python = "#{$root}/.home/.venv/bin/python3"
if File.exist?(venv_python)
begin
sh "#{venv_python} -m pytest ext/auto-inst/test_parsing.py -v"
rescue => e
raise unless e.message.include?("status (5)") #dont fail on skipped tests
end
else
puts "\nNo Python virtual environment found."
puts "Tests will be skipped.\n"
end
end

# "Run the IDL compiler test suite"
task :idl_compiler do
t = Minitest::TestTask.new(:lib_test)
Expand Down Expand Up @@ -289,6 +305,7 @@ namespace :test do
These are basic but fast-running tests to check the database and tools
DESC
task :smoke do
Rake::Task["test:llvm"].invoke
Rake::Task["test:idl_compiler"].invoke
Rake::Task["test:lib"].invoke
Rake::Task["test:schema"].invoke
Expand Down

0 comments on commit 11d4c60

Please sign in to comment.