[Groonga-commit] pgroonga/pgroonga at 0333362 [master] test: support Windows DLL name

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jan 4 00:46:38 JST 2017


Kouhei Sutou	2017-01-04 00:46:38 +0900 (Wed, 04 Jan 2017)

  New Revision: 03333621e3f26ccdd2836ac3fb1cc7130f80fb8b
  https://github.com/pgroonga/pgroonga/commit/03333621e3f26ccdd2836ac3fb1cc7130f80fb8b

  Message:
    test: support Windows DLL name

  Modified files:
    test/helpers/sandbox.rb

  Modified: test/helpers/sandbox.rb (+4 -1)
===================================================================
--- test/helpers/sandbox.rb    2017-01-04 00:25:21 +0900 (bedcdcb)
+++ test/helpers/sandbox.rb    2017-01-04 00:46:38 +0900 (107c4b9)
@@ -1,4 +1,5 @@
 require "fileutils"
+require "rbconfig"
 require "socket"
 require "stringio"
 
@@ -116,6 +117,8 @@ module Helpers
     end
 
     def setup_db
+      dll_extension = RbConfig::CONFIG["DLEXT"]
+
       @db_dir = File.join(@tmp_dir, "db")
       @socket_dir = File.join(@db_dir, "socket")
       @host = "127.0.0.1"
@@ -130,7 +133,7 @@ module Helpers
         conf.puts("listen_addresses = '#{@host}'")
         conf.puts("port = #{@port}")
         conf.puts("unix_socket_directories = '#{@socket_dir}'")
-        conf.puts("shared_preload_libraries = 'pgroonga-check.so'")
+        conf.puts("shared_preload_libraries = 'pgroonga-check.#{dll_extension}'")
         conf.puts("pgroonga.enable_wal = yes")
       end
     end
-------------- next part --------------
HTML����������������������������...
Télécharger 



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