diff options
author | Sam James <sam@gentoo.org> | 2023-02-12 06:31:11 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-02-12 06:41:41 +0000 |
commit | 4c6cc2b2ad15acc3a2be7b60b10c42c47b53e1bf (patch) | |
tree | ffce23639fc88c82e03032ad8438f8ac368c9f7c /app-misc/delay | |
parent | dev-python/sphinxcontrib-jquery: Keyword 3.0.0 arm64, #893998 (diff) | |
download | gentoo-4c6cc2b2ad15acc3a2be7b60b10c42c47b53e1bf.tar.gz gentoo-4c6cc2b2ad15acc3a2be7b60b10c42c47b53e1bf.tar.bz2 gentoo-4c6cc2b2ad15acc3a2be7b60b10c42c47b53e1bf.zip |
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>
Diffstat (limited to 'app-misc/delay')
-rw-r--r-- | app-misc/delay/delay-1.6-r6.ebuild | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app-misc/delay/delay-1.6-r6.ebuild b/app-misc/delay/delay-1.6-r6.ebuild index 056c0f45b6a2..bab9eb2ea719 100644 --- a/app-misc/delay/delay-1.6-r6.ebuild +++ b/app-misc/delay/delay-1.6-r6.ebuild @@ -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 +} |