78 Commits

Author SHA1 Message Date
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 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 
2025-02-08 16:05:26 +01:00
Sylvestre Ledru
9f5f567d90
Merge pull request 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 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
Fuad Ismail
b90751119d tests/dmesg: use fixed offset time argument in test. 2024-12-12 12:54:58 +07:00
Fuad Ismail
99693490b0 tests/dmesg: add since/until invalid time test. 2024-12-11 11:04:50 +07:00
Fuad Ismail
4dbcceede4 tests/dmesg: add since/until test & fixture. 2024-12-11 10:32:37 +07:00
Fuad Ismail
db9b3433bc tests/dmesg: add facility and level filter tests. 2024-12-09 17:53:43 +07:00
Fuad Ismail
887e65d0ab
tests/dmesg: use stderr_only.
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-11-29 23:28:56 +07:00
Fuad Ismail
a56b75f7be tests/dmesg: handle added carriage return when fixture is checked out on Windows. 2024-11-27 00:53:44 +07:00
Fuad Ismail
4c1812f128 tests/dmesg: separate time format tests. 2024-11-25 13:53:12 +07:00
Fuad Ismail
f6826b8249 tests/dmesg: add new line to expected error message. 2024-11-25 13:28:00 +07:00
Fuad Ismail
4c7d8f8253 tests/dmesg: add invalid time-format test. 2024-11-24 23:12:26 +07:00
Fuad Ismail
1cc260d414 tests/dmesg: add time-format option test & fixtures. 2024-11-24 22:56:45 +07:00
Fuad Ismail
ac6caf17e3 tests/dmesg: add kmsg-file option with nonexistent file test. 2024-11-17 09:56:01 +07:00
Fuad Ismail
0e3bab7600 tests/dmesg: handle added carriage return when fixture is checked out on Windows. 2024-11-15 21:57:16 +07:00
Fuad Ismail
9a13792127 tests/dmesg: correct comment header. 2024-11-15 19:19:34 +07:00
Fuad Ismail
7c5caf69ab tests/dmesg: create test for --kmsg-file and --json option. 2024-11-14 22:58:47 +07:00