Skip to content

Commit 222dadf

Browse files
author
Hatim Chahout
committed
Added debugging lines. #66
1 parent 0edd516 commit 222dadf

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

tests/test_invalid_paths.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -e
44
echo "--- Test 5: Missing or Invalid File Paths ---"
55

66
source ./tests/run_test_setup.bash
7+
source ../run_proc.bash
78

89
setup_test_env
910

tests/test_missing_args.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -e
44
echo "--- Test 4: Missing arguments ---"
55

66
source ./tests/run_test_setup.bash
7+
source ../run_proc.bash
78

89
setup_test_env
910

tests/test_missing_deps.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -e
44
echo "--- Test 2: Missing Dependencies ---"
55

66
source ./tests/run_test_setup.bash
7+
source ../run_proc.bash
78

89
setup_test_env
910

tests/test_user_choices.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -e
44
echo "--- Test 3: User Choices from param.bash ---"
55

66
source ./tests/run_test_setup.bash
7+
source ../run_proc.bash
78

89
setup_test_env
910

tests/test_valid_run.bash

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@ set -e
33

44
echo "--- Test 1: A valid run ---"
55

6+
echo "Sourcing setup script..."
67
source ./tests/run_test_setup.bash
8+
echo "Sourcing run_proc script..."
9+
source ../run_proc.bash
710

11+
echo "Setting up test environment..."
812
setup_test_env
913

14+
echo "Changing to temporary directory..."
1015
cd "$TMP_DIR"
16+
echo "Running the process with valid parameters..."
1117
../run_proc.bash -B bathy.nc -C 1 mesh_mask.nc 2020 2020 1m RUNID_TEST > output.txt 2>&1
1218

1319
if ! grep -q "MOCK SBATCH: --output=.*mk_msks.out /.*/mk_msks.bash" output.txt; then
@@ -28,5 +34,6 @@ if ! grep -q "data processing is done for RUNID_TEST between 2020 and 2020" outp
2834
exit 1
2935
fi
3036

37+
echo "Cleaning up test environment..."
3138
cleanup_test_env
3239
echo "Test passed."

0 commit comments

Comments
 (0)