From 2cf5acfd7f303fa613680ba8dc967154c914f239 Mon Sep 17 00:00:00 2001 From: AlysonStahl-NOAA <166434581+AlysonStahl-NOAA@users.noreply.github.com> Date: Tue, 16 Apr 2024 07:39:08 -0600 Subject: [PATCH] Renamed test data files and added tests to workflow --- .github/workflows/Linux_options.yml | 1 + tests/CMakeLists.txt | 2 +- ...b2.txt => ref_npts_gdaswave.t00z.wcoast.0p16.f000.grib2.txt} | 0 tests/run_wgrib2_tests.sh | 2 +- 4 files changed, 3 insertions(+), 2 deletions(-) rename tests/data/{npts_gdaswave.t00z.wcoast.0p16.f000.grib2.txt => ref_npts_gdaswave.t00z.wcoast.0p16.f000.grib2.txt} (100%) diff --git a/.github/workflows/Linux_options.yml b/.github/workflows/Linux_options.yml index 407177c0..debbad55 100644 --- a/.github/workflows/Linux_options.yml +++ b/.github/workflows/Linux_options.yml @@ -134,3 +134,4 @@ jobs: cd b cmake ${{ matrix.config.options }} -DCMAKE_PREFIX_PATH="~/sp;~/ip;~/ip2" .. make VERBOSE=1 + ctest --verbose --output-on-failure --rerun-failed diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 448a92c1..85ee89f3 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -25,7 +25,7 @@ endfunction() # Copy test data file into buiild directory for testing. copy_test_data(gdaswave.t00z.wcoast.0p16.f000.grib2) copy_test_data(ref_gdaswave.t00z.wcoast.0p16.f000.grib2.inv) -copy_test_data(npts_gdaswave.t00z.wcoast.0p16.f000.grib2.txt) +copy_test_data(ref_npts_gdaswave.t00z.wcoast.0p16.f000.grib2.txt) # Run these shell tests. shell_test(run_wgrib2_tests) diff --git a/tests/data/npts_gdaswave.t00z.wcoast.0p16.f000.grib2.txt b/tests/data/ref_npts_gdaswave.t00z.wcoast.0p16.f000.grib2.txt similarity index 100% rename from tests/data/npts_gdaswave.t00z.wcoast.0p16.f000.grib2.txt rename to tests/data/ref_npts_gdaswave.t00z.wcoast.0p16.f000.grib2.txt diff --git a/tests/run_wgrib2_tests.sh b/tests/run_wgrib2_tests.sh index a0956272..39e8385d 100644 --- a/tests/run_wgrib2_tests.sh +++ b/tests/run_wgrib2_tests.sh @@ -22,7 +22,7 @@ cmp tmp.txt data/ref_gdaswave.t00z.wcoast.0p16.f000.grib2.inv # Returns number of grid points in grid ../wgrib2/wgrib2 data/gdaswave.t00z.wcoast.0p16.f000.grib2 -npts > npts.txt cat npts.txt -cmp npts.txt data/npts_gdaswave.t00z.wcoast.0p16.f000.grib2.txt +cmp npts.txt data/ref_npts_gdaswave.t00z.wcoast.0p16.f000.grib2.txt echo "*** SUCCESS!" exit 0