[Groonga-commit] groonga/grntest at 3d252b8 [master] Add Platform.windows?

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 26 13:57:01 JST 2016


Kouhei Sutou	2016-04-26 13:57:01 +0900 (Tue, 26 Apr 2016)

  New Revision: 3d252b86cb9b8a472b8fb26fc752fd2b51f8dac5
  https://github.com/groonga/grntest/commit/3d252b86cb9b8a472b8fb26fc752fd2b51f8dac5

  Message:
    Add Platform.windows?

  Added files:
    lib/grntest/platform.rb
  Modified files:
    lib/grntest/test-runner.rb

  Added: lib/grntest/platform.rb (+24 -0) 100644
===================================================================
--- /dev/null
+++ lib/grntest/platform.rb    2016-04-26 13:57:01 +0900 (f7bf54f)
@@ -0,0 +1,24 @@
+# Copyright (C) 2016  Kouhei Sutou <kou �� clear-code.com>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+module Grntest
+  module Platform
+    class << self
+      def windows?
+        /mswin|mingw|cygwin/ === RUBY_PLATFORM
+      end
+    end
+  end
+end

  Modified: lib/grntest/test-runner.rb (+1 -0)
===================================================================
--- lib/grntest/test-runner.rb    2016-04-26 13:43:07 +0900 (4a84370)
+++ lib/grntest/test-runner.rb    2016-04-26 13:57:01 +0900 (9735e84)
@@ -19,6 +19,7 @@ require "tempfile"
 
 require "json"
 
+require "grntest/platform"
 require "grntest/error"
 require "grntest/log-parser"
 require "grntest/executors"
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index