1#**************************************************************************** 2# Copyright (c) 2001-2014 3# 4# This file is part of the QuickFIX FIX Engine 5# 6# This file may be distributed under the terms of the quickfixengine.org 7# license as defined by quickfixengine.org and appearing in the file 8# LICENSE included in the packaging of this file. 9# 10# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12# 13# See http://www.quickfixengine.org/LICENSE for licensing information. 14# 15# Contact ask@quickfixengine.org if any conditions of this licensing are 16# not clear to you. 17#**************************************************************************** 18 19def Object.is_testing=(b) 20 @is_testing = b 21end 22 23def Object.is_testing 24 return @is_testing 25end 26 27Object.is_testing = true 28 29require 'runit/cui/testrunner' 30require 'ReflectorTestCase' 31require 'FixParserTestCase' 32require 'SocketServerTestCase' 33#require 'ReflectorServerTestCase' 34require 'ReflectorClientTestCase' 35require 'ComparatorTestCase' 36 37class << RUNIT::TestCase 38 def port=(p) 39 @port = p 40 end 41 42 def port 43 return @port 44 end 45end 46 47if ARGV[0] == nil then 48 RUNIT::TestCase.port = 5001 49 print "port: ", RUNIT::TestCase.port, "\n" 50else 51 RUNIT::TestCase.port = ARGV[0] 52 print "port: ", RUNIT::TestCase.port, "\n" 53end 54 55RUNIT::CUI::TestRunner.run(ReflectorTestCase.suite) 56RUNIT::CUI::TestRunner.run(FixParserTestCase.suite) 57RUNIT::CUI::TestRunner.run(SocketServerTestCase.suite) 58#RUNIT::CUI::TestRunner.run(ReflectorClientTestCase.suite) 59RUNIT::CUI::TestRunner.run(ComparatorTestCase.suite) 60#RUNIT::CUI::TestRunner.run(ReflectorServerTestCase.suite) 61