[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 03/03: t: Rewrite some tests to use create-deb



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit 9c9c99f7804db3c8a4b5a39170c391ae3353bde4
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Nov 30 22:52:33 2014 +0100

    t: Rewrite some tests to use create-deb
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/debs/deb-format-control-xz/Makefile  | 15 +++------------
 t/debs/deb-format-no-compress/Makefile | 15 +++------------
 2 files changed, 6 insertions(+), 24 deletions(-)

diff --git a/t/debs/deb-format-control-xz/Makefile b/t/debs/deb-format-control-xz/Makefile
index 10d1d3d..b2f5443 100644
--- a/t/debs/deb-format-control-xz/Makefile
+++ b/t/debs/deb-format-control-xz/Makefile
@@ -3,17 +3,8 @@ name = deb-format-control-xz
 # Done by hand, create-deb cannot do this and it would
 # be "too much effort" to make it be able to do it.
 all:
-	echo '2.0' > debian-binary
-	mkdir -p usr/share/doc/$(name)
-	install -m 0644 copyright changelog usr/share/doc/$(name)
-	gzip -9n usr/share/doc/$(name)/changelog
-	tar cfJ data.tar.xz usr
-	chown 0:0 control
-	chmod 644 control
-	md5sum usr/share/doc/$(name)/* > md5sums
-	tar cfJ control.tar.xz control md5sums
-	ar rc $(name).deb \
-	    debian-binary control.tar.xz data.tar.xz
+	create-deb -o $(name).deb --control-compression xz -c xz \
+	    control
 clean:
 	rm -f *.tar.xz *.deb md5sums debian-binary
-	rm -rf usr
\ No newline at end of file
+	rm -rf root
diff --git a/t/debs/deb-format-no-compress/Makefile b/t/debs/deb-format-no-compress/Makefile
index 5741700..0612670 100644
--- a/t/debs/deb-format-no-compress/Makefile
+++ b/t/debs/deb-format-no-compress/Makefile
@@ -3,17 +3,8 @@ name = deb-format-no-compress
 # Done by hand, create-deb cannot do this and it would
 # be "too much effort" to make it be able to do it.
 all:
-	echo '2.0' > debian-binary
-	mkdir -p usr/share/doc/$(name)
-	install -m 0644 copyright changelog usr/share/doc/$(name)
-	gzip -9n usr/share/doc/$(name)/changelog
-	tar cf data.tar usr
-	chown 0:0 control
-	chmod 644 control
-	md5sum usr/share/doc/$(name)/* > md5sums
-	tar cf control.tar control md5sums
-	ar rc $(name).deb \
-	    debian-binary control.tar data.tar
+	create-deb -o $(name).deb --control-compression none \
+	  -c none control
 clean:
 	rm -f *.tar *.deb md5sums debian-binary
-	rm -rf usr
\ No newline at end of file
+	rm -rf root

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: