From c738794610a99ed6404d1b32497c961fa1ff3d54 Mon Sep 17 00:00:00 2001 From: Gaurav Dhingra Date: Wed, 26 Mar 2025 10:06:42 +0530 Subject: [PATCH] tests: time standalone tests --- tests/run_tests.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 5eaaabf..b6ee57a 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -20,6 +20,7 @@ $CC -I$CONDA_PREFIX/include -c ../src/mpi_wrapper.c $FC -c ../src/mpi_c_bindings.f90 $FC -c ../src/mpi.f90 +start_time=$(date +%s) for file in *.f90; do filename=$(basename "$file" .f90) echo -e "${YELLOW}Compiling $filename...${NC}" @@ -38,4 +39,10 @@ for file in *.f90; do done +end_time=$(date +%s) +elapsed_time=$((end_time - start_time)) +echo "" +echo -e "${YELLOW}... Running standalone tests took ${elapsed_time} seconds ...${NC}" +echo "" + git clean -dfx