2019-01-25 13:20:16 +01:00
|
|
|
#! /bin/sh
|
|
|
|
SRCDIR=$( dirname "$0" )
|
|
|
|
|
|
|
|
# For test 3
|
|
|
|
mkdir /tmp/unpackfs-test-run-rootdir3
|
|
|
|
|
|
|
|
# For test 7
|
|
|
|
mkdir /tmp/unpackfs-test-run-rootdir3/realdest
|
|
|
|
|
2019-03-29 22:22:47 +01:00
|
|
|
# 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
|
|
|
|
|
2019-01-25 13:20:16 +01:00
|
|
|
# Run tests
|
|
|
|
sh "$SRCDIR/../testpythonrun.sh" unpackfs
|
|
|
|
|
2019-03-29 22:22:47 +01:00
|
|
|
# Cleanup test 9
|
|
|
|
if test 0 = $( id -u ) ; then
|
|
|
|
umount /tmp/unpackfs-test-run-rootdir3/smalldest
|
|
|
|
fi
|
|
|
|
|
2019-01-25 13:20:16 +01:00
|
|
|
# Cleanup test 7
|
|
|
|
rm -rf /tmp/unpackfs-test-run-rootdir3/realdest
|
|
|
|
|
|
|
|
# Cleanup test 3
|
|
|
|
rmdir /tmp/unpackfs-test-run-rootdir3
|