Commit Graph

41 Commits

Author SHA1 Message Date
0073eb0cc9 Sync with upstream 2024-01-15 02:35:06 +00:00
8b30bd62e3 Convert tests to the new format 2023-02-17 02:04:54 +00:00
e8f75d1d03 Fix samehash and lookup_v5 tests 2023-01-09 04:07:36 +00:00
59ac33c787 Fix XFS lookup tests 2023-01-09 02:10:40 +00:00
436aa461b0 Use sgdisk to partition images 2023-01-09 02:07:42 +00:00
d80c240abd Update {gen,mk}samehash tools for xfs, add new fat* and ext* tests 2023-01-09 02:07:28 +00:00
eb243bf14f Switch image generation from GNU Make to GNU Bash
Should have been done long time ago.
2023-01-09 02:07:20 +00:00
bbc42c6436 Implement qcow2 support, convert most images from raw
This allows exbibyte-sized images, compression and (potentially)
non-destructive writing.
2023-01-09 02:07:20 +00:00
464b92cda4 Change filename suffix of raw images from .img to .raw 2023-01-09 02:07:05 +00:00
e76dea6bf1 Remove some boilerplate and hardcode, add lookup tests 2023-01-09 02:06:46 +00:00
f291ffc03b Make shell:disk_list_partitions() more verbose
Show disk sector size and capacity, partition's size and start sector.
2023-01-03 20:39:10 +00:00
b0be99a9e9 Make all the test hdd images use MBR instead of GPT
Well, it's just easier to generate MBR because GPT requires a few
sectors at the very end of a disk. A separate test for GPT should be
written: with tens of partitions and so on.
2023-01-02 02:26:56 +00:00
fecf7be637 Add two tools: mkdoubledirs and gensamehash
mkdoubledirs creates pairs of directories a/a, b/b, c/c etc. This is to
test file lookup code: there must be a directory named blah only if the
current directory is named blah too.

gensamehash generates file names with the same XFS hash to test the
code that resolves collisions. In principle, can be updated for other
hashes: ext*, exfat, etc.
2023-01-02 01:50:02 +00:00
cb8c3274af Add XFS nrext64 image and test 2022-12-29 03:45:36 +00:00
3cef60408b Use 64bit time_t, add XFS bigtime test, allow atime and mtime testing 2022-12-28 20:39:21 +00:00
d82c5530ed Wrap fs_execute, works for umka_os tool! 2022-06-25 02:41:23 +04:00
20b2013007 Compile in /init.inc 2022-05-30 21:47:49 +04:00
a0d3499d57 Add wrappers/tests for keyboard, mouse and cursors 2022-05-29 01:55:13 +04:00
52f3acaebc Add exfat test. 2022-04-23 22:34:24 +04:00
d59c8d5f55 Add a basic exfat test. 2022-03-12 00:08:20 +04:00
c963ccebd6 test: don't chown files on fat32 partition 2021-12-12 21:54:46 +03:00
mkostoevr
6a1da788e3 Make fat32_test0 reasonably fast 2021-12-12 21:54:20 +03:00
mkostoevr
08648324cb Add fat32_test0 test 2021-12-12 21:54:06 +03:00
26fd52621d Improve branch coverage for error-free cases.
Errors are mostly uncovered.
2020-03-12 00:51:48 +03:00
6179e7e614 New tests and images for coverage. Don't use sudo for mkfs. 2020-03-11 06:02:33 +03:00
4b8b418f94 Add test of reading of >4GiB file.
dd if=/path/to/file status=none bs=1 skip=$((0xblah)) count=$((0xblah)) | rhash --sha3-256 --simple -
2020-03-08 22:53:11 +03:00
f39db79da3 Coverage and testing harness improvements.
Use -c key for umka_shell to trace branches, no recompilation needed.
Create >4GiB file for tests.
Create empty kolibri.img and put built default.skn there.
2020-03-08 20:58:45 +03:00
0ea4945923 Add tests for xfs v5 disk format. 2020-01-28 01:54:57 +03:00
4a242557b5 Support kernel syscall f80, add more tests for extended attributes and unicode. 2019-12-08 04:32:07 +03:00
a7df448839 Use tags for tests, remove duplicate test. 2019-11-12 04:22:19 +03:00
98f8561ba1 Print total number of files in directory, add s4k test. 2019-11-11 05:20:06 +03:00
017bca9dee Dir lookup test. 2019-11-09 01:37:01 +03:00
f4bdf82811 Get rid of losetup, fix s05k_b2k_n8k tests, set name length for mkdirrange. 2019-11-08 05:22:07 +03:00
45875d3d9e Move run_test to separate function, update tests.
Now it's a bit closer to multithreading.
2019-10-31 00:54:12 +03:00
d946de1c81 Add test for file holes, allow comments in logs. 2019-10-28 06:10:38 +03:00
68454dbe4d Make an order in test/ directory, write proper makefile. 2019-10-22 05:24:44 +03:00
1bb4c6f8d7 Collect coverage via LBR profiling. 2019-10-09 02:35:47 +03:00
6325dda0da Add read_all and read_range, update tests, fixes 2018-06-18 04:55:51 +03:00
f3f0024d22 Use free from libc, fix ls_range 2018-06-13 04:29:17 +03:00
bd2e078d13 Add tests, generate hdd images on the fly. 2018-05-19 18:50:15 +03:00
9c7ebc5136 Use dyndisk KolibriOS code, add test prototypes. 2018-05-06 22:58:05 +03:00