/*************************************************************************** * @brief Main entry point for test executable ***************************************************************************/ int main(void) { // Allocate test suit container GTestSuites testsuites("Observation module"); // Initially assume that we pass all tests bool success = true; // Create and append test suites TestGObservation obs; testsuites.append(obs); // Create and append OpenMP test suite #ifdef _OPENMP TestOpenMP openmp; testsuites.append(openmp); #endif // Run the testsuites success = testsuites.run(); // Save test report testsuites.save("reports/GObservation.xml"); // Return success status return (success ? 0 : 1); }
/*************************************************************************** * @brief Main entry point for test executable ***************************************************************************/ int main(void) { // Allocate test suit container GTestSuites testsuites("CTA instrument specific class testing"); // Check if data directory exists bool has_data = (access(datadir.c_str(), R_OK) == 0); if (has_data) { std::string caldb = "CALDB="+cta_caldb; putenv((char*)caldb.c_str()); } // Initially assume that we pass all tests bool success = true; // Create test suites and append them to the container TestGCTAResponse rsp; TestGCTAObservation obs; TestGCTAOptimize opt; testsuites.append(rsp); if (has_data) { testsuites.append(obs); testsuites.append(opt); } // Run the testsuites success = testsuites.run(); // Save test report testsuites.save("reports/GCTA.xml"); // Return success status return (success ? 0 : 1); }
/*************************************************************************** * @brief Main entry point for test executable ***************************************************************************/ int main(void) { // Allocate test suit container GTestSuites testsuites("LAT instrument specific class testing"); // Check if data directory exists bool has_data = (access(PACKAGE_SOURCE"/inst/lat/test/data", R_OK) == 0); // Initially assume that we pass all tests bool success = true; // Create test suites and append them to the container TestGLATResponse rsp; TestGLATLtCube ltcube; TestGLATObservation obs; TestGLATOptimize opt; testsuites.append(rsp); if (has_data) { testsuites.append(ltcube); testsuites.append(obs); testsuites.append(opt); } // Run the testsuites success = testsuites.run(); // Save test report testsuites.save("reports/GLAT.xml"); // Return success status return (success ? 0 : 1); }
/*************************************************************************** * @brief Main test function ***************************************************************************/ int main(void) { GTestSuites testsuites("GSky"); bool was_successful=true; //Create a test suite TestGSky test; //Append to the container testsuites.append(test); //Run was_successful=testsuites.run(); //save xml report testsuites.save("reports/GSky.xml"); // Return return was_successful ? 0:1; }
/*************************************************************************** * @brief Main entry point for test executable ***************************************************************************/ int main(void) { // Allocate test suit container GTestSuites testsuites("Optimizer module"); // Initially assume that we pass all tests bool success = true; // Create and append test suite TestGOptimizer openmp; testsuites.append(openmp); // Run the testsuites success = testsuites.run(); // Save test report testsuites.save("reports/GOptimizer.xml"); // Return success status return (success ? 0 : 1); }
/*************************************************************************** * @brief Main entry point for test executable ***************************************************************************/ int main(void) { // Allocate test suit container GTestSuites testsuites("GMatrixSparse class testing"); // Initially assume that we pass all tests bool success = true; // Create a test suite TestGMatrixSparse test; // Append test suite to the container testsuites.append(test); // Run the testsuites success = testsuites.run(); // Save test report testsuites.save("reports/GMatrixSparse.xml"); // Return success status return (success ? 0 : 1); }