[Groonga-commit] groonga/groonga at ebd9ff7 [master] test command: support /dev/shm as a tmpfs candidate

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Tue May 13 11:54:20 JST 2014


Kouhei Sutou	2014-05-13 11:54:20 +0900 (Tue, 13 May 2014)

  New Revision: ebd9ff732d6913f022f972c40fd205001e8d6b2a
  https://github.com/groonga/groonga/commit/ebd9ff732d6913f022f972c40fd205001e8d6b2a

  Message:
    test command: support /dev/shm as a tmpfs candidate

  Modified files:
    test/command/run-test.sh

  Modified: test/command/run-test.sh (+7 -5)
===================================================================
--- test/command/run-test.sh    2014-05-12 17:21:23 +0900 (5229124)
+++ test/command/run-test.sh    2014-05-13 11:54:20 +0900 (e157534)
@@ -124,11 +124,13 @@ if test "$have_targets" != "true"; then
     grntest_options=("${grntest_options[@]}" "${BASE_DIR}/suite")
 fi
 
-tmpfs=/run/shm
-if test -d $tmpfs -a -w $tmpfs; then
-    rm -rf "tmp"
-    ln -s $tmpfs "tmp"
-fi
+tmpfs_candidates=("/dev/shm" "/run/shm")
+for tmpfs in "${tmpfs_candidates[@]}"; do
+    if test -d $tmpfs -a -w $tmpfs; then
+	rm -rf "tmp"
+	ln -s $tmpfs "tmp"
+    fi
+done
 
 export TZ=Asia/Tokyo
 
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る