Skip to content
Snippets Groups Projects
Select Git revision
  • 8bae354433947e701d18c04b4581f755008358d4
  • master default protected
  • feat-add_graphviz_wf
  • experimental_rel protected
  • lab-jupyterlab4 protected
  • snudda_2.2.2
  • add-nestml-tests
  • ebrains-25-02 protected
  • lab-widgets protected
  • ebrains-24-04 protected
  • feat_add_py-jaxley
  • feat_JUSUF_image protected
  • fix-k8s-job-cache-dir
  • test_open3d
  • add-music
  • add_gcc-spinnaker
  • disable-view
  • test_quiggeldy_service
  • image_build
  • update-readme
  • create-module-file
  • v24.04
  • v25.02
  • v23.09
  • v23.06
  • v23.02
  • v22.10
  • v22.07
28 results

package.py

Blame
  • validate.cpp 693 B
    #include <cstring>
    #include <iostream>
    #include <fstream>
    #include <numeric>
    #include <vector>
    
    #include "gtest.h"
    #include "validation_data.hpp"
    
    int usage(const char* argv0) {
        std::cerr << "usage: " << argv0 << " [-p|--path validation_data_directory]\n";
        return 1;
    }
    
    int main(int argc, char **argv) {
        ::testing::InitGoogleTest(&argc, argv);
    
        if (argv[1] && (!std::strcmp(argv[1], "-p") || !std::strcmp(argv[1], "--path"))) {
            if (argv[2]) {
                testing::g_validation_data.set_path(argv[2]);
            }
            else {
                return usage(argv[0]);
            }
        }
        else if (argv[1]) {
            return usage(argv[0]);
        }
    
        return RUN_ALL_TESTS();
    }