From 76b91b065006a33791bb7ab6fb87441e2b3021c5 Mon Sep 17 00:00:00 2001
From: lb584 <lb584@cam.ac.uk>
Date: Tue, 31 Jan 2023 17:25:06 +0000
Subject: [PATCH] adding run tests shell script

---
 tests/integration/full/run_tests.sh | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100755 tests/integration/full/run_tests.sh

diff --git a/tests/integration/full/run_tests.sh b/tests/integration/full/run_tests.sh
new file mode 100755
index 0000000..227fecc
--- /dev/null
+++ b/tests/integration/full/run_tests.sh
@@ -0,0 +1,26 @@
+
+#note this script only works if run in the project docker image, or an environment with the necessary paths and
+# software installed
+
+source /storage/app/miniconda3/bin/activate /storage/app/EWS_prod/envs/conda/py3EWS/
+
+PACKAGES_DIR="../../../../" # assumes run from the tests/integration/partial dir
+
+flagdir=$PACKAGES_DIR/flagdir
+epimodel=$PACKAGES_DIR/epimodel
+advisory=$PACKAGES_DIR/advisory_builder
+met_processing=$PACKAGES_DIR/met_extractor_v2/met_data_extraction
+met_processor=$PACKAGES_DIR/environmental_suitability/environmental_suitability
+plotting=$PACKAGES_DIR/plotting/plotting
+post_processing=$PACKAGES_DIR/post_processing/ews_postprocessing
+source_gen=$PACKAGES_DIR/source_gen
+coordinator=$PACKAGES_DIR/coordinator/coordinator
+coordinator_tests=$PACKAGES_DIR/coordinator/tests
+
+export PYTHONPATH=$PYTHONPATH:$flagdir:$epimodel:$advisory:$met_processing:$met_processor:$plotting:$source_gen:$post_processing:$coordinator:$coordinator_tests
+
+echo $PYTHONPATH
+
+python full_test_deposition.py --config /storage/app/EWS_prod/regions/EastAfrica/resources/coordinator/configs/config_EastAfrica_fc_live.json \
+--outdir /storage/app/EWS_prod/regions/EastAfrica/workspace/ \
+--email_cred /storage/app/EWS_prod/envs/credentials/Cred_gmail.json
\ No newline at end of file
-- 
GitLab