2005-07-10 07:15:20 +00:00
|
|
|
#!/usr/bin/ruby -I..
|
2005-06-03 04:51:51 +00:00
|
|
|
|
|
|
|
require 'test/unit'
|
2005-07-09 21:18:49 +00:00
|
|
|
require 'rex'
|
|
|
|
|
|
|
|
require 'rex/exceptions.rb.ut'
|
|
|
|
require 'rex/transformer.rb.ut'
|
2005-07-10 07:15:20 +00:00
|
|
|
require 'rex/text.rb.ut'
|
2005-09-24 17:27:22 +00:00
|
|
|
require 'rex/evasion.rb.ut'
|
2005-11-02 14:18:50 +00:00
|
|
|
require 'rex/file.rb.ut'
|
2005-07-09 21:18:49 +00:00
|
|
|
|
2005-10-01 05:55:15 +00:00
|
|
|
require 'rex/arch/x86'
|
|
|
|
|
2005-07-09 21:18:49 +00:00
|
|
|
require 'rex/encoding/xor/generic.rb.ut'
|
|
|
|
require 'rex/encoding/xor/byte.rb.ut'
|
|
|
|
require 'rex/encoding/xor/word.rb.ut'
|
2005-07-09 22:02:57 +00:00
|
|
|
require 'rex/encoding/xor/dword.rb.ut'
|
|
|
|
require 'rex/encoding/xor/dword_additive.rb.ut'
|
2005-07-09 21:18:49 +00:00
|
|
|
|
|
|
|
require 'rex/socket.rb.ut'
|
|
|
|
require 'rex/socket/tcp.rb.ut'
|
|
|
|
require 'rex/socket/ssl_tcp.rb.ut'
|
|
|
|
require 'rex/socket/tcp_server.rb.ut'
|
|
|
|
require 'rex/socket/udp.rb.ut'
|
|
|
|
require 'rex/socket/parameters.rb.ut'
|
|
|
|
require 'rex/socket/comm/local.rb.ut'
|
2005-09-30 05:44:37 +00:00
|
|
|
require 'rex/socket/switch_board.rb.ut'
|
2005-10-27 04:14:45 +00:00
|
|
|
require 'rex/socket/subnet_walker.rb.ut'
|
2005-07-09 21:18:49 +00:00
|
|
|
|
2005-11-24 02:02:10 +00:00
|
|
|
require 'rex/proto/http'
|
|
|
|
|
2005-07-10 07:15:20 +00:00
|
|
|
require 'rex/parser/arguments.rb.ut'
|
|
|
|
|
2005-07-10 08:33:29 +00:00
|
|
|
require 'rex/ui/text/color.rb.ut'
|
2005-07-09 21:18:49 +00:00
|
|
|
require 'rex/ui/text/table.rb.ut'
|
2005-07-07 14:20:54 +00:00
|
|
|
|
2005-09-25 23:56:11 +00:00
|
|
|
require 'rex/exploitation/egghunter.rb.ut'
|
2005-09-24 17:27:22 +00:00
|
|
|
require 'rex/exploitation/seh.rb.ut'
|
|
|
|
|
2005-06-03 04:51:51 +00:00
|
|
|
class Rex::TestSuite
|
|
|
|
def self.suite
|
2005-06-04 07:51:59 +00:00
|
|
|
suite = Test::Unit::TestSuite.new("Rex")
|
2005-06-03 04:51:51 +00:00
|
|
|
|
2005-06-04 18:32:51 +00:00
|
|
|
# General
|
2005-06-04 19:45:47 +00:00
|
|
|
suite << Rex::Exceptions::UnitTest.suite
|
2005-06-04 18:32:51 +00:00
|
|
|
suite << Rex::Transformer::UnitTest.suite
|
2005-07-10 07:15:20 +00:00
|
|
|
suite << Rex::Text::UnitTest.suite
|
2005-09-24 17:27:22 +00:00
|
|
|
suite << Rex::Evasion::UnitTest.suite
|
2005-11-02 14:18:50 +00:00
|
|
|
suite << Rex::File::UnitTest.suite
|
2005-06-04 18:32:51 +00:00
|
|
|
|
2005-10-01 05:55:15 +00:00
|
|
|
# Arch
|
|
|
|
suite << Rex::Arch::X86::UnitTest.suite
|
|
|
|
|
2005-06-04 08:05:51 +00:00
|
|
|
# Encoding
|
|
|
|
suite << Rex::Encoding::Xor::Generic::UnitTest.suite
|
|
|
|
suite << Rex::Encoding::Xor::Byte::UnitTest.suite
|
|
|
|
suite << Rex::Encoding::Xor::Word::UnitTest.suite
|
2005-07-09 22:02:57 +00:00
|
|
|
suite << Rex::Encoding::Xor::Dword::UnitTest.suite
|
|
|
|
suite << Rex::Encoding::Xor::DwordAdditive::UnitTest.suite
|
2005-06-04 08:05:51 +00:00
|
|
|
|
|
|
|
# Sockets
|
2005-06-03 04:51:51 +00:00
|
|
|
suite << Rex::Socket::UnitTest.suite
|
|
|
|
suite << Rex::Socket::Parameters::UnitTest.suite
|
2005-06-03 05:21:49 +00:00
|
|
|
suite << Rex::Socket::Tcp::UnitTest.suite
|
2005-09-27 05:31:48 +00:00
|
|
|
suite << Rex::Socket::SslTcp::UnitTest.suite
|
2005-06-03 07:13:15 +00:00
|
|
|
suite << Rex::Socket::TcpServer::UnitTest.suite
|
2005-06-04 06:19:42 +00:00
|
|
|
suite << Rex::Socket::Udp::UnitTest.suite
|
2005-06-03 04:51:51 +00:00
|
|
|
suite << Rex::Socket::Comm::Local::UnitTest.suite
|
2005-09-30 05:44:37 +00:00
|
|
|
suite << Rex::Socket::SwitchBoard::UnitTest.suite
|
2005-10-27 04:14:45 +00:00
|
|
|
suite << Rex::Socket::SubnetWalker::UnitTest.suite
|
2005-06-03 04:51:51 +00:00
|
|
|
|
2005-11-24 02:02:10 +00:00
|
|
|
# Protocols
|
|
|
|
suite << Rex::Proto::Http::Client::UnitTest.suite
|
|
|
|
suite << Rex::Proto::Http::Server::UnitTest.suite
|
|
|
|
suite << Rex::Proto::Http::Packet::UnitTest.suite
|
|
|
|
suite << Rex::Proto::Http::Request::UnitTest.suite
|
|
|
|
suite << Rex::Proto::Http::Response::UnitTest.suite
|
|
|
|
suite << Rex::Proto::Http::Handler::Erb::UnitTest.suite
|
|
|
|
suite << Rex::Proto::Http::Handler::Proc::UnitTest.suite
|
|
|
|
|
2005-07-10 07:15:20 +00:00
|
|
|
# Parsers
|
|
|
|
suite << Rex::Parser::Arguments::UnitTest.suite
|
|
|
|
|
2005-07-07 14:20:54 +00:00
|
|
|
# Ui
|
2005-07-10 08:33:29 +00:00
|
|
|
suite << Rex::Ui::Color::Table::UnitTest.suite
|
2005-07-07 14:20:54 +00:00
|
|
|
suite << Rex::Ui::Text::Table::UnitTest.suite
|
|
|
|
|
2005-09-24 17:27:22 +00:00
|
|
|
# Exploitation
|
2005-09-25 23:56:11 +00:00
|
|
|
suite << Rex::Exploitation::Egghunter::UnitTest.suite
|
2005-09-24 17:27:22 +00:00
|
|
|
suite << Rex::Exploitation::Seh::UnitTest.suite
|
|
|
|
|
2005-06-03 04:51:51 +00:00
|
|
|
return suite;
|
|
|
|
end
|
|
|
|
end
|