summaryrefslogtreecommitdiff
path: root/gnu/packages/rust.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2025-10-22 09:21:43 +0300
committerAndreas Enge <andreas@enge.fr>2026-02-21 10:14:47 +0100
commit547876897d153659ae0091c19bc3242f69870422 (patch)
treed09233025085a2019c97f367fad1629b70de1916 /gnu/packages/rust.scm
parent65fa22263546c17432332425ccf8e7ac933f5d3b (diff)
gnu: rust: Enable more tests.
* gnu/packages/rust.scm (rust)[arguments]: Remove 'disable-tests-requiring-mercurial, 'disable-tests-requiring-crates.io phases. Adjust 'disable-tests-requiring-git, 'disable-tests-using-cargo-publish to skip fewer tests. [native-inputs]: Add git-minimal/pinned. Change-Id: Ide7510f2bc9b6a1d2e433b96673964723cc8d8be
Diffstat (limited to 'gnu/packages/rust.scm')
-rw-r--r--gnu/packages/rust.scm65
1 files changed, 3 insertions, 62 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 7e537a32459..1f2aba2a84c 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -56,6 +56,7 @@
56 #:use-module (gnu packages python) 56 #:use-module (gnu packages python)
57 #:use-module (gnu packages ssh) 57 #:use-module (gnu packages ssh)
58 #:use-module (gnu packages tls) 58 #:use-module (gnu packages tls)
59 #:use-module (gnu packages version-control)
59 #:use-module (gnu packages web) 60 #:use-module (gnu packages web)
60 #:use-module (gnu packages) 61 #:use-module (gnu packages)
61 #:use-module (guix build-system cargo) 62 #:use-module (guix build-system cargo)
@@ -1661,63 +1662,15 @@ ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
1661 "")))) 1662 ""))))
1662 (add-after 'unpack 'disable-tests-requiring-git 1663 (add-after 'unpack 'disable-tests-requiring-git
1663 (lambda _ 1664 (lambda _
1664 (substitute* "src/tools/cargo/tests/testsuite/git.rs"
1665 ,@(make-ignore-test-list
1666 '("fn fetch_downloads_with_git2_first_"
1667 "fn corrupted_checkout_with_cli")))
1668 (substitute* "src/tools/cargo/tests/testsuite/build.rs"
1669 ,@(make-ignore-test-list
1670 '("fn build_with_symlink_to_path_dependency_with_build_script_in_git")))
1671 (substitute* "src/tools/cargo/tests/testsuite/publish_lockfile.rs" 1665 (substitute* "src/tools/cargo/tests/testsuite/publish_lockfile.rs"
1672 ,@(make-ignore-test-list 1666 ,@(make-ignore-test-list
1673 '("fn note_resolve_changes"))))) 1667 '("fn note_resolve_changes")))))
1674 (add-after 'unpack 'disable-tests-requiring-mercurial
1675 (lambda _
1676 (with-directory-excursion "src/tools/cargo/tests/testsuite/cargo_init"
1677 (substitute* '("mercurial_autodetect/mod.rs"
1678 "simple_hg_ignore_exists/mod.rs")
1679 ,@(make-ignore-test-list
1680 '("fn case"))))))
1681 (add-after 'unpack 'disable-tests-using-cargo-publish 1668 (add-after 'unpack 'disable-tests-using-cargo-publish
1682 (lambda _ 1669 (lambda _
1683 (with-directory-excursion "src/tools/cargo/tests/testsuite" 1670 (with-directory-excursion "src/tools/cargo/tests/testsuite"
1684 (substitute* "alt_registry.rs"
1685 ,@(make-ignore-test-list
1686 '("fn warn_for_unused_fields")))
1687 (substitute* '("cargo_add/locked_unchanged/mod.rs"
1688 "cargo_add/lockfile_updated/mod.rs"
1689 "cargo_remove/update_lock_file/mod.rs")
1690 ,@(make-ignore-test-list
1691 '("fn case")))
1692 (substitute* "git_shallow.rs"
1693 ,@(make-ignore-test-list
1694 '("fn gitoxide_clones_registry_with_shallow_protocol_and_aborts_and_updates_again"
1695 "fn gitoxide_clones_registry_with_shallow_protocol_and_follow_up_fetch_maintains_shallowness"
1696 "fn gitoxide_clones_registry_with_shallow_protocol_and_follow_up_with_git2_fetch"
1697 "fn gitoxide_clones_registry_without_shallow_protocol_and_follow_up_fetch_uses_shallowness"
1698 "fn gitoxide_clones_shallow_two_revs_same_deps"
1699 "fn gitoxide_fetch_complete_index_then_shallow"
1700 "fn gitoxide_fetch_shallow_dep_branch_and_rev"
1701 "fn gitoxide_fetch_shallow_dep_branch_to_rev"
1702 "fn gitoxide_fetch_shallow_dep_then_git2_fetch_complete"
1703 "fn gitoxide_fetch_shallow_dep_then_gitoxide_fetch_complete"
1704 "fn gitoxide_fetch_shallow_dep_two_revs"
1705 "fn gitoxide_fetch_shallow_index_then_abort_and_update"
1706 "fn gitoxide_fetch_shallow_index_then_git2_fetch_complete"
1707 "fn gitoxide_fetch_shallow_index_then_preserve_shallow"
1708 "fn gitoxide_git_dependencies_switch_from_branch_to_rev"
1709 "fn gitoxide_shallow_clone_followed_by_non_shallow_update"
1710 "fn shallow_deps_work_with_revisions_and_branches_mixed_on_same_dependency"
1711 "fn gitoxide_clones_git_dependency_with_shallow_protocol_and_git2_is_used_for_followup_fetches")))
1712 (substitute* "install.rs" 1671 (substitute* "install.rs"
1713 ,@(make-ignore-test-list 1672 ,@(make-ignore-test-list
1714 '("fn failed_install_retains_temp_directory"))) 1673 '("fn failed_install_retains_temp_directory"))))))
1715 (substitute* "offline.rs"
1716 ,@(make-ignore-test-list
1717 '("fn gitoxide_cargo_compile_offline_with_cached_git_dep_shallow_dep")))
1718 (substitute* "patch.rs"
1719 ,@(make-ignore-test-list
1720 '("fn gitoxide_clones_shallow_old_git_patch"))))))
1721 ,@(if (target-riscv64?) 1674 ,@(if (target-riscv64?)
1722 ;; Keep this phase separate so it can be adjusted without needing 1675 ;; Keep this phase separate so it can be adjusted without needing
1723 ;; to adjust the skipped tests on other architectures. 1676 ;; to adjust the skipped tests on other architectures.
@@ -1774,19 +1727,6 @@ ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
1774 ,@(make-ignore-test-list 1727 ,@(make-ignore-test-list
1775 '("fn test_missing_tests"))))))) 1728 '("fn test_missing_tests")))))))
1776 `()) 1729 `())
1777 (add-after 'unpack 'disable-tests-requiring-crates.io
1778 (lambda _
1779 (with-directory-excursion "src/tools/cargo/tests/testsuite"
1780 (substitute* "install.rs"
1781 ,@(make-ignore-test-list
1782 '("fn install_global_cargo_config")))
1783 (substitute* '("cargo_add/normalize_name_path_existing/mod.rs"
1784 "cargo_info/within_ws_with_alternative_registry/mod.rs")
1785 ,@(make-ignore-test-list
1786 '("fn case")))
1787 (substitute* "package.rs"
1788 ,@(make-ignore-test-list
1789 '("fn workspace_with_local_deps_index_mismatch"))))))
1790 (add-after 'unpack 'disable-miscellaneous-broken-tests 1730 (add-after 'unpack 'disable-miscellaneous-broken-tests
1791 (lambda _ 1731 (lambda _
1792 (substitute* "src/tools/cargo/tests/testsuite/check_cfg.rs" 1732 (substitute* "src/tools/cargo/tests/testsuite/check_cfg.rs"
@@ -2010,6 +1950,7 @@ exec -a \"$0\" \"~a\" \"$@\""
2010 `("clang-source" ,(package-source clang-runtime-21)) 1950 `("clang-source" ,(package-source clang-runtime-21))
2011 ;; Add test inputs. 1951 ;; Add test inputs.
2012 `("gdb" ,gdb/pinned) 1952 `("gdb" ,gdb/pinned)
1953 `("git-minimal" ,git-minimal/pinned)
2013 `("procps" ,procps) 1954 `("procps" ,procps)
2014 (package-native-inputs base-rust))) 1955 (package-native-inputs base-rust)))
2015 (native-search-paths 1956 (native-search-paths