Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Vagin <avagin@virtuozzo.com>2016-05-07 03:25:00 +0300
committerPavel Emelyanov <xemul@virtuozzo.com>2016-05-27 13:31:14 +0300
commitd44276c143184aa134fef5a51dca9ae12e53197a (patch)
treeeb19af0dbcbad1aabcb3713f4540e78a34c8f631 /test/others/mnt-ext-dev
parent022e3b9b9c554292d7e446c38fc63af22172dd48 (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/Makefile2
-rwxr-xr-xtest/others/mnt-ext-dev/run.sh17
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