app-misc/delay: add smoketests in src_test

No official test suite available so let's add some quick smoketests which
would've caught the segfault mentioned in bug #881319.

Bug: https://bugs.gentoo.org/881319
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-02-12 06:31:11 +00:00
parent 8b57b0c438
commit 4c6cc2b2ad

View File

@@ -3,7 +3,7 @@
EAPI=8
inherit autotools
inherit autotools edo
DESCRIPTION="Sleeplike program that counts down the number of seconds specified"
HOMEPAGE="https://onegeek.org/~tom/software/delay/"
@@ -41,3 +41,10 @@ src_configure() {
econf
}
src_test() {
# No provided test suite, so let's add a smoketest which would've
# caught the segfault part of bug #881319.
edo ./delay 5
edo ./delay until now + 1 minutes
}