[Groonga-commit] groonga/groonga at 7f7992e [master] test unit: support /dev/shm as a tmpfs candidate

Back to archive index

Kouhei Sutou null+****@clear*****
Tue May 13 11:56:31 JST 2014


Kouhei Sutou	2014-05-13 11:56:31 +0900 (Tue, 13 May 2014)

  New Revision: 7f7992ecf9667eed6c45ba7d38d4662fa237fcb3
  https://github.com/groonga/groonga/commit/7f7992ecf9667eed6c45ba7d38d4662fa237fcb3

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

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

  Modified: test/unit/run-test.sh (+7 -5)
===================================================================
--- test/unit/run-test.sh    2014-05-13 11:54:20 +0900 (e0dfc75)
+++ test/unit/run-test.sh    2014-05-13 11:56:31 +0900 (43a9342)
@@ -72,11 +72,13 @@ case `uname` in
 	;;
 esac
 
-tmpfs=/run/shm
-if test -d $tmpfs -a -w $tmpfs; then
-    rm -rf "$BASE_DIR/tmp"
-    ln -s $tmpfs "$BASE_DIR/tmp"
-fi
+tmpfs_candidates="/dev/shm /run/shm"
+for tmpfs in $tmpfs_candidates; do
+    if test -d $tmpfs -a -w $tmpfs; then
+	rm -rf "$BASE_DIR/tmp"
+	ln -s $tmpfs "$BASE_DIR/tmp"
+    fi
+done
 
 no_test=1
 
-------------- next part --------------
HTML����������������������������...
下载 



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