bsdcontrol.rb/Rakefile.rb

24 lines
491 B
Ruby
Raw Normal View History

2024-03-01 02:29:43 +01:00
require "bundler/setup"
require "rake/extensiontask"
2024-03-20 21:28:59 +01:00
Rake::ExtensionTask.new("bsdcontrol.rb")
2024-03-01 02:29:43 +01:00
task default: %w[clobber compile test]
2024-03-07 05:34:34 +01:00
desc "Run C linter"
namespace :clang do
task :format do
2024-03-20 21:28:59 +01:00
sh "clang-format -style=file:.clang-format -i ext/bsdcontrol.rb/*.c"
end
2024-03-07 05:34:34 +01:00
end
2024-03-08 00:27:20 +01:00
namespace :test do
desc "Run unprivileged tests"
task :unprivileged do
sh "./bin/run-unprivileged-tests"
end
desc "Run superuser tests"
task :superuser do
sh "./bin/run-superuser-tests"
end
end