]> sourceware.org Git - lvm2.git/commitdiff
test: Skip tests which require too much RAM
authorMarian Csontos <mcsontos@redhat.com>
Tue, 13 Mar 2018 12:41:33 +0000 (13:41 +0100)
committerMarian Csontos <mcsontos@redhat.com>
Tue, 13 Mar 2018 12:42:45 +0000 (13:42 +0100)
- Tests for RAID reshape under load require too much RAM

test/shell/lvconvert-raid-reshape-load.sh
test/shell/lvconvert-raid-reshape-stripes-load-fail.sh
test/shell/lvconvert-raid-reshape-stripes-load-reload.sh
test/shell/lvconvert-raid-reshape-stripes-load.sh

index d17b186188ff2c1a5f0a694eb6484672fdea1090..23046e5d83096d89721831a3eadb180c4b0ee0fc 100644 (file)
@@ -17,6 +17,9 @@ SKIP_WITH_LVMPOLLD=1
 
 # Test reshaping under io load
 
+# FIXME: This test requires 3GB in /dev/shm!
+test $(aux total_mem) -gt $((4096*1024)) || skip
+
 which mkfs.ext4 || skip
 aux have_raid 1 13 1 || skip
 
index 3fac9a4bac5d13842a9cb6367c51348d8147e285..e7066be43357bc530f420eedfef6be47fba5589d 100644 (file)
@@ -20,6 +20,9 @@ skip
 
 # Test reshaping under io load
 
+# FIXME: This test requires 3GB in /dev/shm!
+test $(aux total_mem) -gt $((4096*1024)) || skip
+
 which mkfs.ext4 || skip
 aux have_raid 1 13 1 || skip
 
index f0a71c389af8bc9bf5387390de2420c7f159d474..fc463bf846f8a6a9d00767fbe3b4bffb445a1be2 100644 (file)
@@ -17,6 +17,9 @@ SKIP_WITH_LVMPOLLD=1
 
 # Test reshaping under io load
 
+# FIXME: This test requires 3GB in /dev/shm!
+test $(aux total_mem) -gt $((4096*1024)) || skip
+
 which mkfs.ext4 || skip
 aux have_raid 1 13 2 || skip
 
@@ -49,10 +52,13 @@ mount "$DM_DEV_DIR/$vg/$lv1" $mount_dir
 mkdir -p $mount_dir/1 $mount_dir/2
 
 echo 3 >/proc/sys/vm/drop_caches
+# FIXME: This is filling up ram disk. Use sane amount of data please! Rate limit the data written!
 cp -r /usr/bin $mount_dir/1 >/dev/null 2>/dev/null &
 cp -r /usr/bin $mount_dir/2 >/dev/null 2>/dev/null &
+# FIXME: should this wait for above two processes and sync then?
 sync &
 
+# FIXME: wait_for_sync - is this really testing anything under load?
 aux wait_for_sync $vg $lv1
 aux delay_dev "$dev2" 0 200
 
index 785ee760d68629614ef0049d4dae2a6d0c1b1226..2143b4c82341448fcc1757c13a10fbc2ef593df1 100644 (file)
@@ -17,6 +17,9 @@ SKIP_WITH_LVMPOLLD=1
 
 # Test reshaping under io load
 
+# FIXME: This test requires 3GB in /dev/shm!
+test $(aux total_mem) -gt $((4096*1024)) || skip
+
 which mkfs.ext4 || skip
 aux have_raid 1 13 1 || skip
 
This page took 0.036383 seconds and 5 git commands to generate.