Download data/tests/TestRunner.cpp from introvoyz045/COPASI: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/datasets/introvoyz045/COPASI/resolve/main/data/tests/TestRunner.cpp
- Command line
-
hf download hf://datasets/introvoyz045/COPASI/data/tests/TestRunner.cpp
-
curl -L -o TestRunner.cpp https://huggingface.co/datasets/introvoyz045/COPASI/resolve/main/data/tests/TestRunner.cpp
1.29 kB
| // Copyright (C) 2021 by Pedro Mendes, Rector and Visitors of the | |
| // University of Virginia, University of Heidelberg, and University | |
| // of Connecticut School of Medicine. | |
| // All rights reserved. | |
| /** | |
| * Main Entry point for all tests (defines catch main, and only one | |
| * test file can do it). This file is there to include utility | |
| * functions used in all other test files. | |
| */ | |
| // now include catch | |
| /** | |
| * Tries to find the test file in the srcdir environment variable. | |
| * | |
| * @param fileName the filename relative to this tests srcdir | |
| * environment variable. | |
| * | |
| * If the filename cannot be found, the test from which this function | |
| * is called will fail. | |
| * | |
| * @return the full path to the test file | |
| */ | |
| std::string getTestFile(const std::string& fileName) | |
| { | |
| std::stringstream str; | |
| char* srcDir = getenv("srcdir"); | |
| if (srcDir != NULL) str << srcDir; | |
| else str << "."; | |
| str << "/" << fileName; | |
| std::string fullName = str.str(); | |
| return fullName; | |
| } | |
| int main(int argc, char *argv[]) | |
| { | |
| CRootContainer::init(0, NULL); | |
| int result = Catch::Session().run(argc, argv); | |
| CRootContainer::destroy(); | |
| return result; | |
| } | |