-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added AEC test file * Fixed typo * Update run_wgrib2_aec_tests.sh * Turning openjpeg on in Linux_options workflow to get AEC tests to work * Update Linux_options.yml * Updated comment * Updated aec test and test data * Updated Linux_options.yml --------- Co-authored-by: Edward Hartnett <[email protected]>
- Loading branch information
1 parent
4d4d16c
commit e7f52f1
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
# This checks the use of AEC compression, only available if USE_AEC is turned on in CMake. | ||
# | ||
# Alyson Stahl, 4/18/24 | ||
|
||
set -e | ||
echo "" | ||
echo "*** Running wgrib2 tests" | ||
|
||
cksum0=`../wgrib2/wgrib2 data/tmp_int.grb -text - | cksum` | ||
../wgrib2/wgrib2 data/tmp_int.grb -set_grib_type aec -grib_out junk.grb | ||
cksum1=`../wgrib2/wgrib2 junk.grb -text - | cksum` | ||
|
||
if [ "$cksum0" != "$cksum1" ] ; then | ||
echo "failed for compressing to aec and reading from aec" | ||
exit 1 | ||
fi | ||
|
||
echo "*** SUCCESS!" | ||
exit 0 |