Commit cc1abe17 authored by Ramon Nou's avatar Ramon Nou
Browse files

QA: Comprehensive Tests, Refactoring and Cleanup

- Added integration and unit tests\n- Removed legacy tests and dead code\n- Code cleanup and refactoring\n- Coverage improvements
parent 8368179c
Loading
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -258,9 +258,6 @@ pfind_parse_args(int argc, char** argv, bool force_print_help) {
    int c;
    optind = 1; // Reset getopt's internal index for repeated calls.
    while((c = getopt(argc, modified_argv.data(), optstring)) != -1) {
        if(c == -1) {
            break;
        }

        switch(c) {
            case 'H':
@@ -414,7 +411,7 @@ dirProcess(const string& path, unsigned long long& checked,
    // Each process loops ONLY over its assigned servers
    for(int server = start_server; server < end_server; server++) {
        struct dirent_extended* entries = nullptr;
        long unsigned int n =
        int n =
                gkfs_getsingleserverdir(path.c_str(), &entries, server);

        if(n <= 0) { // Handle empty or error cases
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ typedef struct {
    string workdir;
    bool just_count = false;
    bool print_by_process = false;
    string results_dir;

    int stonewall_timer = 0;
    bool print_rates = false;
    string timestamp_file;
+2 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@
extern "C" {
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
}

using namespace std;
@@ -114,4 +115,5 @@ main(int argc, char** argv) {
    res = gkfs_end();

    cout << "End result " << res << endl;
    return 0;
}
+0 −50
Original line number Diff line number Diff line
/*
  Copyright 2018-2025, Barcelona Supercomputing Center (BSC), Spain
  Copyright 2015-2025, Johannes Gutenberg Universitaet Mainz, Germany

  This software was partially supported by the
  EC H2020 funded project NEXTGenIO (Project ID: 671951, www.nextgenio.eu).

  This software was partially supported by the
  ADA-FS project under the SPPEXA project funded by the DFG.

  This software was partially supported by the
  the European Union’s Horizon 2020 JTI-EuroHPC research and
  innovation programme, by the project ADMIRE (Project ID: 956748,
  admire-eurohpc.eu)

  This project was partially promoted by the Ministry for Digital Transformation
  and the Civil Service, within the framework of the Recovery,
  Transformation and Resilience Plan - Funded by the European Union
  -NextGenerationEU.

  This file is part of GekkoFS' POSIX interface.

  GekkoFS' POSIX interface is free software: you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public License as
  published by the Free Software Foundation, either version 3 of the License,
  or (at your option) any later version.

  GekkoFS' POSIX interface is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public License
  along with GekkoFS' POSIX interface.  If not, see
  <https://www.gnu.org/licenses/>.

  SPDX-License-Identifier: LGPL-3.0-or-later
*/

#ifndef GEKKOFS_CLIENT_FORWARD_MNGMNT_HPP
#define GEKKOFS_CLIENT_FORWARD_MNGMNT_HPP

namespace gkfs::rpc {

bool
forward_get_fs_config();

} // namespace gkfs::rpc

#endif // GEKKOFS_CLIENT_FORWARD_MNGMNT_HPP
+5 −4162

File changed.

Preview size limit exceeded, changes collapsed.

Loading