Skip to content

Commit cf6f367

Browse files
author
Steve Goldhaber
committed
Clean test, add to workflow
1 parent ac67b47 commit cf6f367

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/capgen_unit_tests.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ jobs:
1818
run: sudo apt-get update && sudo apt-get install -y build-essential ${{matrix.fortran-compiler}} cmake python3 git libxml2-utils
1919
- name: Run unit tests
2020
run: cd test && ./run_fortran_tests.sh
21-
21+
- name: Run Fortran to metadata test
22+
run: cd test && ./test_fortran_to_metadata.sh

test/test_fortran_to_metadata.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#! /bin/bash
22

33
## Relevant directories and file paths
4-
test_dir="$(dirname ${0})"
4+
test_dir="$(cd $(dirname ${0}); pwd -P)"
55
script_dir="$(dirname ${test_dir})/scripts"
6+
sample_files_dir="${test_dir}/unit_tests/sample_files"
67
f2m_script="${script_dir}/ccpp_fortran_to_metadata.py"
78
filename="test_fortran_to_metadata"
8-
test_input="${test_dir}/${filename}.F90"
9+
test_input="${sample_files_dir}/${filename}.F90"
910
tmp_dir="${test_dir}/unit_tests/tmp"
10-
sample_files="${test_dir}/unit_tests/sample_files"
11-
sample_meta="${sample_files}/check_fortran_to_metadata.meta"
11+
sample_meta="${sample_files_dir}/check_fortran_to_metadata.meta"
1212

1313
# Run the script
1414
opts="--ddt-names serling_t"
File renamed without changes.

0 commit comments

Comments
 (0)