Skip to content

Commit

Permalink
added test file
Browse files Browse the repository at this point in the history
  • Loading branch information
webisu committed Sep 27, 2024
1 parent c7611f4 commit 756c293
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ option(USE_NETCDF "Use NetCDF" on)
option(USE_REGEX "Use Regex?" on)
option(USE_TIGGE "Use tigge?" on)
option(USE_MYSQL "Use MySQL?" off)
option(USE_IPOLATES "Use Ipolates" on)
option(USE_IPOLATES "Use Ipolates" off)
option(USE_UDF "Use UDF?" off)
option(USE_OPENMP "Use OpenMP?" on)
option(USE_PROJ4 "Use Proj4?" off)
Expand Down
29 changes: 29 additions & 0 deletions tests/run_wgrib2_png_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/sh
# This script runs a series of tests using the RPN calculator
#
# Alyson Stahl 5/7/2024

set -e
echo ""
echo "*** Running wgrib2 png tests"



r1="1:0:(2000,1000),lon=304.937500,lat=-27.584172,val=1"
r2=`../wgrib2/wgrib2 data/png_4bits.png -ijlat 2000 1000`
if [ "$r1" != "$r2" ] ; then
echo "failed png test1 $r2"
echo "expected $r1"
exit 1
fi

r1="1:0:(2000,2000),lon=249.995002,lat=39.995000,val=0"
r2=`../wgrib2/wgrib2 data/large_png.grb2 -ijlat 2000 2000`
if [ "$r1" != "$r2" ] ; then
echo "failed png test2 $r2"
echo "expected $r1"
exit 1
fi

echo "*** SUCCESS!"
exit 0

0 comments on commit 756c293

Please sign in to comment.