mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-ruby/curses: add smoketest
There aren't any tests/specs at all but we can do a smoketest like upstream do in their CI by trying to import the module and print the current (n)curses version. Better than nothing, eh? Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
USE_RUBY="ruby26 ruby27 ruby30 ruby31"
|
||||
USE_RUBY="ruby27 ruby30 ruby31"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
@@ -23,3 +23,9 @@ IUSE=""
|
||||
|
||||
DEPEND+=" sys-libs/ncurses:0"
|
||||
RDEPEND+=" sys-libs/ncurses:0"
|
||||
|
||||
each_ruby_test() {
|
||||
# No specs so we use the smoketest that upstream use in CI:
|
||||
# https://github.com/ruby/curses/blob/master/.github/workflows/ubuntu.yml#L26
|
||||
${RUBY} -Ilib:ext/curses:. -r curses -e 'puts Curses::VERSION' || die
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user