Skip to content

Commit

Permalink
Add a couple tests for inst_string option
Browse files Browse the repository at this point in the history
  • Loading branch information
ekluzek committed Feb 22, 2018
1 parent ce70e57 commit c1fa64a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bld/unit_testers/build-namelist_test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ sub make_env_run {
#
# Figure out number of tests that will run
#
my $ntests = 903;
my $ntests = 908;
if ( defined($opts{'compare'}) ) {
$ntests += 570;
$ntests += 573;
}
plan( tests=>$ntests );

Expand Down Expand Up @@ -280,6 +280,7 @@ sub make_env_run {
"-envxml_dir . -infile myuser_nl_clm",
"-ignore_ic_date -clm_start_type branch -namelist '&a nrevsn=\"thing.nc\"/' -bgc bgc -crop",
"-ignore_ic_date -clm_start_type startup -namelist '&a finidat=\"thing.nc\"/' -bgc bgc -crop",
"-inst_string '_0001'",
) {
my $file = $startfile;
&make_env_run();
Expand Down Expand Up @@ -452,6 +453,11 @@ sub make_env_run {
GLC_TWO_WAY_COUPLING=>"FALSE",
conopts=>"-phys clm5_0",
},
"bad instance string" =>{ options=>"-bgc sp -envxml_dir .",
namelst=>"",
GLC_TWO_WAY_COUPLING=>"FALSE",
conopts=>"-inst_string 'thing'",
},
"sp and c13" =>{ options=>"-bgc sp -envxml_dir .",
namelst=>"use_c13=.true.",
GLC_TWO_WAY_COUPLING=>"FALSE",
Expand Down

0 comments on commit c1fa64a

Please sign in to comment.