From a2628b6dac53727b5663f8093472e1588c93c7ed Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 27 Oct 2023 17:58:48 +0100 Subject: [PATCH] Testing: metar group keys --- tests/metar_get.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/metar_get.sh b/tests/metar_get.sh index 181461526..25613ce04 100755 --- a/tests/metar_get.sh +++ b/tests/metar_get.sh @@ -35,4 +35,9 @@ export METAR_MONTH=4 ${tools_dir}/metar_get -n ls $metar_file >/dev/null ${tools_dir}/metar_get -w count=1/2/3 -p CCCC,latitude,longitude,dateTime,elevation,temperature,dewPointTemperature,qnh $metar_file +# Decode a 'group' key as int and double +result=$( ${tools_dir}/metar_get -p visibilityInMetres:i,visibilityInMetres:d -w count=1 $metar_file ) +[ "$result" = "6000 6000" ] + +# Clean up rm -f $fLog