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

[SCM] Debian package checker branch, master, updated. 2.4.3-51-gd34cf43



The following commit has been merged in the master branch:
commit d34cf4399feafcbb51278c76f06b90a29c9f52ff
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Dec 25 14:56:52 2010 +0100

    Added some symlink tests.

diff --git a/t/COVERAGE b/t/COVERAGE
index 76df57b..d28f6ce 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -317,11 +317,7 @@ files svk-commit-file-in-package
 files svn-commit-file-in-package
 files symlink-contains-spurious-segments
 files symlink-ends-with-slash
-files symlink-has-double-slash
-files symlink-has-too-many-up-segments
 files symlink-is-self-recursive
-files symlink-should-be-absolute
-files symlink-should-be-relative
 files use-of-compat-symlink
 files windows-thumbnail-database-in-package
 files wrong-file-owner-uid-or-gid
@@ -498,7 +494,6 @@ binary
   su-wrapper-without--c
   substvar-source-version-is-deprecated
   symlink-contains-spurious-segments
-  symlink-should-be-relative
   unquoted-string-in-menu-item
   unstripped-binary-or-object
   xs-vcs-header-in-debian-control
@@ -590,10 +585,7 @@ filenames
   svk-commit-file-in-package
   svn-commit-file-in-package
   symlink-ends-with-slash
-  symlink-has-double-slash
-  symlink-has-too-many-up-segments
   symlink-is-self-recursive
-  symlink-should-be-absolute
   use-of-compat-symlink
   windows-thumbnail-database-in-package
   wrong-file-owner-uid-or-gid
diff --git a/t/tests/files-symlinks/debian/data-file b/t/tests/files-symlinks/debian/data-file
new file mode 100644
index 0000000..9a50fd7
--- /dev/null
+++ b/t/tests/files-symlinks/debian/data-file
@@ -0,0 +1 @@
+# Some data file.
\ No newline at end of file
diff --git a/t/tests/files-symlinks/debian/debian/install b/t/tests/files-symlinks/debian/debian/install
new file mode 100644
index 0000000..3b7d28b
--- /dev/null
+++ b/t/tests/files-symlinks/debian/debian/install
@@ -0,0 +1,4 @@
+data-file usr/share/lintian/data/
+pkg.conf etc/
+symlinks/data-file.old usr/share/lintian/data/
+symlinks/pkg*.conf usr/share/lintian/data/
diff --git a/t/tests/files-symlinks/debian/debian/rules b/t/tests/files-symlinks/debian/debian/rules
new file mode 100644
index 0000000..9785a63
--- /dev/null
+++ b/t/tests/files-symlinks/debian/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
+override_dh_auto_build:
+	mkdir symlinks/
+	ln -s ../../../../etc/pkg.conf symlinks/pkg-old.conf
+	ln -s ../..//..//..//../etc/pkg.conf symlinks/pkg.conf
+	ln -s /usr/share/lintian/data-file symlinks/data-file.old
+
+override_dh_auto_clean:
+	rm -fr symlinks/
+
+override_dh_link:
+	# it will fix our symlinks and ruin the test, so skip it.
diff --git a/t/tests/files-symlinks/debian/pkg.conf b/t/tests/files-symlinks/debian/pkg.conf
new file mode 100644
index 0000000..b3138c3
--- /dev/null
+++ b/t/tests/files-symlinks/debian/pkg.conf
@@ -0,0 +1 @@
+# sample config file
diff --git a/t/tests/files-symlinks/desc b/t/tests/files-symlinks/desc
new file mode 100644
index 0000000..b7dcc46
--- /dev/null
+++ b/t/tests/files-symlinks/desc
@@ -0,0 +1,11 @@
+Testname: files-symlinks
+Sequence: 6000
+Version: 1.0
+Description: Test tags about symlinks
+Test-For:
+ symlink-has-double-slash
+ symlink-has-too-many-up-segments
+ symlink-should-be-absolute
+ symlink-should-be-relative
+
+
diff --git a/t/tests/files-symlinks/tags b/t/tests/files-symlinks/tags
new file mode 100644
index 0000000..59a8c60
--- /dev/null
+++ b/t/tests/files-symlinks/tags
@@ -0,0 +1,4 @@
+E: files-symlinks: symlink-has-too-many-up-segments usr/share/lintian/data/pkg.conf ../..//..//..//../etc/pkg.conf
+E: files-symlinks: symlink-should-be-absolute usr/share/lintian/data/pkg-old.conf ../../../../etc/pkg.conf
+W: files-symlinks: symlink-has-double-slash usr/share/lintian/data/pkg.conf ../..//..//..//../etc/pkg.conf
+W: files-symlinks: symlink-should-be-relative usr/share/lintian/data/data-file.old /usr/share/lintian/data-file

-- 
Debian package checker


Reply to: