Commit Graph

892 Commits

Author SHA1 Message Date
Kamil Gierszewski
c15b4d580b
tests: Fix after changing function name
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-29 15:32:38 +01:00
Kamil Gierszewski
35850c7d9a
test-api: adjust api to handle inactive core devices + add detached/inactive cores getter
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-29 15:32:38 +01:00
Kamil Gierszewski
908672fd66
test-api: add string representation of SeqCutOffPolicy
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-29 15:32:37 +01:00
Kamil Gierszewski
4ebc00bac8
tests: fix fault injestion interrupt test
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-29 15:32:37 +01:00
Kamil Gierszewski
9ab60fe679
tests: change path type in test
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-29 15:28:29 +01:00
Kamil Gierszewski
421c0e4641
test-api: fix stat type
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-29 15:28:29 +01:00
Daniel Madej
0c0b10535e [tests] Update CLI messages and test
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-28 16:07:33 +01:00
Daniel Madej
a2f3cc1f4a Mtab check optional
There are situations when /etc/mtab is not present in the
system (e.g. in certain container images). This blocks
stop/remove operations. With making this check optional
the duty of checking mounts falls to kernel.
Test modified to check operations with and without mtab.

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-28 16:07:33 +01:00
Katarzyna Treder
7c9c9a54e2 Update TF submodule
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-10-15 11:15:26 +02:00
Daniel Madej
75fd39ed7b Update/fix to test_concurrent_caches_flush
No need to run fio in background. This fixes the issue that
one of the tests didn't wait for fio to finish before
checking stats.
More informative error messages.

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-15 09:46:36 +02:00
Katarzyna Treder
20ee2fda1f Small fixes in security tests
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-10-15 09:36:36 +02:00
Kamil Gierszewski
5cada7a0ec
tests: add disabling udev in fault injection test
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:53 +02:00
Kamil Gierszewski
1c26de3e7f
tests: update getting metadata size on device in memory consumption test
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:53 +02:00
Kamil Gierszewski
a70500ee44
tests: fix init test
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:52 +02:00
Kamil Gierszewski
2f188f9766
tests: add dirty data check to acp test
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:52 +02:00
Kamil Gierszewski
0fdd4933a2
tests-api: add statistics parse for metadata in GiB
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:51 +02:00
Kamil Gierszewski
6ce978f317
tests: fix io class tests
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:51 +02:00
Kamil Gierszewski
cf68fb226b
tests: fix dmesg getting in test
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:50 +02:00
Kamil Gierszewski
004062d9fd
tests: fix test file path
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:50 +02:00
Kamil Gierszewski
4b74c65969
tests: fix checksec permissions
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:49 +02:00
Kamil Gierszewski
51962e4684
tests: refactor test_inactive_cores
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:49 +02:00
Kamil Gierszewski
daea1a433a
tests: fix test_simulation_startup
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 02:42:56 +02:00
Kamil Gierszewski
c32650af0b
tests: fix test recovery
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 02:42:56 +02:00
Kamil Gierszewski
39afdaa6c1
test-api: fix cli help message
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 02:42:56 +02:00
Katarzyna Treder
375fce5a19 Add tests for io classification statistics per core
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-10-10 20:45:24 +02:00
Kamil Gierszewski
625cec7838
tests: update tests
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-09 14:47:48 +02:00
Daniel Madej
0999e601b8 Remove redundant unmount
remove_partitions() includes unmounting them

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-04 08:58:35 +02:00
Daniel Madej
c2662072a4 Fix mdadm --zero-superblock problem in cleanup
Cleanup handled mounted partitions but not the whole device

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-04 08:46:57 +02:00
Daniel Madej
663b42804d Update test_stats_values test
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-03 17:19:03 +02:00
Daniel Madej
6e781fe464 Update test_stats_max tests
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-03 17:19:03 +02:00
Daniel Madej
aa0dc4d7ee Thorough update of test_block_stats.py
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-03 17:19:03 +02:00
Daniel Madej
205af2ab99 Cleanup
UsageStats addition methods
InactiveUsage class

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-03 17:12:37 +02:00
Daniel Madej
65879e01cd Small statistics refactor
Extracted common parts to separate methods
Added get_stat_value()

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-03 17:06:36 +02:00
Robert Baldyga
dd0701ded1
Merge pull request #1548 from Deixx/io-class-stats-without-id
Enable displaying IO class stats w/o IO class id
2024-10-03 13:15:16 +02:00
Michal Mielewczyk
1ae15bdb6b tests: Fix test_flush_over_640_gibibytes_with_fs
Don't interrupt the test if prerequisites are not met

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-10-03 12:53:40 +02:00
Michal Mielewczyk
c41d5d7176 tests: Fix test_flush_over_640_gibibytes_with_fs
4h timeout for copying and calculating crc

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-10-03 12:53:40 +02:00
Michal Mielewczyk
f2f98226d8 tests: Fix test_flush_over_640_gibibytes_with_fs
As crc32 is supposed to be slightly faster than md5 use it to detect DC

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-10-03 12:53:40 +02:00
Michal Mielewczyk
d456674c9a tests: fix test_flush_over_640_gibibytes_with_fs
The test requires quite some space(640G) to prepare a file on a separate
(not-cached) filesystem. Creating the file in rootfs is prone to (vague) errors
due to limited space.

To make sure that the test has all the required space available, create the file
on a separate disk

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-10-03 12:53:40 +02:00
Michal Mielewczyk
1a2a7e9276 Update TF: User-defined timeouts for FS utils
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-10-03 12:53:38 +02:00
Daniel Madej
7e2c46b827 Enable displaying IO class stats w/o IO class id
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-02 17:51:31 +02:00
Robert Baldyga
1fd718fcb0
Merge pull request #1536 from Deixx/perf-100p-refactor
Update test_4k_100p_hit_reads_wt
2024-10-02 10:33:06 +02:00
Robert Baldyga
d692204c20
Merge pull request #1523 from katlapinka/kasiat/promotion-api
Add API for setting promotion policy params
2024-10-02 10:32:44 +02:00
Robert Baldyga
67d9379c5f
Merge pull request #1543 from Deixx/mstream-seq-cutoff-fix
Update for test_multistream_seq_cutoff_functional
2024-10-02 10:32:26 +02:00
Daniel Madej
3c20937d7f Update for test_multistream_seq_cutoff_functional
Throw exception when dd runs out of space
Shorter logs
Blocks instead of bytes in error message

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-02 08:42:20 +02:00
Daniel Madej
829dbf9ba5 Update for test_parallel_core_flushing
Add oflag=direct
Stop cache before calculating backend md5 sums
Check all cores before ending test on fail
Print flushing progress in log
Check occupancy and dirty for each core
Minor fix and refactor

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-09-30 17:26:19 +02:00
Kamil Gierszewski
5f170b11b3
test-api: reverse cache stop
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:54 +02:00
Kamil Gierszewski
16227e90ed
test-api: update cli messages
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:54 +02:00
Kamil Gierszewski
39c4a3be4e
tests: refactor test_init_status
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:54 +02:00
Kamil Gierszewski
b3cb1251cc
tests: refactor test_clean_reboot
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:53 +02:00
Kamil Gierszewski
61ff8f60c5
tests: reformat test_clean_reboot
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:53 +02:00