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-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-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-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-06-04 18:32:51 +00:00
|
|
|
|
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-06-05 04:27:57 +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-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-06-03 04:51:51 +00:00
|
|
|
return suite;
|
|
|
|
end
|
|
|
|
end
|