From: Andrew Stubbs Date: Mon, 10 Sep 2012 13:57:23 +0000 (+0100) Subject: Fix bug testing with ecryptfs X-Git-Tag: v3.1.9~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1aff1e1425e55585715b423fef79571c8d598523;p=thirdparty%2Fccache.git Fix bug testing with ecryptfs 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. --- diff --git a/test.sh b/test.sh index 372c1889c..afd73a40e 100755 --- a/test.sh +++ b/test.sh @@ -497,7 +497,7 @@ base_suite() { link_suite() { if [ `dirname $COMPILER` = . ]; then - ln -s ../ccache $COMPILER + ln -s "$CCACHE" $COMPILER CCACHE_COMPILE="./$COMPILER" base_tests else @@ -1542,6 +1542,11 @@ cleanup_suite() { 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