Commit Graph

671 Commits

Author SHA1 Message Date
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
Damian Raczkowski
f57b01ee31 tests: refactor fault_injection tests
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-10-05 12:29:39 +02:00
Robert Baldyga
f953c14c2e
Merge pull request #1315 from AdamSeyda/adding_test_cli_help_spelling
Add test test_cli_help_spelling
2022-10-04 14:37:06 +02:00
Robert Baldyga
5ac02a8377
Merge pull request #1361 from DocentSzachista/dss-pin-02
tests: add stress test for IO class pinning eviction
2022-10-04 14:10:46 +02:00
Adam Seyda
f4e17bc1ec Add test test_ci_read_write
Signed-off-by: Adam Seyda <adam.seyda@intel.com>
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-10-03 19:44:26 +02:00
Adam Seyda
3f7cf3c670 Add test test_cli_help_spelling
Signed-off-by: Adam Seyda <adam.seyda@intel.com>
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-10-03 19:43:27 +02:00
Kamil Gierszewski
9417301453 test_fix:fix_test_cli_help_and_version
Signed-off-by: Kamil Gierszewski <kamilx.gierszewski@intel.com>
2022-10-03 16:54:43 +02:00
Robert Baldyga
6af0c5dbfe
Merge pull request #1353 from arutk/apf
Fix ALRU wake up time test and documentation
2022-09-30 11:04:39 +02:00
Adam Rutkowski
39fbe873df Fix test_cleaning_policy_config ALRU assumptions
ALRU does not have a configurable sleep time between active awakenings
of the cleaning thread. Once it starts cleaning, it does not back off
unless staleness time and/or activity threshold constraints force it
to do so.

Changing test_cleaning_policy_config assumptions so that it only checks
whether minimum expected amount of data is cleaned rather than assume
exact amount of data to be cleaned.

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2022-09-30 18:18:10 +02:00
Karolina Rogowska
a7df579991
Merge pull request #1365 from arutk/trte
tests: remove test_trim_eviction
2022-09-28 15:29:22 +02:00
Rutkowski, Adam J
73716e89ca tests: remove test_trim_eviction
There are multiple issues with this test, but regardless
of them it seems that it duplicates existing trim tests.

The intention of the test is to verify that there is no
eviction when inserting to cache after a trim. This
is equivalent to checking that a trim reduced cache
occupancy, and this is done in other trim test
(test_trim_device_discard_support).

Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
2022-09-28 14:22:12 +02:00
Damian Raczkowski
77f296db11 tests: add stress test for IO class pinning eviction
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-09-28 11:11:21 +02:00
Robert Baldyga
3aaef69905
Merge pull request #1357 from karolinavelkaja/power_hit_init_test_byid_fix
tests: fix cache device path
2022-09-27 12:52:55 +02:00
Robert Baldyga
7b126005eb
Merge pull request #1356 from Kgierszx/fix_test_recover_cache_verify
test: fix_recovery_cache_verify_core
2022-09-27 10:12:19 +02:00
Robert Baldyga
abb48a9cc4
Merge pull request #1362 from arutk/fcet
tests: do not run test_core_device_error in lazy write cache modes
2022-09-27 10:10:44 +02:00
Klaudia Jablonska
1cf2af7ed4 Refactor IO class tests
Signed-off-by: Klaudia Jablonska <klaudia.jablonska@intel.com>
2022-09-26 12:38:46 +02:00
Rutkowski, Adam J
349ec69f65 Do not run test_core_device_error in lazy write cache modes
This test has multiple assumptions that do not hold for WB/WO:
1. it assumes primary storage errors would propagate to user I/O
2. cache is stopped with metadata flush, which would fail
3. after stopping CAS core content is verified with fio
4. cache is so small that it overfills, resulting in PT I/O further
complicating error accounting.

Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
2022-09-26 11:10:06 +02:00