summaryrefslogtreecommitdiffstats
path: root/test/sys_req/dev_shm_size.sh
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2021-03-16 12:52:29 +0100
committerOle Tr�an <otroan@employees.org>2021-03-17 11:40:16 +0000
commiteb506becd038f081bc7ac340412d3685425bb8b4 (patch)
treeaf0139600f0a56b70b534d4bb11f26d20dc02a9f /test/sys_req/dev_shm_size.sh
parent850a90ee27f90949e37c8732923785d85cd36fab (diff)
tests: remove shm handling
Not used anymore with socket transport. Type: improvement Signed-off-by: Klement Sekera <ksekera@cisco.com> Change-Id: I7061048dee21ce02637e34f73fb9984bd241f7df
Diffstat (limited to 'test/sys_req/dev_shm_size.sh')
-rwxr-xr-xtest/sys_req/dev_shm_size.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/test/sys_req/dev_shm_size.sh b/test/sys_req/dev_shm_size.sh
deleted file mode 100755
index e1a1f2d5bd7..00000000000
--- a/test/sys_req/dev_shm_size.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-# this script verifies that /dev/shm is big enough for test purposes
-# 512MB seems to be enough with room to spare at the time of writing this test
-# (motivation for this check is the default docker /dev/shm size of 64M, which
-# was occasionally overrun when running the tests)
-req_min_size_megabytes=512
-
-cur_size=`df -BM --output=size /dev/shm | awk ' NR==2 { print $1 } ' | cut -f 1 -d 'M'`
-
-if test "$V" = "2"
-then
- echo -n "Checking /dev/shm size..."
-fi
-
-if test "$cur_size" -lt "$req_min_size_megabytes"
-then
- echo "/dev/shm size ${cur_size}M is too small, attempting to enlarge to ${req_min_size_megabytes}M."
- sudo mount -o remount /dev/shm -o size=512M
- cur_size=`df -BM --output=size /dev/shm | awk ' NR==2 { print $1 } ' | cut -f 1 -d 'M'`
- if test "$cur_size" -lt "$req_min_size_megabytes"
- then
- echo "Couldn't enlarge /dev/shm. Please enlarge it manually so that it's at least ${req_min_size_megabytes}M big."
- exit 1
- fi
- echo "/dev/shm successfully enlarged."
-elif test "$V" = "2"
-then
- echo "OK (current size: ${cur_size}M, required size: ${req_min_size_megabytes}M)"
-fi