Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!-- spell-checker:ignore (flags) Ccodegen Coverflow Cpanic Cinstrument Zpanic reimplementing toybox RUNTEST CARGOFLAGS nextest prereq autopoint gettext texinfo automake findutils shellenv libexec gnubin toolchains gsed -->
<!-- spell-checker:ignore fakeroot setid -->

# Setting up your local development environment

Expand Down Expand Up @@ -136,6 +137,15 @@ If you would prefer to test a select few utilities:
cargo test --features "chmod mv tail" --no-default-features
```

The Linux cross-device `mv` ownership regression additionally uses the optional
`fakeroot` executable and requires a writable `/dev/shm`. Run it as a non-root
user; it reports a skip when fakeroot is unavailable or `/dev/shm` is on the
source filesystem:

```shell
cargo test --no-default-features --features mv test_mv_cross_device_fakeroot_ownership_and_setid
```

If you also want to test the core utilities:

```shell
Expand Down
2 changes: 1 addition & 1 deletion src/uu/mv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ windows-sys = { workspace = true, features = [
] }

[target.'cfg(unix)'.dependencies]
rustix = { workspace = true, features = ["fs"] }
rustix = { workspace = true, features = ["fs", "process"] }

[[bin]]
name = "mv"
Expand Down
Loading
Loading