Improved test coverage to above 80%
authorNiels Thykier <niels@thykier.net>
Thu, 13 Oct 2011 18:30:28 +0000 (20:30 +0200)
committerNiels Thykier <niels@thykier.net>
Thu, 13 Oct 2011 18:30:28 +0000 (20:30 +0200)
Signed-off-by: Niels Thykier <niels@thykier.net>
t/COVERAGE
t/tests/changelog-file-upstream-html-only/debian/debian/rules [new file with mode: 0644]
t/tests/changelog-file-upstream-html-only/desc [new file with mode: 0644]
t/tests/changelog-file-upstream-html-only/tags [new file with mode: 0644]
t/tests/changelog-file-upstream-html-only/upstream/some-changelog.html [new file with mode: 0644]

index cc5d254..303ee74 100644 (file)
@@ -1,5 +1,5 @@
 Last generated 2011-10-13
-Coverage: 750/938 (79.96%), w. legacy tests: 859/938 (91.58%)
+Coverage: 753/940 (80.11%), w. legacy tests: 862/940 (91.70%)
 
 The following tags are not tested by the test suite:
 
@@ -9,8 +9,6 @@ binaries library-not-linked-against-libc
 binaries ocaml-custom-executable
 binaries program-not-linked-against-libc
 
-changelog-file html-changelog-without-text-version
-
 cruft source-contains-prebuilt-windows-binary
 
 deb-format tar-errors-from-data
diff --git a/t/tests/changelog-file-upstream-html-only/debian/debian/rules b/t/tests/changelog-file-upstream-html-only/debian/debian/rules
new file mode 100644 (file)
index 0000000..12f2c85
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+PKG:=$(shell dh_listpackages)
+DOC:=debian/$(PKG)/usr/share/doc/$(PKG)
+
+%:
+       dh $@
+
+override_dh_installchangelogs:
+       dh_installchangelogs
+       cp some-changelog.html $(DOC)/changelog.html
diff --git a/t/tests/changelog-file-upstream-html-only/desc b/t/tests/changelog-file-upstream-html-only/desc
new file mode 100644 (file)
index 0000000..efaec24
--- /dev/null
@@ -0,0 +1,6 @@
+Testname: changelog-file-upstream-html-only
+Sequence: 6000
+Type: non-native
+Version: 1.0-1
+Description: Check HTML-only upstream changelog
+Test-For: html-changelog-without-text-version
diff --git a/t/tests/changelog-file-upstream-html-only/tags b/t/tests/changelog-file-upstream-html-only/tags
new file mode 100644 (file)
index 0000000..0407e01
--- /dev/null
@@ -0,0 +1 @@
+E: changelog-file-upstream-html-only: html-changelog-without-text-version
diff --git a/t/tests/changelog-file-upstream-html-only/upstream/some-changelog.html b/t/tests/changelog-file-upstream-html-only/upstream/some-changelog.html
new file mode 100644 (file)
index 0000000..2a4614a
--- /dev/null
@@ -0,0 +1,8 @@
+<html>
+  <head>
+    <titl>Hallo World</title>
+</head>
+<body>
+  <p>A wonderful changelog written in HTML</p>
+</body>
+</html>