Skip to content

Commit

Permalink
Clean test, add to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Goldhaber committed Feb 19, 2025
1 parent ac67b47 commit cf6f367
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/capgen_unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y build-essential ${{matrix.fortran-compiler}} cmake python3 git libxml2-utils
- name: Run unit tests
run: cd test && ./run_fortran_tests.sh

- name: Run Fortran to metadata test
run: cd test && ./test_fortran_to_metadata.sh
8 changes: 4 additions & 4 deletions test/test_fortran_to_metadata.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#! /bin/bash

## Relevant directories and file paths
test_dir="$(dirname ${0})"
test_dir="$(cd $(dirname ${0}); pwd -P)"
script_dir="$(dirname ${test_dir})/scripts"
sample_files_dir="${test_dir}/unit_tests/sample_files"
f2m_script="${script_dir}/ccpp_fortran_to_metadata.py"
filename="test_fortran_to_metadata"
test_input="${test_dir}/${filename}.F90"
test_input="${sample_files_dir}/${filename}.F90"
tmp_dir="${test_dir}/unit_tests/tmp"
sample_files="${test_dir}/unit_tests/sample_files"
sample_meta="${sample_files}/check_fortran_to_metadata.meta"
sample_meta="${sample_files_dir}/check_fortran_to_metadata.meta"

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

0 comments on commit cf6f367

Please sign in to comment.