diff --git a/src/modules/unpackfs/runtests.sh b/src/modules/unpackfs/runtests.sh index 2b9b704c0..be175e0cd 100644 --- a/src/modules/unpackfs/runtests.sh +++ b/src/modules/unpackfs/runtests.sh @@ -7,9 +7,21 @@ mkdir /tmp/unpackfs-test-run-rootdir3 # For test 7 mkdir /tmp/unpackfs-test-run-rootdir3/realdest +# For test 9 +mkdir /tmp/unpackfs-test-run-rootdir3/smalldest +if test 0 = $( id -u ) ; then + mount -t tmpfs -o size=32M tmpfs /tmp/unpackfs-test-run-rootdir3/smalldest + dd if=/dev/zero of=/tmp/unpackfs-test-run-rootdir3/smalldest/bogus.zero bs=1M count=1 +fi + # Run tests sh "$SRCDIR/../testpythonrun.sh" unpackfs +# Cleanup test 9 +if test 0 = $( id -u ) ; then + umount /tmp/unpackfs-test-run-rootdir3/smalldest +fi + # Cleanup test 7 rm -rf /tmp/unpackfs-test-run-rootdir3/realdest diff --git a/src/modules/unpackfs/tests/9.global b/src/modules/unpackfs/tests/9.global new file mode 100644 index 000000000..82ca8f6f6 --- /dev/null +++ b/src/modules/unpackfs/tests/9.global @@ -0,0 +1,3 @@ +# This test uses a small destination FS, to make rsync fail +--- +rootMountPoint: /tmp/unpackfs-test-run-rootdir3/ diff --git a/src/modules/unpackfs/tests/9.job b/src/modules/unpackfs/tests/9.job new file mode 100644 index 000000000..7eabd497c --- /dev/null +++ b/src/modules/unpackfs/tests/9.job @@ -0,0 +1,6 @@ +# This test uses a small destination FS, to make rsync fail +--- +unpack: + - source: . + sourcefs: ext4 + destination: smalldest