diff options
Diffstat (limited to 'tests/exe/ob-installdocs.sh')
-rwxr-xr-x | tests/exe/ob-installdocs.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/exe/ob-installdocs.sh b/tests/exe/ob-installdocs.sh index 96c3244..d55f116 100755 --- a/tests/exe/ob-installdocs.sh +++ b/tests/exe/ob-installdocs.sh @@ -22,20 +22,24 @@ set -eu . "${TOP_SRCDIR}/tests/aux/tap-functions.sh" . "${TOP_SRCDIR}/tests/aux/common.sh" -plan_ 10 +plan_ 11 rm -Rf *'.data/' command_ok_ 'ob-installdocs first run exit status' -- ob-installdocs for f in 'copyright' 'changelog.dist' 'README.upstream'; do command_ok_ "${f} file installed" -- \ - [ -f "foo.data/usr/share/doc/foo/${f}" ] + [ -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_ 'ob-installdocs second run exit status' -- ob-installdocs for f in 'copyright' 'changelog.dist' 'README.upstream'; do command_ok_ "${f} file installed" -- \ - [ -f "foo.data/usr/share/doc/foo/${f}" ] + [ -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" ] |