test: Migrate some files to snapbox
### What does this PR try to resolve?
```
tests/testsuite/credential_process.rs
tests/testsuite/cross_compile.rs
tests/testsuite/cross_publish.rs
tests/testsuite/custom_target.rs
```
part of #14039
test: replace glob with explicit unordered calls
### What does this PR try to resolve?
This PR replace glob, which previously addressed ordering issues, with explicit `unordered()` calls.
test: migrate some files to snapbox
### What does this PR try to resolve?
Part of https://github.com/rust-lang/cargo/issues/14039.
Migrate following to snapbox:
- `tests/testsuite/local_registry.rs`
- `tests/testsuite/locate_project.rs`
- `tests/testsuite/lockfile_compat.rs`
- `tests/testsuite/login.rs`
- `tests/testsuite/logout.rs`
test: migrate registry and registry_auth to snapbox
### What does this PR try to resolve?
Part of https://github.com/rust-lang/cargo/issues/14039.
Migrate following to snapbox:
- `tests/testsuite/registry.rs`
- `tests/testsuite/registry_auth.rs`
### Additional information
Parameterize shared logic over inline snapshots to prevent the content from being appended multiple times in `str![]` when it's called multiple times within a reusable function.
Big thanks to `@weihanglo` for helping me out!
test: migrate package* and publish* to snapbox
### What does this PR try to resolve?
Part of https://github.com/rust-lang/cargo/issues/14039.
Migrate following to snapbox:
- `tests/testsuite/package.rs`
- `tests/testsuite/package_features.rs`
- `tests/testsuite/publish.rs`
- `tests/testsuite/publish_lockfile.rs`
test: migrate search, source_replacement and standard_lib to snapbox
### What does this PR try to resolve?
Part of https://github.com/rust-lang/cargo/issues/14039.
Migrate following to snapbox:
- `tests/testsuite/search.rs`
- `tests/testsuite/source_replacement.rs`
- `tests/testsuite/standard_lib.rs`
test: migrate `dep_info/diagnostics/direct_minimal_versions` to snapbox
### What does this PR try to resolve?
Complete the migration of the following files:
```
tests/testsuite/dep_info.rs
tests/testsuite/diagnostics.rs
tests/testsuite/direct_minimal_versions.rs
```
part of #14039
test: omit target-dir name
This was found during submodule update in rust-lang/rust repo.
```
---- publish_lockfile::note_resolve_changes stdout ----
thread 'publish_lockfile::note_resolve_changes' panicked at tests/testsuite/publish_lockfile.rs:255:10:
error: Expected lines did not match (ignoring order):
0 6 Packaging foo v0.0.1 ([..])
1 0 Archiving Cargo.lock
2 0 Archiving Cargo.toml
3 1 Archiving Cargo.toml.orig
4 0 Archiving src/main.rs
5 0 Updating `dummy-registry` index
6 2 note: package `multi v0.1.0` added to the packaged Cargo.lock file, was originally sourced from `[..]`
7 2 note: package `patched v1.0.0` added to the packaged Cargo.lock file, was originally sourced from `[..]`
8 0 Packaged 4 files, 2.1KiB (1.1KiB compressed)
9 -warning: no (git) Cargo.toml found at `target/tmp/[..]/foo/Cargo.toml` in workdir `[..]`
9 +warning: no (git) Cargo.toml found at `build/aarch64-apple-darwin/stage2-tools/aarch64-apple-darwin/tmp/cit/t0/foo/Cargo.toml` in workdir `[..]`
```
This was found during submodule update in rust-lang/rust repo.
```
error: Expected lines did not match (ignoring order):
0 6 Packaging foo v0.0.1 ([..])
1 0 Archiving Cargo.lock
2 0 Archiving Cargo.toml
3 1 Archiving Cargo.toml.orig
4 0 Archiving src/main.rs
5 0 Updating `dummy-registry` index
6 2 note: package `multi v0.1.0` added to the packaged Cargo.lock file, was originally sourced from `[..]`
7 2 note: package `patched v1.0.0` added to the packaged Cargo.lock file, was originally sourced from `[..]`
8 0 Packaged 4 files, 2.1KiB (1.1KiB compressed)
9 -warning: no (git) Cargo.toml found at `target/tmp/[..]/foo/Cargo.toml` in workdir `[..]`
9 +warning: no (git) Cargo.toml found at `build/aarch64-apple-darwin/stage2-tools/aarch64-apple-darwin/tmp/cit/t0/foo/Cargo.toml` in workdir `[..]`
```