diff options
author | joey <joey> | 1999-08-17 05:12:07 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 05:12:07 +0000 |
commit | 430dd853a0827cf0419d2531cf163d4c1e19c4f9 (patch) | |
tree | ae457262f779a02c68718788b46c4c5bf7038626 /t | |
parent | 540263202bcd5666ba65cd40e8587fdc9d48109a (diff) | |
download | debhelper-430dd853a0827cf0419d2531cf163d4c1e19c4f9.tar.gz |
r189: Initial revision
Diffstat (limited to 't')
-rw-r--r-- | t/dh_link | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/t/dh_link b/t/dh_link new file mode 100644 index 00000000..9f644e78 --- /dev/null +++ b/t/dh_link @@ -0,0 +1,16 @@ +#!/usr/bin/perl +use Test; +plan(tests => 3); + +# It used to not make absolute links in this situation, and it should. +# #37774 +system("./dh_link","etc/foo","usr/lib/bar"); +ok("/etc/foo",readlink("debian/tmp/usr/lib/bar")); + +# let's make sure it makes simple relative links ok. +system("./dh_link","usr/bin/foo","usr/bin/bar"); +ok("foo",readlink("debian/tmp/usr/bin/bar")); + +# ok, more complex relative links. +system("./dh_link","usr/lib/1","usr/bin/2"); +ok("../lib/1",readlink("debian/tmp/usr/bin/2")); |