From c1fa64acacc279bf9e49df6e497c4b4db33f9b4e Mon Sep 17 00:00:00 2001 From: Erik Kluzek Date: Thu, 22 Feb 2018 13:17:58 -0700 Subject: [PATCH] Add a couple tests for inst_string option --- bld/unit_testers/build-namelist_test.pl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bld/unit_testers/build-namelist_test.pl b/bld/unit_testers/build-namelist_test.pl index 2013738f24..5097fbb9db 100755 --- a/bld/unit_testers/build-namelist_test.pl +++ b/bld/unit_testers/build-namelist_test.pl @@ -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 ); @@ -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(); @@ -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",