Skip to content

Commit 6854404

Browse files
committed
Rakefile: Add test_fips task for convenience.
1 parent bdf060f commit 6854404

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,5 @@ jobs:
180180
# TODO Fix other tests, and run all the tests on FIPS module.
181181
- name: test on fips module
182182
run: |
183-
bundle exec rake debug &&
184-
ruby -I./lib -ropenssl \
185-
-e 'Dir.glob "./test/openssl/{test_fips.rb,test_pkey.rb}", &method(:require)'
183+
rake test_fips TESTOPTS="-v --no-show-detail-immediately"
186184
if: matrix.fips-enabled

Rakefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,22 @@ Rake::TestTask.new do |t|
1818
t.warning = true
1919
end
2020

21+
Rake::TestTask.new(:test_fips) do |t|
22+
t.libs << 'test/openssl'
23+
t.test_files = FileList[
24+
'test/openssl/test_fips.rb',
25+
'test/openssl/test_pkey.rb',
26+
]
27+
t.warning = true
28+
end
29+
2130
RDoc::Task.new do |rdoc|
2231
rdoc.main = "README.md"
2332
rdoc.rdoc_files.include("*.md", "lib/**/*.rb", "ext/**/*.c")
2433
end
2534

2635
task :test => [:compile, :debug]
36+
task :test_fips => [:compile, :debug]
2737

2838
# Print Ruby and compiler info for debugging purpose.
2939
task :debug_compiler do

0 commit comments

Comments
 (0)