summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2009-10-11 20:12:31 -0400
committerJoey Hess <joey@kitenet.net>2009-10-11 20:12:31 -0400
commitf4ba9f7bb27096a0cabde403de217e542e04c1b6 (patch)
tree18f7cc7f099d6bb9aed20512a868cef115b0bac4
parent8f83b9e114d6b68e8766bf241101e8556924aa6a (diff)
parent6b23f94b61b04577c23646cebab5e3d4226e3f92 (diff)
Merge branch 'master' of ssh://git.debian.org/git/debhelper/debhelper
-rwxr-xr-xt/dh_install14
1 files changed, 13 insertions, 1 deletions
diff --git a/t/dh_install b/t/dh_install
index 2557fbf4..447a40a8 100755
--- a/t/dh_install
+++ b/t/dh_install
@@ -1,6 +1,6 @@
#!/usr/bin/perl
use Test;
-plan(tests => 21);
+plan(tests => 23);
system("rm -rf debian/debhelper debian/tmp");
@@ -74,3 +74,15 @@ system("rm -rf debian/debhelper debian/tmp");
system("./dh_install", "dh_install", "usr/bin");
ok(-e "debian/debhelper/usr/bin/dh_install");
system("rm -rf debian/debhelper debian/tmp");
+
+# specification of file in source directory not in debian/tmp
+system("mkdir -p bar/usr/bin; touch bar/usr/bin/foo");
+system("./dh_install", "--sourcedir=bar", "usr/bin/foo");
+ok(-e "debian/debhelper/usr/bin/foo");
+system("rm -rf debian/debhelper bar");
+
+# specification of file in subdir, not in debian/tmp
+system("mkdir -p bar/usr/bin; touch bar/usr/bin/foo");
+system("./dh_install", "bar/usr/bin/foo");
+ok(-e "debian/debhelper/bar/usr/bin/foo");
+system("rm -rf debian/debhelper bar");