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/appstream-metadata | |
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/appstream-metadata')
10 files changed, 74 insertions, 0 deletions
diff --git a/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata-invalid.metadata.xml b/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata-invalid.metadata.xml new file mode 100644 index 0000000..a823b8d --- /dev/null +++ b/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata-invalid.metadata.xml @@ -0,0 +1 @@ +This is not a valid XML document. diff --git a/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata-obsolete.metadata.xml b/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata-obsolete.metadata.xml new file mode 100644 index 0000000..31d281e --- /dev/null +++ b/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata-obsolete.metadata.xml @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="UTF-8"?> +<application/> diff --git a/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata.desktop b/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata.desktop new file mode 100644 index 0000000..4c91430 --- /dev/null +++ b/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=appstream-udev-data +Terminal=true +Exec=true +Categories=ConsoleOnly;Game; +Keywords=Text; diff --git a/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata.dirs b/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata.dirs new file mode 100644 index 0000000..402f5d5 --- /dev/null +++ b/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata.dirs @@ -0,0 +1,2 @@ +usr/share/metainfo +usr/share/appdata diff --git a/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata.metadata.xml b/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata.metadata.xml new file mode 100644 index 0000000..82294c1 --- /dev/null +++ b/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata.metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<component> + <id>appstream-udev-data</id> + <metadata_license>MIT</metadata_license> + <name>lintian appstream-udev-data</name> + <summary>Test AppStream and udev related checks in lintian</summary> + <description> + <p> + 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. It may be an empty package. + </p> + </description> + <provides> + <modalias>usb:v0000p0001d*</modalias> + <modalias>usb:v0000p0002d*</modalias> + <modalias>usb:v0000p0003d*</modalias> + <modalias>usb:v0000p0004d*</modalias> + <modalias>usb:v0000p000ad*</modalias> + </provides> +</component> diff --git a/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata.udev b/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata.udev new file mode 100644 index 0000000..e2f2841 --- /dev/null +++ b/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/appstream-metadata.udev @@ -0,0 +1,14 @@ +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0001", \ + MODE="0666" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0002", \ + MODE="0660", GROUP="plugdev" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0003", \ + TAG+="uaccess" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0004", \ + MODE="0660", GROUP="plugdev", TAG+="uaccess" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="000a", \ + ID_TEST_DEVICE="1" diff --git a/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/rules b/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/rules new file mode 100644 index 0000000..5fb0c35 --- /dev/null +++ b/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f + +DESTDIR = debian/$(shell dh_listpackages) +APPSYNC_DIR=$(DESTDIR)/usr/share/metainfo/ +OBSOLETE_APPSYNC_DIR=$(DESTDIR)/usr/share/appdata/ +UDEV_DIR=$(DESTDIR)/lib/udev/rules.d/ + +%: + dh $@ + +override_dh_install: + dh_install + install -m 0644 debian/appstream-metadata.metadata.xml $(APPSYNC_DIR) + install -m 0644 debian/appstream-metadata-invalid.metadata.xml $(APPSYNC_DIR) + install -m 0644 debian/appstream-metadata-obsolete.metadata.xml $(OBSOLETE_APPSYNC_DIR) diff --git a/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/fill-values b/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/fill-values new file mode 100644 index 0000000..cfd5595 --- /dev/null +++ b/t/recipes/checks/appstream-metadata/appstream-metadata/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: appstream-metadata +Description: Test AppStream and udev metadata in binary package diff --git a/t/recipes/checks/appstream-metadata/appstream-metadata/eval/desc b/t/recipes/checks/appstream-metadata/appstream-metadata/eval/desc new file mode 100644 index 0000000..0482336 --- /dev/null +++ b/t/recipes/checks/appstream-metadata/appstream-metadata/eval/desc @@ -0,0 +1,2 @@ +Testname: appstream-metadata +Check: appstream-metadata diff --git a/t/recipes/checks/appstream-metadata/appstream-metadata/eval/hints b/t/recipes/checks/appstream-metadata/appstream-metadata/eval/hints new file mode 100644 index 0000000..530dfca --- /dev/null +++ b/t/recipes/checks/appstream-metadata/appstream-metadata/eval/hints @@ -0,0 +1,5 @@ +appstream-metadata (binary): appstream-metadata-missing-modalias-provide match rule usb:v0000p000Ad* [usr/lib/udev/rules.d/60-appstream-metadata.rules:13] +appstream-metadata (binary): appstream-metadata-malformed-modalias-provide include non-valid hex digit in USB matching rule 'usb:v0000p000ad*' [usr/share/metainfo/appstream-metadata.metadata.xml] +appstream-metadata (binary): appstream-metadata-legacy-format [usr/share/appdata/appstream-metadata-obsolete.metadata.xml] +appstream-metadata (binary): appstream-metadata-invalid [usr/share/metainfo/appstream-metadata-invalid.metadata.xml] +appstream-metadata (binary): appstream-metadata-in-legacy-location [usr/share/appdata/appstream-metadata-obsolete.metadata.xml] |