eccodes/.github/ci-nightly-test.sh

32 lines
851 B
Bash
Raw Permalink Normal View History

2023-03-31 13:22:43 +00:00
#!/bin/bash
set -eu
2023-03-31 13:22:43 +00:00
2023-04-05 10:18:10 +00:00
# We do not want to come across the ecCodes tools in the toolbox
module unload ecmwf-toolbox
module load cdo/new
module load numdiff
module load nccmp
2024-02-22 16:27:05 +00:00
module load netcdf4
2023-04-05 10:18:10 +00:00
module load gnuparallel/new
module load python3
2023-03-31 13:22:43 +00:00
2023-12-11 09:36:26 +00:00
version=$(cat $TMPDIR/eccodes/VERSION)
# Note:
# The environment variable "GH_TOKEN" needs to be there for the clone to succeed
#
regression_suite_dir=$TMPDIR/eccodes-regression-tests
mkdir -p $regression_suite_dir
git clone https://${GH_TOKEN}@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir
cd $regression_suite_dir
# Launch the regression tests in parallel (This script uses GNU parallel)
# cd ~masn/REGRESSION_TESTING/ecCodes
2023-12-11 09:36:26 +00:00
./par-suite.sh -w $TMPDIR/install/eccodes/$version
2023-04-05 10:23:36 +00:00
2023-04-05 10:28:46 +00:00
# For debugging specific test(s)
# ./seq-suite.sh -w $TMPDIR/install/eccodes/$version -d -t $test_name