aboutsummaryrefslogtreecommitdiff
path: root/gnu/tests/install.scm
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2021-03-21 15:15:36 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2021-03-21 15:36:06 +0100
commitebe967e1b7dec34b89199136ab9c0fb95092009a (patch)
tree4b1b203fe31df862323c7d353dc32ec5a75be2d1 /gnu/tests/install.scm
parentf03a2e99fad1827e0b4bdf68b7ec21bdb8d77525 (diff)
downloadguix-ebe967e1b7dec34b89199136ab9c0fb95092009a.tar.gz
guix-ebe967e1b7dec34b89199136ab9c0fb95092009a.zip
gnu: vim: Update to 8.2.2632.
* gnu/packages/vim.scm (vim): Update to 8.2.2632. [arguments]: Disable another test (Test_combining_double_width).
Diffstat (limited to 'gnu/tests/install.scm')
0 files changed, 0 insertions, 0 deletions
0.0") (source (origin (method url-fetch) (uri (rubygems-uri "foo" version)) (sha256 (base32 "1a270mlajhrmpqbhxcqjqypnvgrq4pgixpv3w9gwp1wrrapnwrzk")))) (build-system ruby-build-system) (propagated-inputs (list bundler ruby-bar)) (synopsis "A cool gem") (description "This package provides a cool gem.") (home-page "https://example.com") (license (list license:expat license:asl2.0))) #t) (x (pk 'fail x #f))))) (test-assert "gem->guix-package with a specific version" ;; Replace network resources with sample data. (mock ((guix http-client) http-fetch (lambda (url . rest) (match url ("https://rubygems.org/api/v2/rubygems/foo/versions/2.0.0.json" (values (open-input-string test-foo-v2-json) (string-length test-foo-v2-json))) (_ (error "Unexpected URL: " url))))) (match (gem->guix-package "foo" #:version "2.0.0") (`(package (name "ruby-foo") (version "2.0.0") (source (origin (method url-fetch) (uri (rubygems-uri "foo" version)) (sha256 (base32 "1a270mlajhrmpqbhxcqjqypnvgrq4pgixpv3w9gwp1wrrapnwrzk")))) (build-system ruby-build-system) (propagated-inputs (list bundler ruby-bar)) (synopsis "A cool gem") (description "This package provides a cool gem.") (home-page "https://example.com") (license (list license:expat license:asl2.0))) #t) (x (pk 'fail x #f))))) (test-assert "gem-recursive-import" ;; Replace network resources with sample data. (mock ((guix http-client) http-fetch (lambda (url . rest) (match url ("https://rubygems.org/api/v1/gems/foo.json" (values (open-input-string test-foo-json) (string-length test-foo-json))) ("https://rubygems.org/api/v1/gems/bar.json" (values (open-input-string test-bar-json) (string-length test-bar-json))) ("https://rubygems.org/api/v1/gems/bundler.json" (values (open-input-string test-bundler-json) (string-length test-bundler-json))) (_ (error "Unexpected URL: " url))))) (match (gem-recursive-import "foo") (`((package (name "ruby-bar") (version "1.0.0") (source (origin (method url-fetch) (uri (rubygems-uri "bar" version)) (sha256 (base32 "1a270mlajhrmpqbhxcqjqypnvgrq4pgixpv3w9gwp1wrrapnwrzk")))) (build-system ruby-build-system) (propagated-inputs (list bundler)) (synopsis "Another cool gem") (description "Another cool gem.") (home-page "https://example.com") (license #f)) ;no licensing info (package (name "ruby-foo") (version "1.0.0") (source (origin (method url-fetch) (uri (rubygems-uri "foo" version)) (sha256 (base32 "1a270mlajhrmpqbhxcqjqypnvgrq4pgixpv3w9gwp1wrrapnwrzk")))) (build-system ruby-build-system) (propagated-inputs (list bundler ruby-bar)) (synopsis "A cool gem") (description "This package provides a cool gem.") (home-page "https://example.com") (license (list license:expat license:asl2.0)))) #t) (x (pk 'fail x #f))))) (test-assert "gem-recursive-import with a specific version" ;; Replace network resources with sample data. (mock ((guix http-client) http-fetch (lambda (url . rest) (match url ("https://rubygems.org/api/v2/rubygems/foo/versions/2.0.0.json" (values (open-input-string test-foo-v2-json) (string-length test-foo-v2-json))) ("https://rubygems.org/api/v1/gems/bar.json" (values (open-input-string test-bar-json) (string-length test-bar-json))) ("https://rubygems.org/api/v1/gems/bundler.json" (values (open-input-string test-bundler-json) (string-length test-bundler-json))) (_ (error "Unexpected URL: " url))))) (match (gem-recursive-import "foo" "2.0.0") (`((package (name "ruby-bar") (version "1.0.0") (source (origin (method url-fetch) (uri (rubygems-uri "bar" version)) (sha256 (base32 "1a270mlajhrmpqbhxcqjqypnvgrq4pgixpv3w9gwp1wrrapnwrzk")))) (build-system ruby-build-system) (propagated-inputs (list bundler)) (synopsis "Another cool gem") (description "Another cool gem.") (home-page "https://example.com") (license #f)) ;no licensing info (package (name "ruby-foo") (version "2.0.0") (source (origin (method url-fetch) (uri (rubygems-uri "foo" version)) (sha256 (base32 "1a270mlajhrmpqbhxcqjqypnvgrq4pgixpv3w9gwp1wrrapnwrzk")))) (build-system ruby-build-system) (propagated-inputs (list bundler ruby-bar)) (synopsis "A cool gem") (description "This package provides a cool gem.") (home-page "https://example.com") (license (list license:expat license:asl2.0)))) #t) (x (pk 'fail x #f))))) (test-equal "package-latest-release" (list '("https://rubygems.org/downloads/foo-1.0.0.gem") (list (upstream-input (name "bundler") (downstream-name name) (type 'propagated)) (upstream-input (name "bar") (downstream-name "ruby-bar") (type 'propagated)))) (mock ((guix http-client) http-fetch (lambda (url . rest) (match url ("https://rubygems.org/api/v1/gems/foo.json" (values (open-input-string test-foo-json) (string-length test-foo-json))) (_ (error "Unexpected URL: " url))))) (let ((source (package-latest-release (dummy-package "ruby-foo" (version "0.1.2") (source (dummy-origin (method url-fetch) (uri (rubygems-uri "foo" version)))))))) (list (upstream-source-urls source) (upstream-source-inputs source))))) (test-end "gem")