Add Rakefile to replace crew test and simplify unit testing. (#10453)

This commit is contained in:
Maximilian Downey Twiss
2024-09-11 23:28:59 +10:00
committed by GitHub
parent 39d9a951b0
commit 1fc45a2322
8 changed files with 28 additions and 44 deletions

24
Rakefile Normal file
View File

@@ -0,0 +1,24 @@
# The default action tests commands and libraries.
task default: %w[command_test lib_test]
# Command tests
task :command_test do
ruby 'tests/commands/const.rb'
ruby 'tests/commands/help.rb'
ruby 'tests/commands/list.rb'
ruby 'tests/commands/prop.rb'
ruby 'tests/commands/remove.rb'
ruby 'tests/commands/whatprovides.rb'
end
# Library tests
task :lib_test do
ruby 'tests/lib/docopt.rb'
ruby 'tests/lib/package_utils.rb'
end
# Package tests
task :package_test do
ruby 'tests/prop_test'
ruby 'tests/buildsystem_test'
end