Commit Graph

70 Commits

Author SHA1 Message Date
Katarzyna Treder
e740ce377f Fix imports
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-31 12:06:18 +01:00
Katarzyna Treder
f7e7d3aa7f Disk tools and fs tools refactor
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-11 18:58:26 +01:00
Katarzyna Treder
940990e37a Iostat refactor
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-11 18:12:54 +01:00
Katarzyna Treder
58d89121ad Fix names: rename types to type_def
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-11 18:10:46 +01:00
Katarzyna Treder
8a5d531a32 OS tools refactor
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-11 07:58:50 +01:00
Katarzyna Treder
c8ce05617d Move scsi_debug to tools
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 14:36:35 +01:00
Katarzyna Treder
4dca1c3c00 Move linux command and wait method to common tools
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 13:58:04 +01:00
Katarzyna Treder
4a6d6d39cd Move asynchronous to connection utils
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 12:50:43 +01:00
Katarzyna Treder
9460151ee5 Move output to connection utils
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 12:31:14 +01:00
Katarzyna Treder
81e792be99 Move Time to types
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 12:20:31 +01:00
Katarzyna Treder
d4e562caf9 Move size.py to types
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 12:18:38 +01: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
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
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
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
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
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
Robert Baldyga
5e38c25f49
Merge pull request #1358 from arutk/fif
Fix dd flags in test_lazy_writes_clean tests
2022-09-22 11:46:49 +02:00
Rutkowski, Adam J
52c978f931 Fix dd flags in test_lazy_writes_clean tests
Change dd flag specification so that "direct" is specified for
the tested device (CAS exp object or core), regardless of I/O
direction (read vs write).

Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
2022-09-21 17:11:24 +02:00
Robert Baldyga
c46a3beb3f Fix license headers in tests
Some tests added after license cleanup still have bad license header.
Change it to the proper one.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-21 11:59:34 +02:00
Adam Rutkowski
b5d4ee3c14
Merge pull request #940 from Deixx/test-cleaning
Add test for configuring cleaning policies
2022-09-06 16:32:46 +02:00
Robert Baldyga
17fe6976bc
Merge pull request #1295 from pskwarlo/tcp
Test cleaning policy.
2022-08-06 09:48:32 +02:00
Pawel Skwarlo
d7f80d25af Black module code formatting fix.
Signed-off-by: Pawel Skwarlo <pawel.skwarlo@intel.com>
2022-08-04 15:28:20 +00:00
Robert Baldyga
c899abe1b3 Add missing license headers
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-07-22 09:17:16 +02:00
Michał Mielewczyk
5aafbd8d62
Merge pull request #1174 from anikielx/test_clean_load
Add test_clean_load
2022-06-02 14:04:04 +02:00
Michał Mielewczyk
62d91e922c
Merge pull request #1204 from anikielx/test_switch_cleaning_policy
Add test_switch_cleaning_policy
2022-06-02 13:56:44 +02:00
Adriana Nikelska
2c0b1e8311 Add test_switch_cleaning_policy
Signed-off-by: Adriana Nikelska <adrianax.nikielska@intel.com>
2022-05-25 13:36:17 +02:00
Katarzyna Łapińska
685b68516a
Merge pull request #1202 from anikielx/test_parallel_core_flushing
Add test_parallel_core_flushing
2022-05-24 13:56:27 +02:00
Michal Mielewczyk
9b42d936ca tests: exctract scsi_debug module API to the TF
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-05-18 09:31:40 +02:00
Adriana Nikelska
7084137dcb Add test_parallel_core_flushing
Signed-off-by: Adriana Nikelska <adrianax.nikielska@intel.com>
2022-05-13 10:26:45 +02:00
Adriana Nikelska
d245c49cc3 Add test_clean_load
Signed-off-by: Adriana Nikelska <adrianax.nikielska@intel.com>
2022-04-19 12:03:32 +02:00
Karolina Rogowska
c47cf47777 add force to start cache
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-04-14 14:20:47 +02:00
Rafal Stefanowski
b14bf05ff8 Add missing license info
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-03-28 11:31:15 +02:00
Michal Mielewczyk
d44254586f tests: use greater file in recovery tests
To prevent flushing all dirty cache lines before the power shutdown, create
bigger file.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-02-25 14:36:13 +01:00
Karolina Rogowska
12f7355316
Merge pull request #1064 from Deixx/is-it-a-fix
Stopping unplugged cache - changed behavior
2022-02-18 15:10:44 +01:00
Daniel Madej
82b8d0d323 Stopping unplugged cache - changed behavior
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2022-02-15 12:34:00 +01:00
Daniel Madej
baac399c43 Test updates addressing test fail false positives
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2022-02-15 11:48:05 +01:00
Rafal Stefanowski
acec05060d Fix license
Change license to BSD-3-Clause

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2021-10-28 12:46:42 +02:00
Daniel Madej
3b3f120c2e Add test for configuring cleaning policies
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2021-09-07 11:00:59 +02:00
Daniel Madej
ffa7eb0b19 Moved tests from acp_params.py to test_acp.py
Minor fixes in test_alru.py

Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2021-08-31 08:05:26 +02:00
Karolina Rogowska
ec9a7ca19c update cli messages and tests accordingly
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2021-08-05 15:49:27 +02:00
klapinsk
28ae17e23b Count md5sum of tmp files in recovery tests before reboot
Signed-off-by: klapinsk <katarzyna.lapinska@intel.com>
2021-04-28 15:16:42 +02:00
Katarzyna Lapinska
73e9906a54 Test for loading cache after dirty shutdown
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2021-02-16 12:05:55 +01:00
Katarzyna Lapinska
87f68bb2f5 Fixes in tests and CAS API due to the change with by-id devices paths
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2021-01-26 13:19:47 +01:00
Rafal Stefanowski
43f43068ad Update copyright statements (2021)
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2021-01-21 13:15:38 +01:00
Slawomir Jankowski
17f440de10 Update TF and functional tests API
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-12-22 16:29:33 +01:00