Skip to content

Commit

Permalink
Add creation of empty packageEnables and subprojects
Browse files Browse the repository at this point in the history
Add the creation of empty packageEnables.cmake and package_subproject_list.cmake
files when `--skip-create-packageenables` argument is passed.

This is due to SimpleTesting CTest drivers requiring these files to exist. packageEnables.cmake
and package_subproject_list.cmake are created by get-changed-trilinos-packages.sh script
which we do not always want to generate for cases such as Framework test line, where we do
not want to spend extra compute resources building packages from changed files. We let the other
PR builds handle that.

Signed-off-by: Anderson Chauphan <[email protected]>
  • Loading branch information
achauphan committed Dec 4, 2024
1 parent 5f8d2db commit d17a893
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ def execute_test(self):
if not self.args.dry_run:
gc.write_cmake_fragment()

if self.arg_skip_create_packageenables:
print("Optional --skip_create_packageenables found. " +
"Creating dummy packageEnables.cmake and package_subproject_list.cmake " +
"for CTest drivers.")
with open(self.arg_filename_packageenables, 'w'):
pass
with open(self.arg_filename_subprojects, 'w'):
pass

# Execute the call to ctest.
verbosity_flag = "-VV"
if "BUILD_NUMBER" in os.environ:
Expand Down

0 comments on commit d17a893

Please sign in to comment.