summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/cruft/cruft-cc-by-nc-sa
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/cruft/cruft-cc-by-nc-sa')
-rw-r--r--t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/fill-values3
-rw-r--r--t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/orig/src/ISI_export_format.html8
-rw-r--r--t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/orig/src/copyright-header.html9
-rw-r--r--t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/orig/src/test.svg53
-rw-r--r--t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/orig/src/test.xml9
-rw-r--r--t/recipes/checks/cruft/cruft-cc-by-nc-sa/eval/desc2
-rw-r--r--t/recipes/checks/cruft/cruft-cc-by-nc-sa/eval/hints4
7 files changed, 88 insertions, 0 deletions
diff --git a/t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/fill-values b/t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/fill-values
new file mode 100644
index 0000000..653eb5e
--- /dev/null
+++ b/t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: cruft-cc-by-nc-sa
+Description: Check for the creative common cc by sa
diff --git a/t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/orig/src/ISI_export_format.html b/t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/orig/src/ISI_export_format.html
new file mode 100644
index 0000000..fd6df9c
--- /dev/null
+++ b/t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/orig/src/ISI_export_format.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html lang="en" dir="ltr">
+<head>
+<title>Some title</title>
+</head>
+<body>
+Content is available under <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" class="external ">Attribution-NonCommercial-ShareAlike 3.0 Unported</a></body>
+</html>
diff --git a/t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/orig/src/copyright-header.html b/t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/orig/src/copyright-header.html
new file mode 100644
index 0000000..67f778a
--- /dev/null
+++ b/t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/orig/src/copyright-header.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html lang="en" dir="ltr">
+<head>
+<title>Test</title>
+<link rel="copyright" href="http://creativecommons.org/licenses/by-nc-sa/3.0/" />
+<body>
+test
+</body>
+</html>
diff --git a/t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/orig/src/test.svg b/t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/orig/src/test.svg
new file mode 100644
index 0000000..02796b5
--- /dev/null
+++ b/t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/orig/src/test.svg
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- This file is under lintian license. Licence in meta data is fake
+ and only for test purpose -->
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ width="10"
+ height="10"
+ version="1.1">
+ <title id="lintian test file">File</title>
+
+ <metadata
+ id="metadata3877">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title>File</dc:title>
+ <dc:date>2014-09-12</dc:date>
+ <dc:creator>
+ <cc:Agent>
+ <dc:title>Bastien Roucariès</dc:title>
+ </cc:Agent>
+ </dc:creator>
+ <cc:license
+ rdf:resource="http://creativecommons.org/licenses/by-nc-sa/3.0/" />
+ </cc:Work>
+ <cc:License
+ rdf:about="http://creativecommons.org/licenses/by-nc-sa/3.0/">
+ <cc:permits
+ rdf:resource="http://creativecommons.org/ns#Reproduction" />
+ <cc:permits
+ rdf:resource="http://creativecommons.org/ns#Distribution" />
+ <cc:requires
+ rdf:resource="http://creativecommons.org/ns#Notice" />
+ <cc:requires
+ rdf:resource="http://creativecommons.org/ns#Attribution" />
+ <cc:prohibits
+ rdf:resource="http://creativecommons.org/ns#CommercialUse" />
+ <cc:permits
+ rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
+ <cc:requires
+ rdf:resource="http://creativecommons.org/ns#ShareAlike" />
+ </cc:License>
+ </rdf:RDF>
+ </metadata>
+</svg>
diff --git a/t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/orig/src/test.xml b/t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/orig/src/test.xml
new file mode 100644
index 0000000..b0ca098
--- /dev/null
+++ b/t/recipes/checks/cruft/cruft-cc-by-nc-sa/build-spec/orig/src/test.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF
+xmlns:cc='http://creativecommons.org/ns#'
+xmlns:foaf='http://xmlns.com/foaf/0.1/'
+xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
+xmlns:dc='http://purl.org/dc/elements/1.1/'
+xmlns:dcq='http://purl.org/dc/terms/'
+>
+<cc:License rdf:about="http://creativecommons.org/licenses/by-nc-sa/3.0/fr/"> \ No newline at end of file
diff --git a/t/recipes/checks/cruft/cruft-cc-by-nc-sa/eval/desc b/t/recipes/checks/cruft/cruft-cc-by-nc-sa/eval/desc
new file mode 100644
index 0000000..5219716
--- /dev/null
+++ b/t/recipes/checks/cruft/cruft-cc-by-nc-sa/eval/desc
@@ -0,0 +1,2 @@
+Testname: cruft-cc-by-nc-sa
+Check: cruft
diff --git a/t/recipes/checks/cruft/cruft-cc-by-nc-sa/eval/hints b/t/recipes/checks/cruft/cruft-cc-by-nc-sa/eval/hints
new file mode 100644
index 0000000..60ac3e7
--- /dev/null
+++ b/t/recipes/checks/cruft/cruft-cc-by-nc-sa/eval/hints
@@ -0,0 +1,4 @@
+cruft-cc-by-nc-sa (source): license-problem-cc-by-nc-sa [src/test.xml]
+cruft-cc-by-nc-sa (source): license-problem-cc-by-nc-sa [src/test.svg]
+cruft-cc-by-nc-sa (source): license-problem-cc-by-nc-sa [src/copyright-header.html]
+cruft-cc-by-nc-sa (source): license-problem-cc-by-nc-sa [src/ISI_export_format.html]