| 715 | } |
| 716 | |
| 717 | int endTestPostProcess(std::ostream& out) |
| 718 | { |
| 719 | /* check validity of temporary files if known */ |
| 720 | if (!TEST::validate(TEST::tmp_file_list)) |
| 721 | { |
| 722 | TEST::all_tests = false; |
| 723 | } |
| 724 | if (TEST::verbose == 0) |
| 725 | { |
| 726 | out << "Output of successful tests were suppressed. Set the environment variable 'OPENMS_TEST_VERBOSE=True' to enable them." << std::endl; |
| 727 | } /* check for exit code */ |
| 728 | if (!TEST::all_tests) |
| 729 | { |
| 730 | out << "FAILED\n"; |
| 731 | if (TEST::add_message != "") |
| 732 | out << "Message: " << TEST::add_message << '\n'; |
| 733 | out << "Failed lines: "; |
| 734 | for (OpenMS::Size i = 0; i < TEST::failed_lines_list.size(); ++i) |
| 735 | { |
| 736 | out << TEST::failed_lines_list[i] << " "; |
| 737 | } |
| 738 | out << std::endl; |
| 739 | return 1; |
| 740 | } |
| 741 | else |
| 742 | { /* remove temporary files*/ |
| 743 | TEST::removeTempFiles(); |
| 744 | out << "PASSED"; |
| 745 | if (TEST::add_message != "") |
| 746 | out << " (" << TEST::add_message << ")"; |
| 747 | out << std::endl; |
| 748 | return 0; |
| 749 | } |
| 750 | } |
| 751 | |
| 752 | void endSectionPostProcess(std::ostream& out, const int line) |
| 753 | { |
nothing calls this directly
no test coverage detected