2023-03-31 13:22:43 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-07-25 14:42:46 +00:00
|
|
|
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)
|
|
|
|
|
2024-07-25 14:42:46 +00:00
|
|
|
# Note:
|
|
|
|
# The environment variable "GH_TOKEN" needs to be there for the clone to succeed
|
|
|
|
#
|
|
|
|
|
2024-07-31 14:32:54 +00:00
|
|
|
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
|
2024-07-24 08:50:39 +00:00
|
|
|
|
2024-07-25 14:42:46 +00:00
|
|
|
# Launch the regression tests in parallel (This script uses GNU parallel)
|
2024-07-31 14:32:54 +00:00
|
|
|
# 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)
|
2024-07-13 11:50:39 +00:00
|
|
|
# ./seq-suite.sh -w $TMPDIR/install/eccodes/$version -d -t $test_name
|