• Home
  • Raw
  • Download

Lines Matching +full:rust +full:- +full:src

3 # Use of this source code is governed by a BSD-style license that can be
19 # rust_uprev sets SOURCE_ROOT to the output of `repo --show-toplevel`.
56 def test_fetch_difstfile_fail(self, *_args) -> None:
69 def test_fetch_distfile_acl_access_denied(self, *_args) -> None:
81 def test_fetch_distfile_acl_ok(self, *_args) -> None:
93 def test_fetch_distfile_acl_wrong(self, *_args) -> None:
106 def setUp(self) -> None:
132 def fake_urlretrieve(src: str, dest: Path) -> None:
140 if "--verify" in cmd:
147 "fakehttps://rustc-1.60.3-src.tar.gz",
148 Path("/fake/distfiles/rustc-1.60.3-src.tar.gz"),
153 "fakehttps://rustc-1.60.3-src.tar.gz",
154 Path("/fake/distfiles/rustc-1.60.3-src.tar.gz"),
157 "fakehttps://rustc-1.60.3-src.tar.gz.asc",
158 Path("/fake/distfiles/rustc-1.60.3-src.tar.gz.asc"),
164 (["gnupg", "--refresh-keys", "1234567"], {"check": True}),
169 def _urlretrieve(src, dest): argument
170 if src.endswith(".asc"):
172 return self.fake_urlretrieve(src, dest)
178 "fakehttps://rustc-1.60.3-src.tar.gz",
179 Path("/fake/distfiles/rustc-1.60.3-src.tar.gz"),
186 if "--verify" in cmd:
194 "fakehttps://rustc-1.60.3-src.tar.gz",
195 Path("/fake/distfiles/rustc-1.60.3-src.tar.gz"),
202 if "--verify" in cmd:
210 "fakehttps://rustc-1.60.3-src.tar.gz",
211 Path("/fake/distfiles/rustc-1.60.3-src.tar.gz"),
218 if "--verify" in cmd:
226 "fakehttps://rustc-1.60.3-src.tar.gz",
227 Path("/fake/distfiles/rustc-1.60.3-src.tar.gz"),
234 if "--verify" in cmd:
242 "fakehttps://rustc-1.60.3-src.tar.gz",
243 Path("/fake/distfiles/rustc-1.60.3-src.tar.gz"),
254 ebuild = tmpdir / "test-1.3.4.ebuild"
256 (tmpdir / "test-1.2.3.ebuild").touch()
265 ebuild = tmpdir / "test-1.2.3.ebuild"
273 ebuild = tmpdir / "test-1.3.4-r3.ebuild"
275 (tmpdir / "test-1.2.3.ebuild").touch()
284 (tmpdir / "test-1.3.4-r3.ebuild").touch()
285 (tmpdir / "test-1.3.5.ebuild").touch()
292 ebuild = tmpdir / "test-1.3.4-r3.ebuild"
294 (tmpdir / "test-1.3.5.ebuild").touch()
305 ebuild = tmpdir / "test-1.3.4.ebuild"
307 (tmpdir / "test-1.3.4-r1.ebuild").symlink_to("test-1.3.4.ebuild")
318 rust_1_49_1_ebuild = tmpdir / "rust-1.49.1.ebuild"
319 rust_1_50_0_ebuild = tmpdir / "rust-1.50.0.ebuild"
320 rust_1_50_0_r1_ebuild = tmpdir / "rust-1.50.0-r1.ebuild"
342 self.assertFalse(rust_uprev.mirror_has_file("rustc-1.69.0-src.tar.gz"))
348 # pylint: disable=line-too-long
349 stdout="gs://chromeos-localmirror/distfiles/rustc-1.69.0-src.tar.gz",
351 self.assertTrue(rust_uprev.mirror_has_file("rustc-1.69.0-src.tar.gz"))
357 def setUp(self) -> None:
396 "-a",
397 "public-read",
398 "/fake/distdir/rustc-1.67.3-src.tar.gz",
399 "fakegs://fakemirror/rustc-1.67.3-src.tar.gz",
412 ebuild_dir = Path(tmpdir, "test-ebuilds")
414 ebuild = Path(ebuild_dir, "test-3.1.4.ebuild")
416 Path(ebuild_dir, "unrelated-1.0.0.ebuild").touch()
421 ["git", "rm", "test-3.1.4.ebuild"], cwd=ebuild_dir
427 ebuild_dir = Path(tmpdir, "test-ebuilds")
429 ebuild = Path(ebuild_dir, "test-3.1.4.ebuild")
431 symlink = Path(ebuild_dir, "test-3.1.4-r5.ebuild")
433 Path(ebuild_dir, "unrelated-1.0.0.ebuild").touch()
440 ["git", "rm", "test-3.1.4.ebuild"], cwd=ebuild_dir
443 ["git", "rm", "test-3.1.4-r5.ebuild"], cwd=ebuild_dir
464 actual = rust_uprev.RustVersion.parse_from_ebuild("rust-1.2.3.ebuild")
468 "rust-1.2.3-r1.ebuild"
474 rust_uprev.RustVersion.parse("invalid-rust-1.2.3")
476 "failed to parse 'invalid-rust-1.2.3'", str(context.exception)
551 ebuild_file = "/path/to/eclass/cros-rustc.eclass"
555 self.ebuild_without_profdata, encoding="utf-8"
562 ebuild_file = "/path/to/eclass/cros-rustc.eclass"
566 self.ebuild_with_profdata, encoding="utf-8"
573 ebuild_file = "/path/to/eclass/cros-rustc.eclass"
596 ebuild_file = "/path/to/rust/cros-rustc.eclass"
602 self.ebuild_file_after, encoding="utf-8"
607 ebuild_file = "/path/to/rust/rust-1.3.5.ebuild"
613 "BOOTSTRAP_VERSION not found in /path/to/rust/rust-1.3.5.ebuild",
626 rust_uprev.RUST_PATH, "rust-{self.new_version}.ebuild"
631 f"dev-lang/rust-{self.old_version}\n"
632 f"dev-lang/rust-{self.current_version}"
635 f"dev-lang/rust-{self.old_version}\n"
636 f"dev-lang/rust-{self.current_version}\n"
637 f"dev-lang/rust-{self.new_version}"
642 "dev-lang/rust", self.new_version, add=True
650 f"dev-lang/rust-{self.old_version}\n"
651 f"dev-lang/rust-{self.current_version}\n"
652 f"dev-lang/rust-{self.new_version}"
655 f"dev-lang/rust-{self.current_version}\n"
656 f"dev-lang/rust-{self.new_version}"
661 "dev-lang/rust", self.old_version, add=False
676 rust_uprev.RUST_PATH, "rust-{self.new_version}.ebuild"
684 / f"dev-lang/rust/rust-{self.current_version}.ebuild"
688 / f"dev-lang/rust/rust-{self.new_version}.ebuild"
691 "dev-lang", "rust", self.current_version, self.new_version
698 ["git", "add", f"rust-{self.new_version}.ebuild"],
707 / f"dev-lang/rust-host/rust-host-{self.current_version}.ebuild"
711 / f"dev-lang/rust-host/rust-host-{self.new_version}.ebuild"
714 "dev-lang", "rust-host", self.current_version, self.new_version
721 ["git", "add", f"rust-host-{self.new_version}.ebuild"],
729 tmpdir, f"virtual/rust/rust-{self.old_version}.ebuild"
743 tmpdir, f"virtual/rust/rust-{self.old_version}.ebuild"
746 tmpdir, f"virtual/rust/rust-{self.old_version}-r14.ebuild"
772 f"/some/dir/virtual/rust/rust-{self.current_version}.ebuild"
777 ["git", "add", f"rust-{self.new_version}.ebuild"],
781 ebuild_path.parent.joinpath(f"rust-{self.current_version}.ebuild"),
782 ebuild_path.parent.joinpath(f"rust-{self.new_version}.ebuild"),
787 oldest_version_name = f"rust-{self.old_version}.ebuild"
790 (self.current_version, f"rust-{self.current_version}.ebuild"),
791 (self.new_version, f"rust-{self.new_version}.ebuild"),
802 (self.new_version, f"rust-{self.new_version}.ebuild"),
807 "Expect to find more than one Rust versions", str(context.exception)
816 rust_uprev.EBUILD_PREFIX, f"rust-to-{self.new_version}"
822 "x86_64-cros-linux-gnu",
823 "armv7a-cros-linux-gnueabihf",
824 "aarch64-cros-linux-gnu",
826 all_triples = ["x86_64-pc-linux-gnu"] + cros_targets
835 ["sudo", "emerge", "-j", "-G"]
836 + [f"cross-{x}/gcc" for x in cros_targets + ["arm-none-eabi"]]