cargo/tests/testsuite
bors cf3bfc904d Auto merge of #8378 - jstasiak:backups, r=ehuss
Exclude the target directory from backups using CACHEDIR.TAG

This patch follows the lead of #4386 (which excludes target directories
from Time Machine backups) and is motived by the same reasons listen
in #3884. CACHEDIR.TAG is an OS-independent mechanism supported by Borg,
restic, GNU Tar and other backup/archiving solutions.

See https://bford.info/cachedir/ for more information about the
specification. This has been discussed in Rust Internals earlier this
year[1] and it seems like it's an uncontroversial improvement so I went
ahead with the patch.

One thing I'm wondering is whether this should maybe cover the whole main target directory (right now it applies to `target/debug`, `target/release` etc. but not to target root).

[1] https://internals.rust-lang.org/t/pre-rfc-put-cachedir-tag-into-target/12262/11
2020-07-02 14:49:38 +00:00
..
mock-std Use issue = "none" instead of "0" 2019-12-22 17:21:13 +09:00
advanced_env.rs Fixes for some test errors on Windows. 2019-12-19 09:44:02 -08:00
alt_registry.rs Add support for workspace.metadata table 2020-06-05 09:32:54 -07:00
bad_config.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
bad_manifest_path.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
bench.rs Rework how Cargo computes the rustc file outputs. 2020-05-05 14:32:52 -07:00
build.rs Auto merge of #8378 - jstasiak:backups, r=ehuss 2020-07-02 14:49:38 +00:00
build_plan.rs Rework how Cargo computes the rustc file outputs. 2020-05-05 14:32:52 -07:00
build_script.rs Allow package.exclude patterns to match directories. 2020-04-22 11:26:19 -07:00
build_script_env.rs Use fs helpers instead of File functions. 2020-04-17 07:56:16 -07:00
cache_messages.rs Revert always computing filename Metadata. 2020-05-06 12:06:39 -07:00
cargo_alias_config.rs Fix using global options before an alias. 2020-01-31 13:56:06 -08:00
cargo_command.rs Ignore broken console output in some situations. 2020-05-13 16:22:24 -07:00
cargo_features.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
cargo_targets.rs Warn on Windows about reserved target names. 2020-03-02 16:04:25 -08:00
cfg.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
check.rs Auto merge of #7533 - yaahc:clippy-banishment, r=ehuss 2020-03-14 20:50:15 +00:00
clean.rs Auto merge of #8378 - jstasiak:backups, r=ehuss 2020-07-02 14:49:38 +00:00
collisions.rs Don't hash executable filenames on apple platforms. 2020-06-04 16:14:17 -07:00
concurrent.rs Use fs helpers instead of File functions. 2020-04-17 07:56:16 -07:00
config.rs Move string interning to util 2020-06-26 19:55:29 +02:00
config_cli.rs Migrate from the failure crate to anyhow 2020-01-07 16:50:09 -08:00
config_include.rs Fix tests with enoent error message on non-english systems. 2020-05-29 12:34:17 -07:00
corrupt_git.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
cross_compile.rs Auto merge of #8359 - ehuss:doctest-xcompile-linker, r=alexcrichton 2020-06-15 14:38:34 +00:00
cross_publish.rs Do not implicitly load registry.token with --index. 2020-04-19 09:20:54 -07:00
custom_target.rs add test for doctests with custom target paths 2020-04-17 17:35:10 +02:00
death.rs Add a wrapper to wait for rustc to exit. 2020-04-27 12:23:09 -07:00
dep_info.rs Parse # env-dep directives in dep-info files 2020-06-29 08:15:15 -07:00
directory.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
doc.rs Exclude whole target/ from backups 2020-07-01 22:47:59 +02:00
edition.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
error.rs Rework internal errors. 2020-02-17 19:03:57 -08:00
features.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
features2.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
fetch.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
fix.rs Use fs helpers instead of File functions. 2020-04-17 07:56:16 -07:00
freshness.rs Handle env var escaping 2020-06-29 12:57:09 -07:00
generate_lockfile.rs Use fs helpers instead of File functions. 2020-04-17 07:56:16 -07:00
git.rs Improve support for non-master main branches 2020-06-18 10:56:19 -07:00
git_auth.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
git_gc.rs fix most remaining clippy findings (mostly redundant imports) 2020-02-21 12:15:16 +01:00
init.rs Use fs helpers instead of File functions. 2020-04-17 07:56:16 -07:00
install.rs Fix post-execution path checks to be compatible with Windows 2020-06-20 23:37:56 -07:00
install_upgrade.rs Bump to semver 0.10 for VersionReq::is_exact 2020-05-25 11:11:45 +01:00
jobserver.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
list_targets.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
local_registry.rs Use fs helpers instead of File functions. 2020-04-17 07:56:16 -07:00
locate_project.rs Add a test for cargo locate-project 2019-12-10 09:18:12 +09:00
lockfile_compat.rs Add a --offline hint. 2019-12-03 10:47:32 -08:00
login.rs Use fs helpers instead of File functions. 2020-04-17 07:56:16 -07:00
lto.rs Some LTO fixes. 2020-06-10 16:02:35 -07:00
main.rs fix clippy warnings 2020-06-04 00:55:45 +02:00
member_errors.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
message_format.rs Add "build-finished" JSON message. 2020-04-04 18:56:50 -07:00
metabuild.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
metadata.rs Auto merge of #8323 - naerbnic:add_workspace_metadata_table, r=alexcrichton 2020-06-23 15:18:10 +00:00
minimal_versions.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
multitarget.rs clippy fixes 2020-05-01 01:16:30 +02:00
net_config.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
new.rs Use fs helpers instead of File functions. 2020-04-17 07:56:16 -07:00
offline.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
out_dir.rs Rework how Cargo computes the rustc file outputs. 2020-05-05 14:32:52 -07:00
owner.rs Ignore broken console output in some situations. 2020-05-13 16:22:24 -07:00
package.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
package_features.rs Merge -Zpackage-features2 and -Zpackage-features. 2020-04-08 14:06:09 -07:00
patch.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
path.rs Use fs helpers instead of File functions. 2020-04-17 07:56:16 -07:00
paths.rs Correct reference link 2019-12-23 12:00:22 +09:00
pkgid.rs Add test for cargo pkgid 2019-12-29 20:42:50 +09:00
plugins.rs Support multiple --target flags on the CLI 2020-04-28 15:16:47 -07:00
proc_macro.rs Fix an accidental raw access of field 2020-06-03 07:44:22 -07:00
profile_config.rs Move string interning to util 2020-06-26 19:55:29 +02:00
profile_custom.rs Add named config profiles. 2020-01-13 13:27:33 -08:00
profile_overrides.rs Add support for -Cembed-bitcode=no 2020-04-01 14:31:06 -07:00
profile_targets.rs Add support for -Cembed-bitcode=no 2020-04-01 14:31:06 -07:00
profiles.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
pub_priv.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
publish.rs Fix failure with missing readme. 2020-06-11 14:55:33 -07:00
publish_lockfile.rs Allow cargo package --list even for things that don't package. 2020-04-28 10:49:21 -07:00
read_manifest.rs Fix failure with missing readme. 2020-06-11 14:55:33 -07:00
registry.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
rename_deps.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
replace.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
required_features.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
run.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
rustc.rs Add support for -Cembed-bitcode=no 2020-04-01 14:31:06 -07:00
rustc_info_cache.rs Re-enable rustc-info-cache test again 2020-04-24 12:54:24 -07:00
rustdoc.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
rustdoc_extern_html.rs Fix rust-docs in CI. 2020-05-26 15:43:28 -07:00
rustdocflags.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
rustflags.rs Use fs helpers instead of File functions. 2020-04-17 07:56:16 -07:00
search.rs Ignore broken console output in some situations. 2020-05-13 16:22:24 -07:00
shell_quoting.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
standard_lib.rs Support multiple --target flags on the CLI 2020-04-28 15:16:47 -07:00
test.rs Rework how Cargo computes the rustc file outputs. 2020-05-05 14:32:52 -07:00
timings.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
tool_paths.rs Improvements to StringList config handling. 2020-02-16 15:29:59 -08:00
tree.rs Switch --invert to take the package name as an argument. 2020-04-03 19:52:21 -07:00
tree_graph_features.rs Switch --invert to take the package name as an argument. 2020-04-03 19:52:21 -07:00
unit_graph.rs Fix tests 2020-05-16 22:28:06 +03:00
update.rs Add support for workspace.metadata table 2020-06-05 09:32:54 -07:00
vendor.rs Improve git error messages a bit 2020-06-25 08:47:15 -07:00
verify_project.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
version.rs fix most remaining clippy findings (mostly redundant imports) 2020-02-21 12:15:16 +01:00
warn_on_failure.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
workspaces.rs Rephrased error message for disallowed sections in virtual workspace 2020-05-14 10:26:20 +02:00
yank.rs Do not implicitly load registry.token with --index. 2020-04-19 09:20:54 -07:00