Commit Graph

529 Commits

Author SHA1 Message Date
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
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
Robert Baldyga
2da9753a10
Merge pull request #1359 from karolinavelkaja/core_device_error_test_logging_fix
tests: fix for proper logging of error values
2022-09-22 17:32:14 +02:00
Rafal Stefanowski
e07b7ae630 Fix file extensions in permission test
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-09-22 14:24:14 +02:00
Karolina Rogowska
42bff04465 fix for proper logging of error values
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-09-22 12:39:55 +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
Karolina Rogowska
1b04be0140 fix cache device path
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-09-21 15:43:37 +02:00
Kamil Gierszewski
dbe8fec99b test: fix_recovery_cache_verify_core
Signed-off-by: Kamil Gierszewski <kamilx.gierszewski@intel.com>
2022-09-21 14:29:36 +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
Robert Baldyga
70cc908b39
Merge pull request #1345 from robertbaldyga/consolidate-cas-modules
Consolidate Open CAS modules
2022-09-19 14:55:30 +02:00
Robert Baldyga
8d55e3987f Update tests after cas_disk removal
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-16 15:16:28 +02:00
Robert Baldyga
3c3369bcc7
Merge pull request #1332 from karolinavelkaja/partitions_test_fix_ocl
tests: fix test_partition_create_cas
2022-09-16 06:55:12 +02:00
Robert Baldyga
ccb6c0a3e3
Merge pull request #1346 from pdebski21/test_one_core_fail_dirty
Add test one core fail dirty
2022-09-14 14:28:51 +02:00
Piotr Debski
d6bdc06cfc Add test one core fail dirty
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-09-14 14:12:29 +02:00
Robert Baldyga
a9260524e0
Merge pull request #1277 from pdebski21/test_fixes3
Tests fixes
2022-09-13 09:41:45 +02:00
Adam Rutkowski
236418a373
Merge pull request #1336 from karolinavelkaja/refactor_tests_under_initialize_load
tests: refactor test_initialize_load file
2022-09-12 15:26:11 +02:00
Piotr Debski
5aba9efda1 fix for test test_one_core_fail
Occupancy does not change when cache data is dirty and dd is executed for cache in write-only mode. Fix required to prefill cache with clean data.

Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-09-12 09:28:00 +02:00
Adam Rutkowski
bc417e03c4 enable skipped failover tests
Excessive reboot times have not been observed for some time now.
I wasn't able to reproduce them by hand either.

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2022-09-08 16:20:54 +02:00
Rafal Stefanowski
91f5d497ef copyright/license: Add missing file extensions
Proper file extensions help 'copyright header checker' find files
that should contain copyright info. Extensions also clearly indicate
file type, and help to fit in with the file naming convention.

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-09-07 15:23:11 +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
987f53b1ff
Merge pull request #1281 from arutk/foati
failover advanced tests implementation
2022-09-06 13:16:18 +02:00
Karolina Rogowska
ac6e30322a refactor test_initialize_load -rename test and remove 2 tests no longer valid
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-08-31 16:13:20 +02:00
Rutkowski, Adam J
8764338582 fix test_incremental_load_hidden_core
Cache state after load with missig cores should be "incomplete"
rather than "running.

Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
2022-08-31 13:33:32 +02:00
Robert Baldyga
88dff6ead3
Merge pull request #1329 from robertbaldyga/seq-cutoff-threshold-issue
Fix seq cutoff min threshold calculation
2022-08-31 10:58:10 +02:00
Krzysztof Majzerowicz-Jaszcz
9c45851147 Fix for test_cas_startup_negative_missing_core
Bad parameter fix for this test

Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
2022-08-30 16:40:34 +02:00
Karolina Rogowska
06a72d16be fix test_partition_create_cas
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-08-30 16:33:38 +02:00
Robert Baldyga
49ef039f8c tests: Fix units in test_seq_cutoff_set_invalid_threshold test
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-08-29 17:48:30 +02:00
Karolina Rogowska
e7d1706082 fix test_ioclass_wlth
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-08-29 16:42:04 +02:00
Karolina Rogowska
eb1a4cc480
Merge pull request #1183 from jwirkus/add_fuzzy_tests_1
Add fuzzy statistics and fuzzy io class tests
2022-08-25 14:50:48 +02:00
Robert Baldyga
44ab772107
Merge pull request #1317 from KlaudiaJ/kj-ci-basic-test
Add to CI basic test for data integrity.
2022-08-23 20:21:48 +02:00
Klaudia Jablonska
5b01022430 Add to CI basic test for data integrity.
Signed-off-by: Klaudia Jablonska <klaudia.jablonska@intel.com>
2022-08-23 16:40:24 +02:00
Rutkowski, Adam J
042e2a0b5b failover advanced tests implementation
Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
2022-08-23 12:23:36 +02:00
Karolina Rogowska
7882e26468 change test file name to "test_incremental_load_ci" (was duplicated)
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-08-22 15:21:38 +02:00
Rafal Stefanowski
2309a79d03 test: Add file permissions test
Test files and directories permissions of git repo,
build artifacts and installed files.

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-08-22 14:32:24 +02:00
Karolina Rogowska
a1484b2412 fix tests: proper config file path
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-08-19 16:49:41 +02:00
Karolina Rogowska
8a4a2d9272
Merge pull request #1297 from pdebski21/tests_incremental_load
Tests incremental load - CI
2022-08-19 13:10:50 +02:00
Karolina Rogowska
47a08c4718
Merge pull request #1302 from pdebski21/test_simulation_startup_from_config
Simulate startup test
2022-08-19 11:57:02 +02:00
Karolina Rogowska
39e3a0f6a7
Merge pull request #1309 from DocentSzachista/OC1-277
tests: add test for adding invalid cores devices to caches
2022-08-19 11:55:57 +02:00
Piotr Debski
293de4a9eb Tests incremental load for ci
Tests rewritten form open-cas-linux/test/smoke_test/incremental_load

Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-08-19 10:13:13 +02:00
Michał Mielewczyk
711dc59a81
Merge pull request #1311 from rafalste/dut_cas_version
Install particular CAS version on DUT before test
2022-08-18 15:34:33 +02:00
Karolina Rogowska
8b2a897275
Merge pull request #1293 from karolinavelkaja/fix_test_cli_help
tests: fix test_cli_help
2022-08-18 15:23:38 +02:00