Commit 2917d583 authored by Ramon Nou's avatar Ramon Nou
Browse files

Added GKFS_ENABLE_UNUSED_FUNCTIONS

changed coverage tests name
parent a8dd42c9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### New
- Additional tests to increase code coverage ([!141](https://storage.bsc.es/gitlab/hpc/gekkofs/-/merge_requests/141)).
- GKFS_ENABLE_UNUSED_FUNCTIONS added to disable code to increase code coverage.
### Changed
- Support parallelism for path resolution tests ([!145](https://storage.bsc.es/gitlab/hpc/gekkofs/-/merge_requests/145)).
- Support parallelism for symlink tests ([!147](https://storage.bsc.es/gitlab/hpc/gekkofs/-/merge_requests/147)).
+2 −0
Original line number Diff line number Diff line
@@ -178,6 +178,8 @@ if (GKFS_ENABLE_AGIOS)
    find_package(AGIOS REQUIRED)
endif ()

option(GKFS_ENABLE_UNUSED_FUNCTIONS "Enable unused functions compilation" OFF)

option(GKFS_ENABLE_PARALLAX "Enable Parallax db backend" OFF)
option(GKFS_ENABLE_ROCKSDB "Enable ROCKSDB backend" ON)

+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ bool_to_merc_bool(bool state);
std::string
get_my_hostname(bool short_hostname = false);

#ifdef ENABLE_UNUSED_FUNCTIONS
#ifdef GKFS_ENABLE_UNUSED_FUNCTIONS
std::string
get_host_by_name(const std::string& hostname);
#endif
+2 −2
Original line number Diff line number Diff line
@@ -411,7 +411,7 @@ gkfs_statfs(struct statfs* buf) {
    return 0;
}

#ifdef ENABLE_UNUSED_FUNCTIONS
#ifdef GKFS_ENABLE_UNUSED_FUNCTIONS
/**
 * gkfs wrapper for statvfs() system calls
 * errno may be set
@@ -1096,7 +1096,7 @@ gkfs_getdents64(unsigned int fd, struct linux_dirent64* dirp,


#ifdef HAS_SYMLINKS
#ifdef ENABLE_UNUSED_FUNCTIONS
#ifdef GKFS_ENABLE_UNUSED_FUNCTIONS
/**
 * gkfs wrapper for make symlink() system calls
 * errno may be set
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ get_my_hostname(bool short_hostname) {
        return ""s;
}

#ifdef ENABLE_UNUSED_FUNCTIONS
#ifdef GKFS_ENABLE_UNUSED_FUNCTIONS
string
get_host_by_name(const string& hostname) {
    int err = 0;
Loading