From d04efca4e86bcbee253911865d37e153f4730ee1 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 05 Jul 2020 00:06:02 -0400 Subject: tests/exe/ob-installdocs.sh: Check link dest --- diff --git a/tests/exe/ob-installdocs.sh b/tests/exe/ob-installdocs.sh index fe54b8a..d55f116 100755 --- a/tests/exe/ob-installdocs.sh +++ b/tests/exe/ob-installdocs.sh @@ -22,7 +22,7 @@ set -eu . "${TOP_SRCDIR}/tests/aux/tap-functions.sh" . "${TOP_SRCDIR}/tests/aux/common.sh" -plan_ 10 +plan_ 11 rm -Rf *'.data/' @@ -39,3 +39,7 @@ for f in 'copyright' 'changelog.dist' 'README.upstream'; do [ -f "foo.data/usr/share/doc/foo:i686-linux-glibc/${f}" ] done command_ok_ 'link created' -- [ -L 'bar.data/usr/share/doc/bar' ] + +command_ok_ 'link destination' -- \ + [ "x$(ls -l 'bar.data/usr/share/doc/bar' | sed 's/^.* -> //')" = \ + "x/usr/share/doc/foo:i686-linux-glibc" ] -- cgit v0.9.1