Testing: Tools options

This commit is contained in:
Shahram Najm 2023-12-31 16:49:12 +00:00
parent b405d64d1e
commit 858b418335
3 changed files with 24 additions and 3 deletions

View File

@ -64,6 +64,11 @@ ${tools_dir}/bufr_ls -s satelliteID=313 -p satelliteID aaen_55.bufr > $fTmp
grep -q "313" $fTmp grep -q "313" $fTmp
# ------------------------
# Test -w
# ------------------------
${tools_dir}/bufr_ls -w count=2 syno_multi.bufr
# ------------------------ # ------------------------
# Test corner cases # Test corner cases
# ------------------------ # ------------------------

View File

@ -25,15 +25,25 @@ touch $fLog
fTmp=${label}".tmp.txt" fTmp=${label}".tmp.txt"
rm -f $fTmp rm -f $fTmp
#---------------------------------------------- #-------------------------------------------
# Test default "ls" on all the gts data files # Test default "ls" on the gts data file
#---------------------------------------------- #-------------------------------------------
gts_file=EGRR20150317121020_00493212.DAT gts_file=EGRR20150317121020_00493212.DAT
f=$gts_file f=$gts_file
echo $f >> $fLog echo $f >> $fLog
${tools_dir}/gts_ls $f >> $fLog ${tools_dir}/gts_ls $f >> $fLog
#-------------------------------------------
# Test "-s" switch
#-------------------------------------------
${tools_dir}/gts_ls -s YY=abc $f >> $fLog
#-------------------------------------------
# Test "-w" switch
#-------------------------------------------
${tools_dir}/gts_ls -w AA=IY $f >> $fLog
#------------------------------------------- #-------------------------------------------
# Test "-p" switch # Test "-p" switch
#------------------------------------------- #-------------------------------------------

View File

@ -36,6 +36,12 @@ export METAR_MONTH=4
echo $f >> $fLog echo $f >> $fLog
${tools_dir}/metar_ls $f >> $fLog ${tools_dir}/metar_ls $f >> $fLog
#-------------------------------------------
# Test "-w" switch
#-------------------------------------------
${tools_dir}/metar_ls -w CCCC=VILK $f >> $fLog
#------------------------------------------- #-------------------------------------------
# Test "-p" switch # Test "-p" switch
#------------------------------------------- #-------------------------------------------