Skip to content
Snippets Groups Projects
Commit 39dd9921 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: Mantis-1181: handle hxx and txx in header tests

parent a5bb28a5
No related branches found
No related tags found
No related merge requests found
......@@ -108,14 +108,18 @@ def main():
else:
max_idx = added_header_idx + maximum_number_of_headers
for i in range(added_header_idx, max_idx):
# Use the .hxx if possible.
# Use the .hxx or .txx if possible.
hxx_file = h_files[i][:-1] + 'hxx'
txx_file = h_files[i][:-1] + 'txx'
# Files that include VTK headers need to link to VTK.
if h_files[i] in BANNED_HEADERS or h_files[i].lower().find('vtk') != -1:
to_include = '// #include "' + h_files[i] + '" // Banned in BuildHeaderTest.py\n'
elif os.path.exists(os.path.join(module_source_path, 'include',
hxx_file)):
to_include = '#include "' + hxx_file + '"\n'
elif os.path.exists(os.path.join(module_source_path, 'include',
txx_file)):
to_include = '#include "' + txx_file + '"\n'
else:
to_include = '#include "' + h_files[i] + '"\n'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment