diff options
author | Akira TAGOH <akira@tagoh.org> | 2018-05-13 16:21:58 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2018-05-13 16:21:58 +0900 |
commit | 0b85e77ede3497b8533b8fcb67d03d8ad174998d (patch) | |
tree | dc1e1d38008cb2371cb040ef6301d2565a980f23 /test | |
parent | cfb21c7d85d2b1fc457dcd644e6b850b5cccf26a (diff) |
Bug 106459 - fc-cache doesn't use -y option for .uuid files
https://bugs.freedesktop.org/show_bug.cgi?id=106459
Diffstat (limited to 'test')
-rw-r--r-- | test/run-test.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/run-test.sh b/test/run-test.sh index 5ef47879..e375608e 100644 --- a/test/run-test.sh +++ b/test/run-test.sh @@ -203,4 +203,29 @@ fi rm -rf $TESTTMPDIR out1 out2 xxx bind-fonts.conf fi +dotest "sysroot option" +prep +mkdir -p $MyPWD/sysroot/$FONTDIR +mkdir -p $MyPWD/sysroot/$CACHEDIR +cp $FONT1 $MyPWD/sysroot/$FONTDIR +cp $MyPWD/fonts.conf $MyPWD/sysroot/$MyPWD/fonts.conf +$FCCACHE -y $MyPWD/sysroot +stat $MyPWD/sysroot/$FONTDIR/.uuid +if test $? != 0; then + echo "*** Test failed: $TEST" + exit 1 +fi + +dotest "creating uuid-based cache file on sysroot" +uuid=`cat $MyPWD/sysroot/$FONTDIR/.uuid` +ls $MyPWD/sysroot/$CACHEDIR/$uuid* +if [ $? != 0 ]; then + echo "*** Test failed: $TEST" + echo "No cache for $uuid" + ls $MyPWD/sysroot/$CACHEDIR + exit 1 +fi + +rm -rf $MyPWD/sysroot + rm -rf $FONTDIR $CACHEFILE $CACHEDIR $FONTCONFIG_FILE out |