Skip to content

Commit

Permalink
update complog part of baseline script to report missing data as MISS…
Browse files Browse the repository at this point in the history
… instead of FAIL
  • Loading branch information
apcraig committed May 23, 2021
1 parent 210a2ec commit 2d81f56
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions configuration/scripts/tests/baseline.script
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,26 @@ if (${ICE_BASECOM} != ${ICE_SPVAL}) then
echo "base_file: ${base_file}"
echo "test_file: ${test_file}"

${ICE_CASEDIR}/casescripts/comparelog.csh ${base_file} ${test_file}
set logstatus = $status

if ( ${logstatus} == 0 ) then
echo "PASS ${ICE_TESTNAME} complog ${ICE_BASECOM}" >> ${ICE_CASEDIR}/test_output
echo "Regression baseline and test dataset may be the same"
else if ( ${logstatus} == 1 ) then
echo "FAIL ${ICE_TESTNAME} complog ${ICE_BASECOM} different-data" >> ${ICE_CASEDIR}/test_output
echo "Regression baseline and test dataset are not the same"
else if ( ${logstatus} == 2 ) then
if ("${base_file}" == "" || "${test_file}" == "" ) then
echo "MISS ${ICE_TESTNAME} complog ${ICE_BASECOM} missing-data" >> ${ICE_CASEDIR}/test_output
echo "Missing data"
else
echo "FAIL ${ICE_TESTNAME} complog ${ICE_BASECOM} usage-error" >> ${ICE_CASEDIR}/test_output
echo "Regression baseline and test dataset error in usage"
${ICE_CASEDIR}/casescripts/comparelog.csh ${base_file} ${test_file}
set logstatus = $status

if ( ${logstatus} == 0 ) then
echo "PASS ${ICE_TESTNAME} complog ${ICE_BASECOM}" >> ${ICE_CASEDIR}/test_output
echo "Regression baseline and test dataset may be the same"
else if ( ${logstatus} == 1 ) then
echo "FAIL ${ICE_TESTNAME} complog ${ICE_BASECOM} different-data" >> ${ICE_CASEDIR}/test_output
echo "Regression baseline and test dataset are not the same"
else if ( ${logstatus} == 2 ) then
echo "MISS ${ICE_TESTNAME} complog ${ICE_BASECOM} missing-data" >> ${ICE_CASEDIR}/test_output
echo "Missing data"
else
echo "FAIL ${ICE_TESTNAME} complog ${ICE_BASECOM} usage-error" >> ${ICE_CASEDIR}/test_output
echo "Regression baseline and test dataset error in usage"
endif
endif

endif
Expand Down

0 comments on commit 2d81f56

Please sign in to comment.