diff options
author | Andrew Vagin <avagin@virtuozzo.com> | 2016-05-07 03:25:00 +0300 |
---|---|---|
committer | Pavel Emelyanov <xemul@virtuozzo.com> | 2016-05-27 13:31:14 +0300 |
commit | d44276c143184aa134fef5a51dca9ae12e53197a (patch) | |
tree | eb19af0dbcbad1aabcb3713f4540e78a34c8f631 /test/others/mnt-ext-dev | |
parent | 022e3b9b9c554292d7e446c38fc63af22172dd48 (diff) |
zdtm: check mounts of external devices
Signed-off-by: Andrew Vagin <avagin@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Diffstat (limited to 'test/others/mnt-ext-dev')
-rw-r--r-- | test/others/mnt-ext-dev/Makefile | 2 | ||||
-rwxr-xr-x | test/others/mnt-ext-dev/run.sh | 17 |
2 files changed, 19 insertions, 0 deletions
diff --git a/test/others/mnt-ext-dev/Makefile b/test/others/mnt-ext-dev/Makefile new file mode 100644 index 000000000..7779a9903 --- /dev/null +++ b/test/others/mnt-ext-dev/Makefile @@ -0,0 +1,2 @@ +run: + ./run.sh diff --git a/test/others/mnt-ext-dev/run.sh b/test/others/mnt-ext-dev/run.sh new file mode 100755 index 000000000..368c03d06 --- /dev/null +++ b/test/others/mnt-ext-dev/run.sh @@ -0,0 +1,17 @@ +#!/bin/sh +set -e -x + +# construct root +python ../../zdtm.py run -t zdtm/static/env00 --iter 0 -f ns + +truncate -s 0 zdtm.loop +truncate -s 50M zdtm.loop +mkfs.ext4 zdtm.loop +dev=`losetup --find --show zdtm.loop` +mkdir -p ../../dev +cp -ap $dev ../../dev +export ZDTM_MNT_EXT_DEV=$dev +python ../../zdtm.py run -t zdtm/static/mnt_ext_dev || ret=$? +losetup -d $dev +unlink zdtm.loop +exit $ret |