Commit Graph

687 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
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
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
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
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
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
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
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
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
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
Kamil Gierszewski
41460f0e6c
tests: fix incremental load test
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:53 +02:00
Kamil Gierszewski
9cf90e61b6
tests: fix udev test
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:52 +02:00
Kamil Gierszewski
97e3002d21
tests: fix plug usage
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:52 +02:00
Daniel Madej
0d19498eb5 Update test_4k_100p_hit_reads_wt
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-09-26 16:20:05 +02:00
Kamil Gierszewski
64e4b8d9a7
tests: fix test_cli_help test
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-23 17:16:50 +02:00
Kamil Gierszewski
8d4262079e
tests: fix test_negative_start_cache
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-23 13:20:41 +02:00
Kamil Gierszewski
df8705373c
tests: fix test for cleaning policy
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-23 12:54:12 +02:00
Kamil Gierszewski
173810ad6d tests: fix tests after tf disk recognition refactor
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-16 10:18:50 +02:00
Katarzyna Treder
a1ff17bbd3 Change path type to string in fs_utils remove command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-13 11:35:36 +02:00
Robert Baldyga
de16763bec
Merge pull request #1496 from Kamoppl/kamilg/update_tests
tests: update tests
2024-09-10 14:35:18 +02:00
Katarzyna Treder
b15076a22e Fuzzy tests for casadm 'print statistics' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
e8fbc624ed Fuzzy tests for casadm 'set param' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
4efdf36f45 Fuzzy tests for casadm 'load io class' command and for io class config
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
b8364ea593 Fuzzy tests for casadm 'get param' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
1861758c6a Fuzzy tests for casadm 'flush' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
7f843fd6bf Fuzzy tests for casadm 'set cache mode' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
aeb0321393 Fuzzy tests for casadm 'stop' and 'remove' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
fd7cf1ad7d Fuzzy tests for casadm 'start cache' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
f4bfd5398e Fuzzy tests for casadm 'io class list' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
981946de7d Fuzzy tests for casadm 'add core' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
8156abdd12 Add missing peach fuzzer config files
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
619a6c8e2a Refactor common fuzzy files
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Kamil Gierszewski
df3c759de8
test-conftest: fix git
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-10 10:39:08 +02:00
Kamil Gierszewski
077820f1c0
test-conftest: remove autoinstall and update conftest
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-10 10:24:38 +02:00
Kamil Gierszewski
e8bdcdae4f
tests: update tests
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-09 12:54:20 +02:00
Robert Baldyga
f0727cce62
Merge pull request #1503 from mmichal10/block-standy
Block standby
2024-09-09 11:16:42 +02:00
Michal Mielewczyk
0f0ef79b89 Disable standby mode
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-09-06 13:23:07 +02:00
Robert Baldyga
45a43e146f
Merge pull request #1500 from katlapinka/kasiat/remove-duplicate
Remove test trim duplicate and update the original one
2024-09-04 15:59:18 +02:00
Katarzyna Treder
e711dc981d Remove test trim duplicate and update the original one
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-04 13:47:18 +02:00
Robert Baldyga
5ca92d422d
Merge pull request #1402 from robertbaldyga/tests-fix-invalid-mark
tests: Fix invalid mark
2024-09-04 13:41:45 +02:00
Katarzyna Treder
9e0d7df3a2 Add write performance test
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-04 11:29:36 +02:00
Katarzyna Treder
80a74a11f4 Update to work with TF submodule
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-07-16 15:07:04 +02:00
Robert Baldyga
5dc6133a09
Merge pull request #1399 from jwirkus/add_fuzzy_tests_api
Add fuzzy tests API
2023-01-03 15:34:05 +01:00
Robert Baldyga
54f54d684a
Merge pull request #1407 from KlaudiaJ/performance1
Add basic read hit performance tests for CAS.
2022-12-27 11:36:10 +01:00
Karolina Rogowska
e9f138bc8d
Merge pull request #1396 from DocentSzachista/test-pin-wt-MT
tests: add test for pinned IO class eviction after unpinning that class
2022-12-13 15:31:03 +01:00
jwirkus
2f4d2f70c5 Add fuzzy tests API
Signed-off-by: jwirkus <jakubx.wirkus@intel.com>
2022-11-30 13:42:26 +01:00
Klaudia Jablonska
08e15b6bdc Add basic read hit performance tests for CAS.
Tested in 'Write-Through' and 'Write-Back' mode.

