Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
Loading...
Searching...
No Matches
Classes | Functions | Variables
main_tests.cpp File Reference

Contains the main function for tests. More...

#include <algorithm>
#include <stdexcept>
#include <string>
#include <vector>
#include <gtest/gtest.h>
#include "utils/testing_utilities.h"
Include dependency graph for main_tests.cpp:

Classes

class  InputParser
 Class for parsing input flags. Modified from https://stackoverflow.com/questions/865668/parsing-command-line-arguments-in-c. More...
 

Functions

int main (int argc, char **argv)
 The main function for testing.
 

Variables

testing_utilities::GlobalString globalChollaRoot
 This is the global variable to store the path to the root of Cholla.
 
testing_utilities::GlobalString globalChollaBuild
 
testing_utilities::GlobalString globalChollaMachine
 
testing_utilities::GlobalString globalMpiLauncher
 
bool globalRunCholla
 
bool globalCompareSystemTestResults
 

Detailed Description

Contains the main function for tests.

Author
Robert 'Bob' Caddy (rvc@p.nosp@m.itt..nosp@m.edu)

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

The main function for testing.

Parameters
argcThe number of CLI arguments
argvA list of the CLI arguments. Requires that --cholla-root be set to the root directory of Cholla, --build-type be set to the make type used to build cholla and the tests, and --machine be set to the name of the machine being used, this must be the same name as in the make.host file
Returns
int