LCOV - code coverage report
Current view: top level - oks/apps - oks_git_repository.cxx (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 7 0
Test Date: 2026-07-12 15:23:06 Functions: 0.0 % 1 0

            Line data    Source code
       1              : // DUNE DAQ modification notice:
       2              : // This file has been modified from the original ATLAS oks source for the DUNE DAQ project.
       3              : // Fork baseline commit: oks-08-03-04 (2022-04-14).
       4              : // Renamed since fork: yes (from bin/oks_git_repository.cpp to apps/oks_git_repository.cxx).
       5              : 
       6              : /**
       7              :  *  \file oks_git_repository.cpp
       8              :  *
       9              :  *  This file is part of the OKS package.
      10              :  *  Author: <Igor.Soloviev@cern.ch>
      11              :  */
      12              : 
      13              : #include "oks/kernel.hpp"
      14              : 
      15              : #include <string.h>
      16              : #include <stdlib.h>
      17              : 
      18              : using namespace dunedaq::oks;
      19              : 
      20              : int
      21            0 : main(int argc, char **argv)
      22              : {
      23            0 :   if(argc > 1)
      24              :     {
      25            0 :       if(!strcmp("-h", argv[1]) || !strcmp("--help", argv[1]))
      26              :         {
      27            0 :           std::cout << "This program extracts OKS git repository from TDAQ_DB_REPOSITORY process environment variable." << std::endl;
      28            0 :           return EXIT_SUCCESS;
      29              :         }
      30              :     }
      31              : 
      32            0 :   std::cout << OksKernel::get_repository_root() << std::endl;
      33              : 
      34            0 :   return EXIT_SUCCESS;
      35              : }
        

Generated by: LCOV version 2.0-1