Sha256: 55c4cbd611f2446c2f83e8e55af7d8d42111db87201c223485585d562bd9c8d8

Contents?: true

Size: 1.14 KB

Versions: 36

Compression:

Stored size: 1.14 KB

Contents

module OhlohScm::Parsers
	class CommandLineTest < OhlohScm::Test
		def test_cvs_from_file
			result = `#{File.dirname(__FILE__) + '/../../bin/ohlog'} --xml --cvs #{DATA_DIR + '/basic.rlog'}`
			assert_equal 0, $?
			assert_buffers_equal File.read(DATA_DIR + '/basic.ohlog'), result
		end

		def test_cvs_from_pipe
			result = `cat #{DATA_DIR + '/basic.rlog'} | #{File.dirname(__FILE__) + '/../../bin/ohlog'} --xml --cvs`
			assert_equal 0, $?
			assert_buffers_equal File.read(DATA_DIR + '/basic.ohlog'), result
		end

		def test_svn_from_file
			result = `#{File.dirname(__FILE__) + '/../../bin/ohlog'} --xml --svn #{DATA_DIR + '/simple.svn_log'}`
			assert_equal 0, $?
			assert_buffers_equal File.read(DATA_DIR + '/simple.ohlog'), result
		end

		def test_svn_xml_from_file
			result = `#{File.dirname(__FILE__) + '/../../bin/ohlog'} --xml --svn-xml #{DATA_DIR + '/simple.svn_xml_log'}`
			assert_equal 0, $?
			assert_buffers_equal File.read(DATA_DIR + '/simple.ohlog'), result
		end

		def test_hg_from_file
		end

		def test_help
			result = `#{File.dirname(__FILE__) + '/../../bin/ohlog'} -?`
			assert_equal 0, $?
			assert result =~ /Examples:/
		end
	end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
ohloh_scm-2.5.1 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.4.14 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.4.13 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.4.12 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.4.11 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.4.10 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.4.9 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.4.8 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.4.7 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.4.6 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.4.5 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.4.4 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.4.3 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.4.1 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.4.0 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.3.5 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.3.4 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.3.2 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.3.1 test/unit/ohlog_command_line_test.rb
ohloh_scm-2.3.0 test/unit/ohlog_command_line_test.rb