ECC-1623: Test

This commit is contained in:
Shahram Najm 2023-07-03 21:23:03 +01:00 committed by shahramn
parent 38bdecaf95
commit 5da3be6359
1 changed files with 14 additions and 0 deletions

View File

@ -40,4 +40,18 @@ EOF
diff $tempRef $tempText diff $tempRef $tempText
# ------------------------
cat > $tempFilt <<EOF
set unpack = 1;
set stationOrSiteName = {"Opeth", "Advent", "Night", "Silent", "Water", "Nectar",
"Black", "Rose", "Immortal", "Bid", "You", "Farewell"};
set pack = 1;
write;
EOF
input=$data_dir/bufr/synop_multi_subset.bufr
${tools_dir}/codes_bufr_filter -o $tempBufr $tempFilt $input
result=`${tools_dir}/bufr_get -s unpack=1 -p '#3#stationOrSiteName' $tempBufr`
[ "$result" = "Night" ]
# Clean up
rm -f $tempBufr $tempFilt $tempRef $tempText rm -f $tempBufr $tempFilt $tempRef $tempText