From 09b3d43a23818d5cfa2777de0670cad70128bf42 Mon Sep 17 00:00:00 2001 From: Daniel Peter Date: Thu, 14 Nov 2024 15:18:51 +0100 Subject: [PATCH] updates test script --- .github/scripts/run_tests.sh | 8 ++++---- .github/workflows/CI.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/scripts/run_tests.sh b/.github/scripts/run_tests.sh index a832cd1ea..7e68c06a9 100755 --- a/.github/scripts/run_tests.sh +++ b/.github/scripts/run_tests.sh @@ -22,19 +22,19 @@ echo # bash function for checking seismogram output with reference solutions my_test(){ - echo "**********************************************************";echo "**********************************************************" + echo "######################################################################################################################" echo "testing seismograms" ln -s $WORKDIR/utils/scripts/compare_seismogram_correlations.py ./compare_seismogram_correlations.py REF_SEIS/ OUTPUT_FILES/ if [[ $? -ne 0 ]]; then exit 1; fi ./compare_seismogram_correlations.py REF_SEIS/ OUTPUT_FILES/ | grep min/max | cut -d \| -f 3 | awk '{print "correlation:",$1; if ($1 < 0.999 ){print $1,"failed"; exit 1;}else{ print $1,"good"; exit 0;}}' if [[ $? -ne 0 ]]; then exit 1; fi - echo "**********************************************************";echo "**********************************************************" + echo "######################################################################################################################" } my_kernel_test(){ # kernel value test - checks rho/kappa/mu kernel value outputs - echo "**********************************************************";echo "**********************************************************" + echo "######################################################################################################################" echo "testing kernel values" file_ref=REF_KERNEL/output_solver.txt file_out=output.log # captures the OUTPUT_FILES/output_solver.txt when running solver since IMAIN was set to standard out @@ -82,7 +82,7 @@ my_kernel_test(){ else echo "testing kernel values: all good" fi - echo "**********************************************************";echo "**********************************************************" + echo "######################################################################################################################" } # test example diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 83d9a2ba7..0de35de29 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -658,7 +658,7 @@ jobs: - name: Run build env: - TESTFLAGS: 'FLAGS_CHECK="-O3 -mcmodel=medium -std=f2008 -Wall -Wno-do-subscript -Wno-conversion -Wno-maybe-uninitialized"' + TESTFLAGS: 'FLAGS_CHECK=\"-O3 -mcmodel=medium -std=f2008 -Wall -Wno-do-subscript -Wno-conversion -Wno-maybe-uninitialized\"' run: ./.github/scripts/run_build.sh shell: bash