[unpackfs] Add test with too-small destination FS

This commit is contained in:
Adriaan de Groot 2019-03-29 17:22:47 -04:00
parent 2a6bf50621
commit d87badbf45
3 changed files with 21 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,3 @@
# This test uses a small destination FS, to make rsync fail
---
rootMountPoint: /tmp/unpackfs-test-run-rootdir3/

View File

@ -0,0 +1,6 @@
# This test uses a small destination FS, to make rsync fail
---
unpack:
- source: .
sourcefs: ext4
destination: smalldest