commit 57464e7cb92e2c793aabc81e5b5021d6a0121bd4
parent 0d9e5189f9db793884b53f93e4fa0c3a3f287dfb
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 18 Aug 2025 15:28:46 +0200
Small update to the ground temperature test
Make the star-meteo file an input argument so that the test can be run
with different files.
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/test_stardis_smeteo_ground_temperature.sh b/src/test_stardis_smeteo_ground_temperature.sh
@@ -17,6 +17,13 @@
set -e
+if [ $# -lt 1 ]; then
+ >&2 printf 'usage: %s smeteo-file\n' "${0##*/}"
+ exit 1
+fi
+
+smeteo="$1"
+
########################################################################
# Ground geometry
########################################################################
@@ -97,7 +104,7 @@ ground()
stardis_input()
{
# The plugin
- echo 'PROGRAM Meteo libstardis_smeteo.so samples/star-meteo_input.txt'
+ printf 'PROGRAM Meteo libstardis_smeteo.so %s\n' "${smeteo}"
echo ''
# Media