[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
72/73: gnu: ruby-rubyzip: Re-instate all tests.
From: |
guix-commits |
Subject: |
72/73: gnu: ruby-rubyzip: Re-instate all tests. |
Date: |
Tue, 11 Apr 2023 22:07:32 -0400 (EDT) |
apteryx pushed a commit to branch staging
in repository guix.
commit f32c98c36711c1817ba7269337d9e22215282179
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Apr 11 21:35:54 2023 -0400
gnu: ruby-rubyzip: Re-instate all tests.
* gnu/packages/ruby.scm (ruby-rubyzip)
[arguments]: Do not patch ruby shebang in the patch-tests phase.
Remove the disable-problematic-tests phase. Add the
unpatch-some-source-shebangs phase.
---
gnu/packages/ruby.scm | 31 +++++++++----------------------
1 file changed, 9 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 0777d12095..acc8dc1af8 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3694,29 +3694,16 @@ Ruby Gems.")
(add-before 'check 'patch-tests
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "test/gentestfiles.rb"
- (("/usr/bin/zip") (which "zip")))
- (substitute* "test/input_stream_test.rb"
- (("/usr/bin/env ruby") (which "ruby")))))
- (add-before 'check 'disable-problematic-tests
+ (("/usr/bin/zip") (which "zip")))))
+ (add-after 'patch-source-shebangs 'unpatch-some-source-shebangs
(lambda _
- (let-syntax ((skip-tests
- (syntax-rules ()
- ((_ file test ...)
- (substitute* file
- (((string-append "def " test ".*") all)
- (string-append
- all " skip('fails on guix')\n")) ...)))))
- ;; The test failures were reported here:
- ;; https://github.com/rubyzip/rubyzip/issues/552.
- (skip-tests "test/stored_support_test.rb"
- "test_read")
- (skip-tests "test/stored_support_test.rb"
- "test_encrypted_read")
- (skip-tests "test/output_stream_test.rb"
- "test_put_next_entry_using_zip_entry_creates_\
-entries_with_correct_timestamps")
- (skip-tests "test/file_options_test.rb"
- "test_restore_times_true")))))))
+ ;; The test compare zipped files with data test files; since the
+ ;; zip files do not have their shebangs patched, the data files
+ ;; compared to their extracted version must also be left
+ ;; un-patched.
+ (substitute* (find-files "test/data" "\\.(txt|rb)$")
+ (((which "ruby"))
+ "/usr/bin/env ruby")))))))
(native-inputs
(list bundler ruby-simplecov zip unzip))
(synopsis "Ruby module is for reading and writing zip files")
- 45/73: gnu: rust-futures-test-0.3: Update to 0.3.26., (continued)
- 45/73: gnu: rust-futures-test-0.3: Update to 0.3.26., guix-commits, 2023/04/11
- 46/73: gnu: rust-futures-util-0.3: Update to 0.3.26., guix-commits, 2023/04/11
- 47/73: gnu: rust-futures-sink-0.3: Update to 0.3.26., guix-commits, 2023/04/11
- 44/73: gnu: rust-futures-task-0.3: Update to 0.3.26., guix-commits, 2023/04/11
- 48/73: gnu: Add rust-base64-0.21., guix-commits, 2023/04/11
- 50/73: gnu: rust-pem-1: Update to 1.1.1., guix-commits, 2023/04/11
- 63/73: gnu: gstreamer-docs: Update to 1.22.2., guix-commits, 2023/04/11
- 64/73: gnu: gstreamer: Update to 1.22.2., guix-commits, 2023/04/11
- 66/73: gnu: gst-plugins-good: Update to 1.22.2., guix-commits, 2023/04/11
- 71/73: gnu: python-gst: Update to 1.22.2., guix-commits, 2023/04/11
- 72/73: gnu: ruby-rubyzip: Re-instate all tests.,
guix-commits <=
- 68/73: gnu: gst-plugins-ugly: Update to 1.22.2., guix-commits, 2023/04/11
- 67/73: gnu: gst-plugins-bad: Update to 1.22.2., guix-commits, 2023/04/11
- 52/73: gnu: rust-openssl-sys-0.9: Propagate openssl., guix-commits, 2023/04/11
- 55/73: gnu: python-pytest-subtests: Update to 0.10.0., guix-commits, 2023/04/11
- 73/73: gnu: libexif: Update home page., guix-commits, 2023/04/11
- 51/73: gnu: rust-eyre-0.6: Update to 0.6.8., guix-commits, 2023/04/11
- 59/73: gnu: python-pyopenssl: Update to 23.1.1., guix-commits, 2023/04/11
- 60/73: gnu: python-service-identity: Update to 21.1.0., guix-commits, 2023/04/11
- 62/73: gnu: python-trio-typing: Switch to pyproject-build-system., guix-commits, 2023/04/11
- 69/73: gnu: gst-libav: Update to 1.22.2., guix-commits, 2023/04/11