Commit Graph

479 Commits

Author SHA1 Message Date
Robert Baldyga
c98b7e1bb3 Use git utils from cas API
Test framework does no longer provide git_utils, so we switch
to local implementation.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-30 10:30:14 +01:00
Robert Bałdyga
7f6ce5764f
Merge pull request #162 from robertbaldyga/use-require_disk
Use "require_disk" mark
2019-10-29 14:50:54 +01:00
Robert Baldyga
2c080dd8ca Loosen cache disk type requirements for simple cli tests
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-29 14:42:27 +01:00
Robert Baldyga
ba9876ed52 Simplify waiting for connection
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-29 10:19:13 +01:00
Robert Baldyga
b65ff40bf0 Use "require_disk" mark
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-29 10:19:13 +01:00
Robert Baldyga
6bcc95d0cd Remove redundant call of base_prepare()
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-29 08:53:18 +01:00
Robert Baldyga
d5c39c8108 Append test-framework path before first imports from framework
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-29 08:53:18 +01:00
Adam Rutkowski
ff207f9b2e Make __block_dev_get_elevator_name return const string
Returning non-const char* doesn't have any benefits since
the only caller casts the output pointer to const char *.

This change fixes compilation on 5.3 kernel.

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-28 16:33:38 -04:00
Robert Bałdyga
8014f91c5a
Merge pull request #164 from katlapinka/enable_logging_in_tests
Enable logging mechanism and example of logger usage in one test
2019-10-28 13:33:29 +01:00
Katarzyna Lapinska
35d52caf74 Enable logging mechanism and example of logger usage in one test 2019-10-28 13:19:00 +01:00
Adam Rutkowski
0e62561072 OCF update (vmalloc based mempools compatibility)
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-23 16:04:27 -04:00
Adam Rutkowski
9b8fdde201 Relax allocations requirements
CAS does not need atomic alocations virtually anywhere. GFP_NOIO
should be sufficient in IO path. When allocation buffers during
module initialization use GFP_KERNEL.

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-23 16:04:27 -04:00
Adam Rutkowski
f9f00df576 Use vmalloc instead of kmalloc in mem pools
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-23 16:04:18 -04:00
Michał Mielewczyk
06b3e69c0f
Merge pull request #159 from robertbaldyga/update-readme-tests
Update Readme - installation and running tests
2019-10-21 15:02:39 +02:00
Michał Mielewczyk
5ec0063d39
Merge pull request #160 from robertbaldyga/tests-gitignore
Add .gitignore for functional tests
2019-10-21 14:27:22 +02:00
Robert Baldyga
4f1988cf87 Add .gitignore for functional tests
Ignore changes in plugins/ directory. This directory is for user plugins
which should not be added to Open CAS Linux repository.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-21 13:02:08 +02:00
Robert Baldyga
6b35e04044 Update Readme - installation and running tests
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-21 12:48:31 +02:00
Robert Baldyga
97738ac916 Make local test execution the default
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-21 12:32:50 +02:00
Daniel Madej
5a7d2ed5c9
Merge pull request #152 from robertbaldyga/move-ocl-tests
Move OCL tests from test-framework repository
2019-10-21 10:56:28 +02:00
Adam Rutkowski
e91e58ef66 Revert "env: implement vmalloc with GFP flags"
This reverts commit c5165838e5.
2019-10-18 19:18:31 -04:00
Michał Mielewczyk
1d25ace1cb
Merge pull request #154 from arutk/module_lock
Acquire module_lock before symbol lookup
2019-10-18 16:36:53 +02:00
Adam Rutkowski
f9b8c2d355 Acquire module_lock before symbol lookup
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-18 17:24:21 -04:00
Michał Mielewczyk
bf89577602
Merge pull request #157 from arutk/remove_allocation_from_logger
Replace runtime allocation in logger with static percpu buffer
2019-10-18 16:34:49 +02:00
Adam Rutkowski
dc61d28247 Replace runtime allocation in logger with static percpu buffer
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-18 17:44:13 -04:00
Michał Mielewczyk
affe543e3d
Merge pull request #155 from arutk/fix_vfree
Fix cas_vfree
2019-10-18 16:26:00 +02:00
Adam Rutkowski
f7cc3d414c Fix cas_vfree
1. cas_vfree implementation is now properly selected based on kernel version
2. cas_vfree semantics now accepts NULL pionter as a valid input

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-18 17:29:05 -04:00
Michał Mielewczyk
e588ff1439
Merge pull request #156 from arutk/vmalloc_flags
env: implement vmalloc with GFP flags
2019-10-18 16:22:18 +02:00
Adam Rutkowski
c5165838e5 env: implement vmalloc with GFP flags
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-18 17:35:29 -04:00
Robert Bałdyga
485bd352ed
Merge pull request #151 from mmichal10/log-from-configure
Log from configure
2019-10-18 16:11:11 +02:00
Robert Baldyga
4fb82abeca Move OCL tests from test-framework repository
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-18 15:27:21 +02:00
Michal Mielewczyk
b05491edac configure: check for requiured tools.
Configure is not only supposed to check for tools required by itself but also
for those ones needed by OCL.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-16 03:44:42 -04:00
Michal Mielewczyk
195e5c5e56 configure: Save output from test modules compilation.
Currently configure script doesn't support any logging mechanism. To make easy
debugging possible, output from all failed compilation attempts is stored.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-14 08:43:45 -04:00
Michal Mielewczyk
c1e3835055 Update ocf version.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-14 08:43:45 -04:00
Robert Bałdyga
d2666b785a
Merge pull request #149 from robertbaldyga/update-ocf-v19.9
Update OCF to v19.9
2019-10-04 11:11:17 +02:00
Robert Baldyga
52d7c60f9b Update OCF to v19.9
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-04 11:02:44 +02:00
Michal Rakowski
3969c47ed8
Merge pull request #148 from micrakow/utils_fix
Utils fix
2019-10-02 20:59:04 +02:00
Michal Rakowski
23c03812ba OCF update
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-10-02 20:49:39 +02:00
Michal Rakowski
3a19ae0bf5 utils: print help as default casctl cmd
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-10-02 19:56:59 +02:00
Michał Mielewczyk
294659771c
Merge pull request #141 from rafalste/update_promo_pol_tests
Add promotion policy smoke tests
2019-10-01 16:28:30 +02:00
Adam Rutkowski
e89262588f
Merge pull request #144 from mmichal10/error-message
Error message
2019-10-01 16:25:14 +02:00
Michal Mielewczyk
fe7da3220d Mark removed core id as free.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-01 10:00:08 -04:00
Michal Mielewczyk
af7ac1f23e casadm: add description for occupied core id error.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-01 09:59:26 -04:00
Rafal Stefanowski
b8a3cc7660 Add promotion policy smoke tests
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2019-10-01 15:40:04 +02:00
Adam Rutkowski
3feb79a19c
Merge pull request #142 from arutk/ocf_update_011019
OCF update (locking fix)
2019-10-01 15:21:56 +02:00
Adam Rutkowski
cf9fbafdbf OCF update (locking fix)
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-10-01 17:19:36 -04:00
Katarzyna Łapińska
b1fb10da91
Merge pull request #140 from Deixx/ocf-update
Updated OCF version
2019-10-01 13:56:05 +02:00
Daniel Madej
5e0a5a5ebb Updated OCF version
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2019-10-01 13:28:07 +02:00
Katarzyna Łapińska
3d4d7c96bf
Merge pull request #139 from mmichal10/fix-pp
Adapt to new OCF PP param set/get API.
2019-10-01 13:14:49 +02:00
Michal Mielewczyk
296db39ea0 Adapt to new OCF PP param set/get API.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-10-01 06:54:32 -04:00
Michał Mielewczyk
35d1793d44
Merge pull request #137 from micrakow/ocf_update
OCF update
2019-10-01 12:54:17 +02:00