2005-07-10 09:15:20 +02:00
|
|
|
#!/usr/bin/ruby -I..
|
2005-06-03 06:51:51 +02:00
|
|
|
|
|
|
|
require 'test/unit'
|
2005-07-09 23:18:49 +02:00
|
|
|
require 'rex'
|
|
|
|
|
|
|
|
require 'rex/exceptions.rb.ut'
|
|
|
|
require 'rex/transformer.rb.ut'
|
2005-07-10 09:15:20 +02:00
|
|
|
require 'rex/text.rb.ut'
|
2005-09-24 19:27:22 +02:00
|
|
|
require 'rex/evasion.rb.ut'
|
2005-07-09 23:18:49 +02:00
|
|
|
|
|
|
|
require 'rex/encoding/xor/generic.rb.ut'
|
|
|
|
require 'rex/encoding/xor/byte.rb.ut'
|
|
|
|
require 'rex/encoding/xor/word.rb.ut'
|
2005-07-10 00:02:57 +02:00
|
|
|
require 'rex/encoding/xor/dword.rb.ut'
|
|
|
|
require 'rex/encoding/xor/dword_additive.rb.ut'
|
2005-07-09 23:18:49 +02: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-07-10 09:15:20 +02:00
|
|
|
require 'rex/parser/arguments.rb.ut'
|
|
|
|
|
2005-07-10 10:33:29 +02:00
|
|
|
require 'rex/ui/text/color.rb.ut'
|
2005-07-09 23:18:49 +02:00
|
|
|
require 'rex/ui/text/table.rb.ut'
|
2005-07-07 16:20:54 +02:00
|
|
|
|
2005-09-26 01:56:11 +02:00
|
|
|
require 'rex/exploitation/egghunter.rb.ut'
|
2005-09-24 19:27:22 +02:00
|
|
|
require 'rex/exploitation/seh.rb.ut'
|
|
|
|
|
2005-06-03 06:51:51 +02:00
|
|
|
class Rex::TestSuite
|
|
|
|
def self.suite
|
2005-06-04 09:51:59 +02:00
|
|
|
suite = Test::Unit::TestSuite.new("Rex")
|
2005-06-03 06:51:51 +02:00
|
|
|
|
2005-06-04 20:32:51 +02:00
|
|
|
# General
|
2005-06-04 21:45:47 +02:00
|
|
|
suite << Rex::Exceptions::UnitTest.suite
|
2005-06-04 20:32:51 +02:00
|
|
|
suite << Rex::Transformer::UnitTest.suite
|
2005-07-10 09:15:20 +02:00
|
|
|
suite << Rex::Text::UnitTest.suite
|
2005-09-24 19:27:22 +02:00
|
|
|
suite << Rex::Evasion::UnitTest.suite
|
2005-06-04 20:32:51 +02:00
|
|
|
|
2005-06-04 10:05:51 +02: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-10 00:02:57 +02:00
|
|
|
suite << Rex::Encoding::Xor::Dword::UnitTest.suite
|
|
|
|
suite << Rex::Encoding::Xor::DwordAdditive::UnitTest.suite
|
2005-06-04 10:05:51 +02:00
|
|
|
|
|
|
|
# Sockets
|
2005-06-03 06:51:51 +02:00
|
|
|
suite << Rex::Socket::UnitTest.suite
|
|
|
|
suite << Rex::Socket::Parameters::UnitTest.suite
|
2005-06-03 07:21:49 +02:00
|
|
|
suite << Rex::Socket::Tcp::UnitTest.suite
|
2005-09-27 07:31:48 +02:00
|
|
|
suite << Rex::Socket::SslTcp::UnitTest.suite
|
2005-06-03 09:13:15 +02:00
|
|
|
suite << Rex::Socket::TcpServer::UnitTest.suite
|
2005-06-04 08:19:42 +02:00
|
|
|
suite << Rex::Socket::Udp::UnitTest.suite
|
2005-06-03 06:51:51 +02:00
|
|
|
suite << Rex::Socket::Comm::Local::UnitTest.suite
|
|
|
|
|
2005-07-10 09:15:20 +02:00
|
|
|
# Parsers
|
|
|
|
suite << Rex::Parser::Arguments::UnitTest.suite
|
|
|
|
|
2005-07-07 16:20:54 +02:00
|
|
|
# Ui
|
2005-07-10 10:33:29 +02:00
|
|
|
suite << Rex::Ui::Color::Table::UnitTest.suite
|
2005-07-07 16:20:54 +02:00
|
|
|
suite << Rex::Ui::Text::Table::UnitTest.suite
|
|
|
|
|
2005-09-24 19:27:22 +02:00
|
|
|
# Exploitation
|
2005-09-26 01:56:11 +02:00
|
|
|
suite << Rex::Exploitation::Egghunter::UnitTest.suite
|
2005-09-24 19:27:22 +02:00
|
|
|
suite << Rex::Exploitation::Seh::UnitTest.suite
|
|
|
|
|
2005-06-03 06:51:51 +02:00
|
|
|
return suite;
|
|
|
|
end
|
|
|
|
end
|