From 11d4c607c5def4855aeefc9b9bfedc7ee48340cb Mon Sep 17 00:00:00 2001 From: Afonso Oliveira Date: Fri, 27 Dec 2024 11:35:46 +0000 Subject: [PATCH] Add LLVM test to the Rakefile Signed-off-by: Afonso Oliveira --- Rakefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Rakefile b/Rakefile index a0358f82f..f365e4cda 100644 --- a/Rakefile +++ b/Rakefile @@ -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) @@ -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