[Groonga-commit] ranguba/rroonga at aaa65fb [master] test: support uninstalled groonga-command and groonga-client

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Jan 31 14:07:17 JST 2015


Kouhei Sutou	2015-01-31 14:07:17 +0900 (Sat, 31 Jan 2015)

  New Revision: aaa65fba45ed19e9c257081b1052a3e67022d4ea
  https://github.com/ranguba/rroonga/commit/aaa65fba45ed19e9c257081b1052a3e67022d4ea

  Message:
    test: support uninstalled groonga-command and groonga-client

  Modified files:
    test/test-array.rb

  Modified: test/test-array.rb (+11 -0)
===================================================================
--- test/test-array.rb    2015-01-31 13:55:50 +0900 (075ce71)
+++ test/test-array.rb    2015-01-31 14:07:17 +0900 (c800253)
@@ -242,6 +242,17 @@ EXPECTED_OUTPUT
 $stdout.sync = true
 
 base_dir = #{base_dir.dump}
+
+groonga_command_dir = File.join(base_dir, "..", "groonga-command")
+if File.exist?(groonga_command_dir)
+  $LOAD_PATH.unshift(File.join(groonga_command_dir, "lib"))
+end
+
+groonga_client_dir = File.join(base_dir, "..", "groonga-client")
+if File.exist?(groonga_client_dir)
+  $LOAD_PATH.unshift(File.join(groonga_client_dir, "lib"))
+end
+
 ext_dir = File.join(base_dir, "ext", "groonga")
 lib_dir = File.join(base_dir, "lib")
 
-------------- next part --------------
HTML����������������������������...
Download 



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