()
| 113 | header.write('#endif // CATCH_AMALGAMATED_HPP_INCLUDED\n') |
| 114 | |
| 115 | def generate_cpp(): |
| 116 | from glob import glob |
| 117 | cpp_files = sorted(glob(os.path.join(root_path, 'catch2', '**/*.cpp'), recursive=True)) |
| 118 | with open(output_cpp, mode='w', encoding='utf-8') as cpp: |
| 119 | cpp.write(formatted_file_header(Version())) |
| 120 | cpp.write('\n#include "catch_amalgamated.hpp"\n') |
| 121 | concatenate_file(cpp, os.path.join(root_path, 'catch2/internal/catch_windows_h_proxy.hpp'), False) |
| 122 | for file in cpp_files: |
| 123 | concatenate_file(cpp, file, False) |
| 124 | print('Concatenated {} cpp files'.format(len(cpp_files))) |
| 125 | |
| 126 | if __name__ == "__main__": |
| 127 | generate_header() |
no test coverage detected