Move eviction files to new locations
src/eviction/lru.c -> src/ocf_lru.c src/eviction/lru.h -> src/ocf_lru.h src/eviction/lru_structs.h -> src/ocf_lru_structs.h src/eviction/eviction.c -> src/ocf_space.c src/eviction/eviction.h -> src/ocf_space.h .. as well as corresponding UT files. Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com> ... in UT as well Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
@@ -16,7 +16,7 @@ MAIN_DIRECTORY_OF_UNIT_TESTS = "../tests/"
|
||||
# Paths to all directories, in which tests are stored. All paths should be relative to
|
||||
# MAIN_DIRECTORY_OF_UNIT_TESTS
|
||||
DIRECTORIES_WITH_TESTS_LIST = ["cleaning/", "metadata/", "mngt/", "concurrency/", "engine/",
|
||||
"eviction/", "utils/", "promotion/"]
|
||||
"ocf_space.c/", "ocf_lru.c/", "utils/", "promotion/"]
|
||||
|
||||
# Paths to all directories containing files with sources. All paths should be relative to
|
||||
# MAIN_DIRECTORY_OF_TESTED_PROJECT
|
||||
|
@@ -33,7 +33,7 @@
|
||||
#include "../utils/utils_cleaner.h"
|
||||
#include "../utils/utils_user_part.h"
|
||||
#include "../metadata/metadata.h"
|
||||
#include "../eviction/eviction.h"
|
||||
#include "../ocf_space.h"
|
||||
#include "../promotion/promotion.h"
|
||||
#include "../concurrency/ocf_concurrency.h"
|
||||
|
||||
|
@@ -36,7 +36,7 @@ ocf_mngt_cache_mode_has_lazy_write
|
||||
#include "../utils/utils_cache_line.h"
|
||||
#include "../utils/utils_pipeline.h"
|
||||
#include "../concurrency/ocf_concurrency.h"
|
||||
#include "../eviction/lru.h"
|
||||
#include "../ocf_lru.h"
|
||||
#include "../ocf_ctx_priv.h"
|
||||
#include "../cleaning/cleaning.h"
|
||||
|
||||
|
@@ -30,7 +30,7 @@
|
||||
#include "../utils/utils_cache_line.h"
|
||||
#include "../utils/utils_pipeline.h"
|
||||
#include "../concurrency/ocf_concurrency.h"
|
||||
#include "../eviction/lru.h"
|
||||
#include "../ocf_lru.h"
|
||||
#include "../ocf_ctx_priv.h"
|
||||
#include "../cleaning/cleaning.h"
|
||||
|
||||
|
@@ -32,7 +32,7 @@
|
||||
#include "../metadata/metadata.h"
|
||||
#include "../engine/cache_engine.h"
|
||||
#include "../utils/utils_user_part.h"
|
||||
#include "../eviction/lru.h"
|
||||
#include "../ocf_lru.h"
|
||||
#include "ocf_env.h"
|
||||
|
||||
#include "mngt/ocf_mngt_io_class.c/ocf_mngt_io_class_generated_wraps.c"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* <tested_file_path>src/eviction/lru.c</tested_file_path>
|
||||
* <tested_file_path>src/ocf_lru.c</tested_file_path>
|
||||
* <tested_function>_lru_init</tested_function>
|
||||
* <functions_to_leave>
|
||||
* update_lru_head
|
||||
@@ -23,8 +23,8 @@
|
||||
#include <cmocka.h>
|
||||
#include "print_desc.h"
|
||||
|
||||
#include "eviction.h"
|
||||
#include "lru.h"
|
||||
#include "ocf_space.h"
|
||||
#include "ocf_lru.h"
|
||||
#include "ops.h"
|
||||
#include "../utils/utils_cleaner.h"
|
||||
#include "../utils/utils_cache_line.h"
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "../engine/engine_zero.h"
|
||||
#include "../ocf_request.h"
|
||||
|
||||
#include "eviction/lru.c/lru_generated_wraps.c"
|
||||
#include "ocf_lru.c/lru_generated_wraps.c"
|
||||
|
||||
#define META_COUNT 128
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* <tested_file_path>src/eviction/lru.c</tested_file_path>
|
||||
* <tested_file_path>src/ocf_lru.c</tested_file_path>
|
||||
* <tested_function>lru_iter_next</tested_function>
|
||||
* <functions_to_leave>
|
||||
* INSERT HERE LIST OF FUNCTIONS YOU WANT TO LEAVE
|
||||
@@ -26,8 +26,8 @@
|
||||
#include <cmocka.h>
|
||||
#include "print_desc.h"
|
||||
|
||||
#include "eviction.h"
|
||||
#include "lru.h"
|
||||
#include "ocf_space.h"
|
||||
#include "ocf_lru.h"
|
||||
#include "../utils/utils_cleaner.h"
|
||||
#include "../utils/utils_cache_line.h"
|
||||
#include "../concurrency/ocf_concurrency.h"
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "../engine/engine_zero.h"
|
||||
#include "../ocf_request.h"
|
||||
|
||||
#include "eviction/lru.c/lru_iter_generated_wraps.c"
|
||||
#include "ocf_lru.c/lru_iter_generated_wraps.c"
|
||||
|
||||
//#define DEBUG
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* <tested_file_path>src/eviction/eviction.c</tested_file_path>
|
||||
* <tested_file_path>src/ocf_space.c</tested_file_path>
|
||||
* <tested_function>ocf_remap_do</tested_function>
|
||||
* <functions_to_leave>
|
||||
ocf_evict_user_partitions
|
||||
@@ -17,10 +17,10 @@
|
||||
#include <cmocka.h>
|
||||
#include "print_desc.h"
|
||||
|
||||
#include "eviction.h"
|
||||
#include "ocf_space.h"
|
||||
#include "../utils/utils_user_part.h"
|
||||
|
||||
#include "eviction/eviction.c/eviction_generated_wraps.c"
|
||||
#include "ocf_space.c/ocf_space_generated_wraps.c"
|
||||
|
||||
struct test_cache
|
||||
{
|
Reference in New Issue
Block a user