[Groonga-commit] ranguba/rroonga at d3b207c [master] test: prefer vendor/local/bin/groonga

Back to archive index
Kouhei Sutou null+****@clear*****
Sat May 11 06:59:32 JST 2019


Kouhei Sutou	2019-05-11 06:59:32 +0900 (Sat, 11 May 2019)

  Revision: d3b207cc74db3d0afa1ade7755951cfce783ac88
  https://github.com/ranguba/rroonga/commit/d3b207cc74db3d0afa1ade7755951cfce783ac88

  Message:
    test: prefer vendor/local/bin/groonga

  Modified files:
    test/test-remote.rb

  Modified: test/test-remote.rb (+7 -2)
===================================================================
--- test/test-remote.rb    2019-05-11 06:53:45 +0900 (1d8eaa33)
+++ test/test-remote.rb    2019-05-11 06:59:32 +0900 (7c70284a)
@@ -20,8 +20,13 @@ class RemoteTest < Test::Unit::TestCase
   def setup_remote_connection
     @process_id = nil
 
-    package_config = PKGConfig.package_config("groonga")
-    groonga = package_config.variable("groonga")
+    vendor_local_bin = File.join(__dir__, "..", "vendor", "local", "bin")
+    if File.exist?(vendor_local_bin)
+      groonga = File.join(vendor_locaL_bin, "groonga")
+    else
+      package_config = PKGConfig.package_config("groonga")
+      groonga = package_config.variable("groonga")
+    end
 
     @host = "127.0.0.1"
     @port = 12345
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190511/e62ad878/attachment.html>


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