Signed-off-by: Klaudia Jablonska <klaudia.jablonska@intel.com>
2022-11-29 17:22:26 +01:00
Karolina Rogowska
f1161e04d7
Merge pull request #1368 from rafalste/packaging_api
test/api: Add packaging functionality
2022-11-23 15:33:04 +01:00
Damian Raczkowski
b3456a6268 tests: add test for pinned IO class eviction after unpinning that class
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-11-10 14:56:37 +01:00
Robert Baldyga
f657644507 tests: Fix invalid mark
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-11-07 11:25:16 +01:00
Robert Baldyga
6dbdb94b2d
Merge pull request #710 from karolinavelkaja/cas_dss_lvm_test
adding new lvm test: test_io_class_lvm_on_cas
2022-10-28 10:55:06 +02:00
Robert Baldyga
537ba381f1
Merge pull request #697 from karolinavelkaja/many_cores_on_many_lvms_test
adding new lvm test: test_many_cores_on_many_lvms
2022-10-28 10:54:51 +02:00
Robert Baldyga
f867fb9785
Merge pull request #682 from karolinavelkaja/cache1_core4_lvm4_test
adding new lvm test: test_many_lvms_on_many_cores
2022-10-28 10:54:36 +02:00
Robert Baldyga
8df9052925
Merge pull request #694 from karolinavelkaja/many_lvms_on_single_core_test
adding new lvm test: test_many_lvms_on_single_core
2022-10-28 10:54:03 +02:00
Karolina Rogowska
520133b46c
Merge pull request #717 from karolinavelkaja/fault_injection_max_io_greater_in_core_test
adding test: test_max_io_greater_in_core
2022-10-27 11:34:33 +02:00
Karolina Rogowska
475312469d adding test: test_max_io_greater_in_core
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-25 16:05:40 +02:00
Karolina Rogowska
595b58f316 adding new lvm test: test_many_lvms_on_single_core
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-25 15:48:18 +02:00
Karolina Rogowska
ad6ca39694 adding new lvm test: test_many_cores_on_many_lvms
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-25 15:46:04 +02:00
Robert Baldyga
92b8788f98
Merge pull request #591 from karolinavelkaja/memory_consumption_test
add test 'test_memory_metadata_consumption'
2022-10-25 15:43:21 +02:00
Karolina Rogowska
3bdc2d5cd5 adding new lvm test: test_io_class_lvm_on_cas
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-25 15:39:44 +02:00
Karolina Rogowska
4fd7873bb6 add new test: test_many_lvms_on_many_cores
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-24 15:30:31 +02:00
Karolina Rogowska
ad40f2b226
Merge pull request #1388 from DocentSzachista/fix-one-core-fail
test fix: add parametrize parameter as argument to function
2022-10-21 09:34:53 +02:00
Karolina Rogowska
1c1ef3024f add test 'test_memory_metadata_consumption' with 2 test cases
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-19 17:22:32 +02:00
Damian Raczkowski
ca2b7b86cf test fix: add parametrize parameter to funcion
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-10-19 09:05:50 +02:00
Karolina Rogowska
82e4c46b8b marking tests that are os-dependent
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-17 17:03:55 +02:00
Karolina Rogowska
ebcae02f81 marking kedr tests as skipped
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-17 17:03:55 +02:00
Robert Baldyga
49e31a1e7e
Merge pull request #650 from karolinavelkaja/lvm_api_ocl
LVM api (ocl)
2022-10-17 16:58:02 +02:00
Karolina Rogowska
54428ddf26 lvm api (ocl)
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-13 16:47:34 +02:00
Robert Baldyga
0ff4698f29
Merge pull request #1349 from DocentSzachista/test-multilevel-cache
tests: add multilevel cache test
2022-10-13 14:10:23 +02:00
Karolina Rogowska
4f30283e0a
Merge pull request #1337 from DocentSzachista/OC1-348
tests: refactor fault_injection tests
2022-10-12 13:13:52 +02:00
Robert Baldyga
97c8df0995
Merge pull request #1373 from DocentSzachista/merge_flush_and_cache
Merge flush and cache commands
2022-10-12 12:38:14 +02:00
Rafal Stefanowski
71e2b5f586 test: Adapt weak-modules test to changes in packaging API
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-10-06 10:56:40 +02:00
Damian Raczkowski
f67543e7b3 update CAS API to adapt changes in casadm
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-10-06 09:08:57 +02:00