Commit Graph

40 Commits

Author SHA1 Message Date
Michal Mielewczyk
ca1da2510a tests: add test_activate_corrupted_after_dump
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-04-20 08:45:17 +02:00
Michal Mielewczyk
5dd65bb64b tests: add test_load_corrupted
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-04-20 08:45:17 +02:00
Michal Mielewczyk
ab99c08504 tests: add test_activate_corrupted
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-04-20 08:45:17 +02:00
Karolina Rogowska
6f4398cdea
Merge pull request #1066 from Deixx/insert-error
Fix insert error tests
2022-03-02 12:50:58 +01:00
Michal Mielewczyk
2f5afff8f2 tests: allow the flushing thread to flush
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-02-18 12:28:53 +01:00
Daniel Madej
e18946d1b9 Fix insert error tests
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2022-02-17 16:36:34 +01:00
Slawomir Jankowski
0b299b7d96 Fix interruption tests
Add helper functions and use them in interruption tests.
Fix tests descriptions and messages.
Update test according to current behaviour of cache mode switching.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2021-11-08 11:27:45 +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
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
Karolina Rogowska
4a274ff010 longer io in test_soft_hot_plug_device
Fix for problem: io ended before core disappeared from the system after unplug so then were no errors counted/detected.

Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2021-04-01 14:45:20 +02:00
Katarzyna Łapińska
3685a926b4
Merge pull request #577 from karolinavelkaja/fault_power_hit_test
Adding test 'test_fault_power_hit' and cli messages accordingly
2021-01-25 13:50:28 +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
Karolina Rogowska
aa08a82669 Adding test 'test_fault_power_hit' and cli messages accordingly
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2021-01-14 13:10:50 +01:00
Robert Baldyga
22b4288f3d tests: Update tests after test-framework API changes
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-01-05 20:35:58 +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
Karolina Rogowska
96a6fa6ba1 adding new test 'test_fault_power_hit_init'
Signed-off-by: Karolina Rogowska <karolina.rogowsky@gmail.com>
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2020-12-16 15:25:39 +01:00
Jan Musial
31fda78be4 Use parametrizex in tests
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-08-11 13:05:15 +02:00
Robert Baldyga
1e25420f86
Merge pull request #404 from rafalste/copyright_update
Update copyright statements
2020-05-19 11:25:11 +02:00
Rafal Stefanowski
44b4020cc1 Update copyright statements
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-05-04 16:47:38 +02:00
Daniel Madej
f31587fc9d Refactor check_msg + fixes in touched files
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-04-29 11:55:08 +02:00
Katarzyna Lapinska
1cf56d9d6c Tests directories cleanup 2020-04-27 15:24:01 +02:00
Michał Mielewczyk
6e1224191f
Merge pull request #260 from Ostrokrzew/many2one
Add FI many to one tests
2020-02-18 09:00:05 +01:00
Katarzyna Łapińska
49edc8a8cd
Merge pull request #315 from Ostrokrzew/interrupt
Interruption tests
2020-02-18 07:24:43 +01:00
Slawomir Jankowski
17528aefdd Add interrupt cache stop interrupt test
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 15:36:31 +01:00
Slawomir Jankowski
657023a79c Add two tests for interrupting cache mode switch
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 15:36:31 +01:00
Slawomir Jankowski
5f21f4d580 Add interrupt removing core test
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 15:36:31 +01:00
Slawomir Jankowski
90c27e488c Add Interrupt cache flushing test
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 15:36:31 +01:00
Slawomir Jankowski
660a99ae5c Add Interrupt core flushing test
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 15:36:31 +01:00
Slawomir Jankowski
8c7f0dcd32 One of many cores in cache fails
OpenCAS continue to work after one of many cores fails
1. Start cache.
2. Add core1 to previously created cache.
3. Add core2 to previously created cache.
4. Fill cache with pages from core1.
5. Fail core1.
6. Check if core2 is able to use cache.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 09:44:55 +01:00
Slawomir Jankowski
4717b942d9 Dynamic allocation of space in cache
OpenCAS continues to operate after one of many cores is released:
1. "Start cache",
2. "Add core1 to previously created cache",
3. "Add core2 to previously created cache",
4. "Fill cache with pages from core1",
5. "Check if core2 is able to use cache"

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-14 14:50:29 +01:00
Slawomir Jankowski
9ad35e8ae9 Remove one of multiple cores from cache
OpenCAS continues to operate after one of many cores is removed:
1. "Start cache",
2. "Add core1 to previously created cache",
3. "Add core2 to previously created cache",
4. "Fill cache with pages from core1",
5. "Remove core1",
6. "Check if core2 is able to use cache"

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-14 14:50:29 +01:00
Slawomir Jankowski
8991153bd8 Remove core from multilevel cache
OpenCAS not allow remove the core on 1 level cache when is used by level 2:
/1/ "Create multilevel intelcas device",
/2/ "Try to remove intelcas device on level 1",
/3/ "Remove intelcas device"

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-13 15:54:32 +01:00
Slawomir Jankowski
f1749526fb Stop cache '--no-data-flush' without fs on core
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-12 13:06:36 +01:00
Slawomir Jankowski
232b6ef21c Stop cache '--no-data-flush' with fs on core
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-12 13:06:19 +01:00
Slawomir_Jankowski
5d78207f27 Update FI test: try add twice the same device as core
Check that OpenCAS does not accepts twice the same device as core.
Update code in file.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-01-31 15:02:42 +01:00
Sławomir Jankowski
0fb4d76e35
Merge pull request #279 from katlapinka/groups_cleanup
Cleanup test groups directories (fault injection and cache ops)
2020-01-16 10:36:58 +01:00
Katarzyna Lapinska
3cf0cf2642 Cleanup test groups (fault injection and cache ops) 2020-01-16 09:52:30 +01:00
Rafal Stefanowski
f13602cbf6 Add tests for cache/core software hotplug
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-01-14 11:36:48 +01:00
Slawomir_Jankowski
40c91426ba Add fault injection tests
Try load cache with core device already mounted.
OpenCAS prevents stop when partition is mounted.
Check if used in one CAS instance core device can be added to second CAS instance.

Signed-off-by: Slawomir_Jankowski <slawomir.jankowski@intel.com>
2019-12-23 12:00:38 +01:00
Rafal Stefanowski
f68d34b3ad Add fault injection tests (same ID, remove IO)
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2019-11-29 10:44:07 +01:00