E3SM-Project / HOMMEXX

Clone of ACME for CMDV-SE project to convert HOMME to C++
11 stars 0 forks source link

Create a way to clean up tests output files upon success #296

Open bartgol opened 6 years ago

bartgol commented 6 years ago

Currently, a single build of HOMMEXX produces ~1.9GB of output files. On filesystem where multiple builds are present (i.e., fs shared among platforms, or where multiple branches are tested at the same time), this can make output files a burden.

Possible approach: add HOMME_CLEANUP_SUCCESSFUL_TESTS config option (default OFF); in diff-output.sh, before exit 0, if HOMME_CLEANUP_SUCCESSFUL_TESTS is ON, delete output nc files.

Second possible approach: create a target 'cleanUpTests', that the user can run manually if he needs to free up some space without deleting the build dir.

I vote for the first.