From a4cd1c7e4ef453b2553183a61097a4e837137494 Mon Sep 17 00:00:00 2001 From: Daniel Peter Date: Thu, 14 Nov 2024 14:42:14 +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 a7e02b732..a832cd1ea 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 "**********************************************************";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 "*******************" + echo "**********************************************************";echo "**********************************************************" } my_kernel_test(){ # kernel value test - checks rho/kappa/mu kernel value outputs - echo "*********************";echo "*********************";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 "*********************" + echo "**********************************************************";echo "**********************************************************" } # test example diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 5681bbbab..79d951750 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -626,7 +626,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