From e230c58b236ad1bae07d0e3cd430e6b87415d3ed Mon Sep 17 00:00:00 2001 From: Sylvain Date: Sun, 20 Aug 2023 22:02:09 -0300 Subject: [PATCH] feat: run the test suite in compressed and uncompressed modes --- Rakefile | 11 +++++++++-- test/test_compressed.rb | 3 +++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 test/test_compressed.rb diff --git a/Rakefile b/Rakefile index 633e5d7..8d5903e 100644 --- a/Rakefile +++ b/Rakefile @@ -3,13 +3,20 @@ require "bundler/gem_tasks" require "rake/testtask" -Rake::TestTask.new("test:lib") do |t| +Rake::TestTask.new("test:lib:uncompressed") do |t| t.libs << "test" t.libs << "lib" t.test_files = FileList["test/**/*_test.rb"] t.warning = false end -task "test" => "test:lib" +Rake::TestTask.new("test:lib:compressed") do |t| + t.libs << "test" + t.libs << "lib" + t.test_files = FileList["test/**/*_test.rb", "test/test_compressed.rb"] + t.warning = false +end +task "test" => "test:lib:compressed" +task "test" => "test:lib:uncompressed" task :default diff --git a/test/test_compressed.rb b/test/test_compressed.rb new file mode 100644 index 0000000..16fabc6 --- /dev/null +++ b/test/test_compressed.rb @@ -0,0 +1,3 @@ +# frozen_string_literal: true + +ENV["SYSKIT_LOG_TEST_COMPRESS"] = "1"