The test script assumes that zero-length files take up zero disk space,
that the block size is 4k, and that the disk usage will be the file size
rounded up to the nearest block size. Unfortunately these were not true for
ecryptfs.
Additionally, running the test.sh from another directory did not work due
to a bad location assumption in another test.
link_suite() {
if [ `dirname $COMPILER` = . ]; then
- ln -s ../ccache $COMPILER
+ ln -s "$CCACHE" $COMPILER
CCACHE_COMPILE="./$COMPILER"
base_tests
else
fi
done
+ # Warning: this test is known to fail on filesystems that have
+ # unusual block sizes, including ecryptfs. The workaround is
+ # to place the test directory elsewhere:
+ # cd /tmp
+ # CCACHE=$DIR/ccache $DIR/test.sh
testname="forced cleanup, size limit"
$CCACHE -C >/dev/null
prepare_cleanup_test $CCACHE_DIR/a