Skip to content

Commit

Permalink
Merge pull request #293 from yast/disable_yui_test
Browse files Browse the repository at this point in the history
disable libyui integration tests in ruby-bindings as it is not reliable
  • Loading branch information
jreidinger authored Jan 22, 2025
2 parents 3008583 + 852f09c commit 8de4bf1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
7 changes: 7 additions & 0 deletions package/yast2-ruby-bindings.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jan 15 08:39:02 UTC 2025 - Josef Reidinger <[email protected]>

- Disable integration tests with libyui
(gh#yast/yast-ruby-bindings#293)
- 5.0.2

-------------------------------------------------------------------
Fri Dec 20 16:01:56 UTC 2024 - Josef Reidinger <[email protected]>

Expand Down
13 changes: 1 addition & 12 deletions package/yast2-ruby-bindings.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-ruby-bindings
Version: 5.0.1
Version: 5.0.2
Release: 0
URL: https://github.com/yast/yast-ruby-bindings
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down Expand Up @@ -48,14 +48,6 @@ BuildRequires: s390-tools
Requires: s390-tools
%endif


# The test suite includes a regression test (std_streams_spec.rb) for a
# libyui-ncurses bug fixed in 2.47.3
BuildRequires: libyui-ncurses >= 2.47.3
# The mentioned test requires tmux in order to be executed in headless systems
# Also many other libyui tests to come
BuildRequires: tmux

# only a soft dependency, the Ruby debugger is optional
Suggests: rubygem(%{rb_default_ruby_abi}:byebug)

Expand Down Expand Up @@ -96,9 +88,6 @@ make install DESTDIR=$RPM_BUILD_ROOT
cd -

%check
# Build workers are set up without systemd so the default /run/tmux dir
# will not be present (unless clamav pulls systemd in, on SLE)
export TMUX_TMPDIR=/tmp
cd build
make test ARGS=-V
cd -
Expand Down
13 changes: 8 additions & 5 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ foreach(test ${Specs})
ADD_TEST(${test} rspec --format doc ${test})
endforeach(test)

ADD_TEST("integration" ruby ${CMAKE_CURRENT_SOURCE_DIR}/integration/run.rb)
# disable integration test as it is too fragile on non intel architectures
# ADD_TEST("integration" ruby ${CMAKE_CURRENT_SOURCE_DIR}/integration/run.rb)
ADD_TEST("translations" rspec --format doc ${CMAKE_CURRENT_SOURCE_DIR}/integration/translations_spec.rb)

file(GLOB libyui_specs "libyui/*_spec.rb")
foreach(test ${libyui_specs})
ADD_TEST(${test} rspec --format doc ${test})
endforeach(test)
# disable also libyui tests as it is too fragile on non intel architectures and it is not ruby-bindings job to test it
# if wanted, it can live separately.
# file(GLOB libyui_specs "libyui/*_spec.rb")
# foreach(test ${libyui_specs})
# ADD_TEST(${test} rspec --format doc ${test})
# endforeach(test)
2 changes: 1 addition & 1 deletion tests/integration/std_streams_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def std_puts(message)

# Regression test for the fix of bnc#943757 implemented
# in libyui-ncurses 2.47.3
describe "streams redirection in libyui-ncurses" do
xdescribe "streams redirection in libyui-ncurses" do
include Yast::UIShortcuts

around do |example|
Expand Down

0 comments on commit 8de4bf1

Please sign in to comment.