New tasks to install/update msf updated default task to install/update MSF before running unit tests
20 lines
399 B
Plaintext
20 lines
399 B
Plaintext
desc "Run quick unit tests"
|
|
task :quick_unit_tests do
|
|
sh "cd test/unit/;ruby ts_beef.rb"
|
|
end
|
|
|
|
desc "Run all unit tests"
|
|
task :all_unit_tests => ["msf_install"] do
|
|
sh "cd test/unit/;ruby ts_beef.rb"
|
|
end
|
|
|
|
task :msf_install do
|
|
sh "cd test;svn co https://www.metasploit.com/svn/framework3/trunk/ msf"
|
|
end
|
|
|
|
task :msf_update do
|
|
sh "cd test/msf;svn update"
|
|
end
|
|
|
|
task :default => ["all_unit_tests"]
|