90 Commits

Author SHA1 Message Date
Malhar Vora 34e2b369b3 Implement basic lsns utility (#554)
---------

Signed-off-by: Malhar Vora <mlvora.2010@gmail.com>
2026-06-09 09:39:55 +02:00
Jesse Rosenstock 317e38f6d2 tests: lsmem: Use tempfile::TempDir for test sysroot
Refactor `TestSysMemory` in `test_lsmem.rs` to use the `tempfile` crate
for managing the temporary sysroot directory.
2026-04-19 10:17:36 +02:00
Daniel Hofstetter 5dabe2d37c clippy: fix warnings from useless_vec lint 2025-10-31 09:20:43 +01:00
Tuomas Tynkkynen 5283e85556 hexdump: Add tool
This supports the same functionality as util-linux hexdump except for
--format and --color options. Output should be bit-exact, except as
added bonus this supports the `-s` option on pipes and other non-seekable
files.
2025-10-21 18:17:21 +03:00
Tuomas Tynkkynen f9340c3bdc cal: Add tool
This supports most of the important flags and gives bit-exact output
except for spacing in the header line.
2025-09-25 00:03:45 +03:00
Tuomas Tynkkynen 38bdf37fcd setpgid: Add tool 2025-09-20 20:03:51 +03:00
Daniel Hofstetter b3d4549108 tests: remove unused imports 2025-09-17 09:09:44 +02:00
Tuomas Tynkkynen fd69cc2230 nologin: Add tool 2025-09-14 18:58:46 +03:00
Daniel Hofstetter 3f22a93244 uuidgen: adapt tests to uutests 2025-08-08 10:53:37 +02:00
Sylvestre Ledru fa608413b2 Move to use uutests 2025-08-08 10:53:37 +02:00
Sebastian Bentmar Holgersson b5d6d188bf feat(last): add --since and --until (#342)
* feat(last): add --since and --until

* clean up clap slightly

* fix clippy

* test(last): add tests for --since and --until

* refactor(last): resolve review comments

* test(last): set cfg for since and until to unix

* remove unnecessary comment

* move parse_time_value below uumain

* minor cleanup

* fix ci issues
2025-08-01 16:12:39 +02:00
Daniel Hofstetter 12b1e3d6e9 clippy: fix warnings from uninlined_format_args 2025-06-27 11:51:13 +02:00
Lionel Mendes 55c8ee013b last: fix some hostnames are not shown properly with --hostname option issue 212 (#246)
* last: fix not all hostnames are shown in the last column with --hostlast option

* last: fix not all hostnames are shown in the last column with --hostlast option

* Added test case related to the hostlast option in last command.

* Change binary input fixture name for last command and Fix format source code.

* feat: add macOS platform & update tests for compatibility

* fix: correct formatting in platform and test files for macOS compatibility

* fix: format

* fix: correct variable name and improve test output handling
2025-05-08 17:32:25 +02:00
Reagan Bohan 1dcb5524e2 Implement uuidgen
Implement uuidgen as a wrapper over the `uuid` crate.
2025-05-02 11:53:04 +00:00
Koutheir Attouchi c9df39b261 Implemented lslocks. 2025-04-21 21:04:12 -04:00
Alexandra 1a5896c3be mcookie: fix and add tests 2025-04-08 20:12:48 +02:00
chalice19 7254ab6238 mcookie: generate cookie even if specified file doesn't exist (#285)
* mcookie: don't quit if specified file doesn't exist

* mcookie: add test

* minor fixes

* minor fix

* formatted

---------

Co-authored-by: Alexandra <aspasparagus@gmail.com>
2025-04-08 15:05:17 +02:00
Quang f24471694c mcookie: read from stdin if file is - (#279)
* read from stdin

* Update mcookie.rs

* test

* fmt

* Update mcookie.rs

* Update mcookie.rs
2025-04-05 17:03:13 +02:00
Quang 0113e301e8 mcookie - fix providing /dev/random or /dev/urandom as file leads to infinite loop (#274)
* Update mcookie.rs

* edit doc

* fmt

* fix for unix and non-unix build

* add test case

* refactor

* fmt

* fix
2025-03-31 09:54:28 +02:00
Quang 36b3af044c mcookie: add support for human-readable sizes with -m option (#268)
* Create size.rs

* parse max size from human-readable strings

* tests for human-readable strings

* fmt

* fix failed tests and edge cases

* fix fmt

* cpr & license

* use usimpleerror

* fmt
2025-03-31 09:26:49 +02:00
Daniel Hofstetter c1bf33d9b6 lslocks: add missing #[cfg(target_os = "linux")] 2025-03-21 14:22:40 +01:00
Daniel Hofstetter ee4408ea10 mcookie: fix "unused import" warning in test 2025-03-21 14:20:52 +01:00
alxndrv f91b55d0ae Add tests for mcookie 2025-03-18 20:17:55 +02:00
Daniel Hofstetter e9d1600bc4 Add renice
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2025-03-12 10:05:26 +01:00
Tuomas Tynkkynen c8aa5a6b57 mesg: Add tool 2025-03-09 02:13:47 +02:00