On Thu, Aug 7, 2025 at 2:30 PM Mark Adams <mfad...@lbl.gov> wrote: > It seems to me that if you want to override $args then you are changing > the test and can just change the code. Or it does not seem like a use case > that deserves to supported. >
I use the test system all the time for development now, since it provides a convenient path for baseline options, incremental rebuilds, and verification. In this situation, overriding is very useful. Matt > On Thu, Aug 7, 2025 at 6:24 AM Matthew Knepley <knep...@gmail.com> wrote: > >> We currently have two kinds of options in the test system. Options that >> come from the "args" line in the TEST section of the example source, which >> we will call $args, and options that come from the EXTRA_OPTIONS env var >> when the test is executed, which we will call $extra_args. >> >> Right now, in petsc_harness.sh:109, we feed the example executable the >> arguments >> >> $extra_args $args >> >> This allows us to do things like declare EXTRA_OPTIONS="-fp_trap" for >> linux-pkgs-dbg, and then allow it to be turned off for certain tests with >> -fp_trap 0 in the argos line. >> >> This setup, however, does not allow us to override any options given in >> $args while running a test, which seems very restrictive. Should we create >> a third class of options? >> >> Thanks, >> >> Matt >> >> -- >> What most experimenters take for granted before they begin their >> experiments is infinitely more interesting than any results to which their >> experiments lead. >> -- Norbert Wiener >> >> https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!ZqSb79QTR5_UGe5nbhkQBf4dT8xbD4jbpm3STSiXIkDODLfPlqo3hYXs3fT07rgId6AUs765hvAuH7Qt1xFu$ >> >> <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!es96ebvWwNhZgW9QAbhKl87uWMsmggCaWnv60yjXuLOqvK4co4KiyvhNTffA2KhyR42saIqyrZ93SWsl1pKX$> >> > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!ZqSb79QTR5_UGe5nbhkQBf4dT8xbD4jbpm3STSiXIkDODLfPlqo3hYXs3fT07rgId6AUs765hvAuH7Qt1xFu$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!ZqSb79QTR5_UGe5nbhkQBf4dT8xbD4jbpm3STSiXIkDODLfPlqo3hYXs3fT07rgId6AUs765hvAuH8BYdYY1$ >