[Groonga-commit] groonga/groonga [master] test functional: use tmpfs

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 6日 (月) 23:05:48 JST


Kouhei Sutou	2012-08-06 23:05:48 +0900 (Mon, 06 Aug 2012)

  New Revision: 92a6d605a82ca290117336a214d9ca3965e8c169
  https://github.com/groonga/groonga/commit/92a6d605a82ca290117336a214d9ca3965e8c169

  Log:
    test functional: use tmpfs

  Modified files:
    .gitignore
    test/function/run-test.sh

  Modified: .gitignore (+1 -0)
===================================================================
--- .gitignore    2012-08-06 22:55:30 +0900 (7253023)
+++ .gitignore    2012-08-06 23:05:48 +0900 (6c783da)
@@ -125,3 +125,4 @@ cmake_install.cmake
 /test/unit/Gemfile.lock
 /test/function/grntest
 /*.tar.gz
+/tmp

  Modified: test/function/run-test.sh (+6 -0)
===================================================================
--- test/function/run-test.sh    2012-08-06 22:55:30 +0900 (7a15cc6)
+++ test/function/run-test.sh    2012-08-06 23:05:48 +0900 (c1d2c91)
@@ -84,6 +84,12 @@ if test "$have_targets" != "true"; then
     grntest_options=("${grntest_options[@]}" "${BASE_DIR}/suite")
 fi
 
+tmpfs=/dev/shm
+if test -e $tmpfs; then
+    rm -rf "tmp"
+    ln -s $tmpfs "tmp"
+fi
+
 $RUBY -I "$grntest_dir/lib" \
     "$grntest_dir/bin/grntest" \
     --groonga "$GROONGA" \
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Back to archive index