From e8321bc0cc988e0254677d4e18b85eefb4c8e553 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Sat, 18 Jul 2026 02:39:42 +0300 Subject: [PATCH] dev-ruby/mecab-ruby: add rudimentary test Signed-off-by: Alfred Wingate Part-of: https://codeberg.org/gentoo/gentoo/pulls/1457 Signed-off-by: Sam James --- dev-ruby/mecab-ruby/mecab-ruby-0.996-r2.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dev-ruby/mecab-ruby/mecab-ruby-0.996-r2.ebuild b/dev-ruby/mecab-ruby/mecab-ruby-0.996-r2.ebuild index 709ab6488ce24..1b5f26979c9b6 100644 --- a/dev-ruby/mecab-ruby/mecab-ruby-0.996-r2.ebuild +++ b/dev-ruby/mecab-ruby/mecab-ruby-0.996-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -29,6 +29,11 @@ each_ruby_compile() { emake V=1 } +each_ruby_test() { + # Not a real test but rather a sample program. But it works as a quick smoke test + ${RUBY} -I.:lib test.rb || die +} + each_ruby_install() { emake DESTDIR="${D}" install }