mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user