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
Daniel Hofstetter
1211ab0a9e
clippy: fix warnings from
...
doc_overindented_list_items lint
2025-04-03 16:46:26 +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
Daniel Hofstetter
196f8407ae
tests: use succeeds() instead of run()
2025-03-04 09:43:18 +01:00
alxndrv
7e0fde94dd
lslocks: Add test skeleton
2025-02-21 22:42:52 +02:00
Daniel Hofstetter
93de68e70c
Merge pull request #216 from Foorack/lsmem
...
Improve `lsmem`
2025-02-15 16:10:03 +01:00
alxndrv
95d57eb230
lscpu: Improve tests a tiny bit
2025-02-13 12:58:21 +02:00
Foorack
72435a763f
lsmem: Generate test data dynamically instead
2025-02-10 10:47:24 +01:00
Foorack
5774bac639
lsmem: String path concat on Windows
2025-02-09 17:32:02 +01:00
Foorack
70849a620a
lsmem: implement --summary and more tests
2025-02-09 16:53:32 +01:00
Foorack
134ea11f5d
lsmem: make printable columns override split columns if no split columns are provided
2025-02-09 16:15:39 +01:00
Foorack
f188fd2ae0
lsmem: Fix splitting by zones
2025-02-09 15:48:46 +01:00
Foorack
f34ebac3fe
lsmem: Fix JSON output writing size as Number in bytes-mode
2025-02-09 15:11:13 +01:00
Foorack
58b6b85a8f
lsmem: Fix specified --output columns with JSON print
2025-02-09 12:21:32 +01:00
Foorack
89eeb23806
lsmem: sort tests
2025-02-09 12:21:32 +01:00
Foorack
8fa6345470
lsmem: Fix specified --output columns with pairs print
2025-02-09 12:21:32 +01:00
Foorack
924537e792
lsmem: Fix specified --output columns with raw print
2025-02-09 12:21:32 +01:00
Foorack
57b9c1f0f4
lsmem: Implement sysroot, add many test, more output alignment with util-linux
2025-02-09 12:21:32 +01:00
Foorack
306a366900
Add tests
2025-02-09 12:20:33 +01:00
Foorack
4b4f4932f7
Remove padding from table and add test
2025-02-09 12:20:33 +01:00
Daniel Hofstetter
adaf45f9a2
lscpu: disable test_hex test
2025-02-08 16:05:40 +01:00
Yang Hau
4fc7653e84
lscpu: Add option --json
...
closes #15
2025-02-08 16:05:26 +01:00
Sylvestre Ledru
9f5f567d90
Merge pull request #194 from dezgeg/blockdev
...
blockdev: Add tool
2025-02-05 18:19:41 +01:00
Daniel Hofstetter
6d3f21f999
lscpu: rename test function
2025-02-05 16:29:44 +01:00
Sylvestre Ledru
b31328b902
Merge pull request #206 from cakebaker/bump_rand
...
Bump `rand` & adapt tests to its API changes
2025-01-31 15:47:19 +01:00
Daniel Hofstetter
1ddd589e5e
tests: adapt to API changes in rand
2025-01-29 09:43:43 +01:00
Harshit Verma
16817945c4
test: add hex flag test for lscpu
2025-01-24 22:28:48 +05:30
Tuomas Tynkkynen
8c98151001
blockdev: Add tool
...
This supports most of the functionality; only missing functionality is
--report with no arguments.
2025-01-19 01:39:27 +02:00
Daniel Hofstetter
c07ff50a7c
dmesg: remove useless format! in test
2025-01-10 14:36:24 +01:00
Tuomas Tynkkynen
ca574b49d3
fsfreeze: Add tool
...
Add fsfreeze, a Linux-specific tool used to freeze/thaw writes to a
filesystem. It's an extremely simple tool so this should have full
feature-parity.
2025-01-04 15:26:19 +02:00
Fuad Ismail
d5b2f3c7e1
tests/dmesg: remove enclosing quotes surrounding since and until option arguments.
2024-12-14 22:27:54 +07:00
Fuad Ismail
260cfbfd55
tests/dmesg: test since/until argument enclosed with single quotes.
2024-12-12 13:17:29 +07:00
Fuad Ismail
d24b1e5c59
tests/dmesg: add invalid level/facility argument test.
2024-12-12 13:05:57 +07:00
Fuad Ismail
d3b82aa376
tests/dmesg: handle fixture line endings when fixture is checked out on Windows.
2024-12-12 12:59:35 +07:00