Skip to content

Commit

Permalink
changed test data file names and changed packing types
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed Apr 29, 2024
1 parent 627d3c3 commit 3f5dd51
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ copy_test_data(ref_gdaswave.t00z.wcoast.0p16.f000.grib2.inv)
copy_test_data(ref_npts_gdaswave.t00z.wcoast.0p16.f000.grib2.txt)
copy_test_data(ref_WW3_Regional_US_West_Coast_20220718_0000.grib2.inv)
copy_test_data(gdas.t12z.pgrb2.1p00.anl.75r)
copy_test_data(ref_wind.grb)
copy_test_data(ref_uv.grb)
copy_test_data(ref_wind.gdas.t12z.pgrb2.1p00.anl.75r)
copy_test_data(ref_uv.gdas.t12z.pgrb2.1p00.anl.75r)

# Run these shell tests.
shell_test(run_wgrib2_tests)
Expand Down
Binary file modified tests/data/gdas.t12z.pgrb2.1p00.anl.75r
Binary file not shown.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/run_wgrib2_tests.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ cat npts.txt
cmp npts.txt data/ref_npts_gdaswave.t00z.wcoast.0p16.f000.grib2.txt

# Tests the calculation of wind speed, direction, and UGRD & VGRD components
cksum_wind_0=`../wgrib2/wgrib2 data/ref_wind.grb -text - | cksum`
cksum_uv_0=`../wgrib2/wgrib2 data/ref_uv.grb -text - | cksum`
cksum_wind_0=`../wgrib2/wgrib2 data/ref_wind.gdas.t12z.pgrb2.1p00.anl.75r -text - | cksum`
cksum_uv_0=`../wgrib2/wgrib2 data/ref_uv.gdas.t12z.pgrb2.1p00.anl.75r -text - | cksum`
../wgrib2/wgrib2 data/gdas.t12z.pgrb2.1p00.anl.75r -wind_dir wind.grb -wind_speed wind.grb -match "(UGRD|VGRD)"
cksum_wind_1=`../wgrib2/wgrib2 wind.grb -text - | cksum`
if [ "$cksum_wind_0" != "$cksum_wind_1" ] ; then
Expand Down

0 comments on commit 3f5dd51

Please sign in to comment.