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:
Sam James
2023-03-30 23:44:15 +01:00
parent 0a16e785b1
commit 3d47a7d2f3

View File

@@ -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
}