null+****@clear*****
null+****@clear*****
2010年 6月 25日 (金) 09:14:48 JST
Nobuyoshi Nakada 2010-06-25 00:14:48 +0000 (Fri, 25 Jun 2010) New Revision: df7e12fc2accee429183b15492c7a51dfb8b226a Log: merged test scripts for command line options. Removed files: test/unit/command/test-option-help.rb Renamed files: test/unit/command/test-option.rb (from test/unit/command/test-option-pid-file.rb) Deleted: test/unit/command/test-option-help.rb (+0 -34) 100644 =================================================================== --- test/unit/command/test-option-help.rb 2010-06-24 20:53:02 +0000 (410a106) +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2010 Nobuyoshi Nakada <nakad****@clear*****> -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License version 2.1 as published by the Free Software Foundation. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -class OptionHelpTest < Test::Unit::TestCase - include GroongaTestUtils - - # def setup - # setup_database_path - # end - - # def teardown - # teardown_database_path - # end - - def test_help_option - usage = run_groonga("--help") - assert_predicate($?, :success?) - assert_match(/\AUsage: groonga \[options\.\.\.\] \[dest\]$/, usage) - end -end Renamed: test/unit/command/test-option.rb (+7 -1) 86% =================================================================== --- test/unit/command/test-option-pid-file.rb 2010-06-24 20:53:02 +0000 (b3b156e) +++ test/unit/command/test-option.rb 2010-06-25 00:14:48 +0000 (9127be8) @@ -15,7 +15,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -class OptionPidFileTest < Test::Unit::TestCase +class OptionTest < Test::Unit::TestCase include GroongaTestUtils def setup @@ -41,4 +41,10 @@ class OptionPidFileTest < Test::Unit::TestCase end assert_path_not_exist(pid_file) end + + def test_help_option + usage = run_groonga("--help") + assert_predicate($?, :success?) + assert_match(/\AUsage: groonga \[options\.\.\.\] \[dest\]$/, usage) + end end