diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
commit | 75808db17caf8b960b351e3408e74142f4c85aac (patch) | |
tree | 7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/languages/ocaml/byte-code/plugin | |
parent | Initial commit. (diff) | |
download | lintian-upstream.tar.xz lintian-upstream.zip |
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/languages/ocaml/byte-code/plugin')
22 files changed, 86 insertions, 0 deletions
diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/debian/control.in b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/debian/control.in new file mode 100644 index 0000000..345bc0f --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/debian/control.in @@ -0,0 +1,27 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: libocaml-general-ocaml +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: OCaml library package for tests + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + A library package for OCaml checks. + +Package: libocaml-general-ocaml-dev +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: OCaml dev package for tests + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + A development package for OCaml checks. diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/debian/libocaml-general-ocaml-dev.dirs b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/debian/libocaml-general-ocaml-dev.dirs new file mode 100644 index 0000000..00a96ae --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/debian/libocaml-general-ocaml-dev.dirs @@ -0,0 +1 @@ +usr/lib/ocaml diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/debian/libocaml-general-ocaml-dev.install b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/debian/libocaml-general-ocaml-dev.install new file mode 100644 index 0000000..870611a --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/debian/libocaml-general-ocaml-dev.install @@ -0,0 +1,12 @@ +symbol-dev.a usr/lib/ocaml/ +libbaz.a usr/lib/ocaml/ +ocaml/foo.cmi usr/lib/ +ocaml/foo.cmi usr/lib/ocaml/ +ocaml/bar.cmi usr/lib/ocaml/ +ocaml/baz.cmi usr/lib/ocaml/ +ocaml/boo.cmi usr/lib/ocaml/ +ocaml/symbol2.cmx usr/lib/ocaml/ +ocaml/symbol-dev.cmx usr/lib/ocaml/ +ocaml/bleh.cmo usr/lib/ocaml/ +ocaml/bleh.cma usr/lib/ocaml/ +ocaml/META usr/lib/ocaml/ diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/debian/libocaml-general-ocaml.dirs b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/debian/libocaml-general-ocaml.dirs new file mode 100644 index 0000000..00a96ae --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/debian/libocaml-general-ocaml.dirs @@ -0,0 +1 @@ +usr/lib/ocaml diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/debian/libocaml-general-ocaml.install b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/debian/libocaml-general-ocaml.install new file mode 100644 index 0000000..ebd6194 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/debian/libocaml-general-ocaml.install @@ -0,0 +1,3 @@ +ocaml/foo.cmxa usr/lib/ocaml/ +ocaml/bar.cmxs usr/lib/ocaml/ +ocaml/symbol.cmx usr/lib/ocaml/ diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/fill-values b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/fill-values new file mode 100644 index 0000000..91956e2 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-native +Testname: ocaml-general +Package-Architecture: any +Section: ocaml +Description: Test the OCaml-related tags diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/Makefile b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/Makefile new file mode 100644 index 0000000..da8b039 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/Makefile @@ -0,0 +1,17 @@ +# A simple makefile to build a *.o file and a *.a file to install to test +# the OCaml checks for dangling *.cmx files. +all: symbol.a symbol-dev.a libbaz.a + +%.a: %.o + ar rv $@ $< + # Not entirely sure this is acceptable for a normal OCaml + # library, but for this test the library does not need + # to work and it avoids a warning about unneeded sections. + strip --remove-section=.comment --remove-section=.note \ + --strip-debug $@ + +symbol-dev.o: symbol.c + cc -c $< -o $@ + +libbaz.a: symbol-dev.o + ar r $@ $< diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/META b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/META new file mode 100644 index 0000000..72885c2 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/META @@ -0,0 +1 @@ +MEANINGLESS CONTENT diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/bar.cmi b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/bar.cmi new file mode 100644 index 0000000..72885c2 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/bar.cmi @@ -0,0 +1 @@ +MEANINGLESS CONTENT diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/bar.cmxs b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/bar.cmxs new file mode 100644 index 0000000..72885c2 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/bar.cmxs @@ -0,0 +1 @@ +MEANINGLESS CONTENT diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/baz.cmi b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/baz.cmi new file mode 100644 index 0000000..72885c2 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/baz.cmi @@ -0,0 +1 @@ +MEANINGLESS CONTENT diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/bleh.cma b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/bleh.cma new file mode 100644 index 0000000..72885c2 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/bleh.cma @@ -0,0 +1 @@ +MEANINGLESS CONTENT diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/bleh.cmo b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/bleh.cmo new file mode 100644 index 0000000..72885c2 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/bleh.cmo @@ -0,0 +1 @@ +MEANINGLESS CONTENT diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/boo.cmi b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/boo.cmi new file mode 100644 index 0000000..72885c2 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/boo.cmi @@ -0,0 +1 @@ +MEANINGLESS CONTENT diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/foo.cmi b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/foo.cmi new file mode 100644 index 0000000..72885c2 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/foo.cmi @@ -0,0 +1 @@ +MEANINGLESS CONTENT diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/foo.cmxa b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/foo.cmxa new file mode 100644 index 0000000..72885c2 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/foo.cmxa @@ -0,0 +1 @@ +MEANINGLESS CONTENT diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/symbol-dev.cmx b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/symbol-dev.cmx new file mode 100644 index 0000000..72885c2 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/symbol-dev.cmx @@ -0,0 +1 @@ +MEANINGLESS CONTENT diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/symbol.cmx b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/symbol.cmx new file mode 100644 index 0000000..72885c2 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/symbol.cmx @@ -0,0 +1 @@ +MEANINGLESS CONTENT diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/symbol2.cmx b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/symbol2.cmx new file mode 100644 index 0000000..72885c2 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/ocaml/symbol2.cmx @@ -0,0 +1 @@ +MEANINGLESS CONTENT diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/symbol.c b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/symbol.c new file mode 100644 index 0000000..79a896f --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/build-spec/orig/symbol.c @@ -0,0 +1,5 @@ +int +symbol(void) +{ + return 42; +} diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/eval/desc b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/eval/desc new file mode 100644 index 0000000..fed6496 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/eval/desc @@ -0,0 +1,2 @@ +Testname: ocaml-general +Check: languages/ocaml/byte-code/plugin diff --git a/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/eval/hints b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/eval/hints new file mode 100644 index 0000000..d68e985 --- /dev/null +++ b/t/recipes/checks/languages/ocaml/byte-code/plugin/ocaml-general/eval/hints @@ -0,0 +1 @@ +libocaml-general-ocaml (binary): ocaml-dangling-cmxs [usr/lib/ocaml/bar.cmxs] |