commit:     d994e07488e48d462dff33a281ab8692415c35c5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun May  5 16:44:21 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May  5 16:44:21 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d994e074

media-gfx/jhead: add (very basic) smoketest to src_test

Left a TODO for someone else to improve.

Bug: https://bugs.gentoo.org/931225
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-gfx/jhead/jhead-3.08-r1.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/media-gfx/jhead/jhead-3.08-r1.ebuild 
b/media-gfx/jhead/jhead-3.08-r1.ebuild
index 236107212ff2..181929ebdc85 100644
--- a/media-gfx/jhead/jhead-3.08-r1.ebuild
+++ b/media-gfx/jhead/jhead-3.08-r1.ebuild
@@ -25,6 +25,12 @@ src_compile() {
        emake CC="$(tc-getCC)"
 }
 
+src_test() {
+       # TODO: Add an example file we change & compare checksum?
+       # Trivial smoketest (which would've found bug #931225)
+       jhead -V || die
+}
+
 src_install() {
        dobin ${PN}
        dodoc *.txt

Reply via email to