From d67a2974e571e979a04c4050921b157bcd573c6c Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sun, 29 Sep 2013 20:11:27 +0400 Subject: [PATCH] test: add some read operations after unmount/mount --- simple-test.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/simple-test.sh b/simple-test.sh index 0be854c..49ffc00 100755 --- a/simple-test.sh +++ b/simple-test.sh @@ -65,6 +65,22 @@ function do_some_operations() echo "Second level directory" > hello cat hello } +function do_read_operations() +{ + cd "$1" + ls -lR + + cat vanakkam + cat hello + + cat hello + + cd dir1 + cat hello + + cd dir2 + cat hello +} function cleanup() { cat /proc/mounts | grep simplefs | awk '{print $2}' | xargs -r umount @@ -93,7 +109,8 @@ unmount_fs "$test_mount_point" # 2 mount_fs_image "$test_dir/image" "$test_mount_point" -ls -lR "$test_mount_point" +do_read_operations "$test_mount_point" +cd "$root_pwd" unmount_fs "$test_mount_point" dmesg | tail -n40