Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CTests for each observation type. #3

Open
emilyhcliu opened this issue Nov 26, 2024 · 1 comment
Open

Add CTests for each observation type. #3

emilyhcliu opened this issue Nov 26, 2024 · 1 comment
Assignees

Comments

@emilyhcliu
Copy link

emilyhcliu commented Nov 26, 2024

Add CTests similar to the one we have in bufr-query.

@emilyhcliu emilyhcliu self-assigned this Nov 26, 2024
@emilyhcliu
Copy link
Author

emilyhcliu commented Nov 30, 2024

Tests for satwind added:

Test project /scratch1/NCEPDEV/da/Emily.Liu/EMC-obsForge/obsForge_ctest/build/obsForge
  Test #1: test_obsforge_bufr2netcdf_satwnd_goes-16
  Test #2: test_obsforge_bufr2netcdf_satwnd_goes-17
  Test #3: test_obsforge_bufr2netcdf_satwnd_goes-18
  Test #4: test_obsforge_bufr2netcdf_satwnd_goes-16_mpi4
  Test #5: test_obsforge_bufr2netcdf_satwnd_goes-17_mpi8
  Test #6: test_obsforge_bufr2netcdf_satwnd_goes-18_mpi2

These ran successfully

Total Tests: 6
[Emily.Liu@hfe11 obsForge]$ ctest
Test project /scratch1/NCEPDEV/da/Emily.Liu/EMC-obsForge/obsForge_ctest/build/obsForge
    Start 1: test_obsforge_bufr2netcdf_satwnd_goes-16
1/6 Test #1: test_obsforge_bufr2netcdf_satwnd_goes-16 ........   Passed  136.92 sec
    Start 2: test_obsforge_bufr2netcdf_satwnd_goes-17
2/6 Test #2: test_obsforge_bufr2netcdf_satwnd_goes-17 ........   Passed  138.63 sec
    Start 3: test_obsforge_bufr2netcdf_satwnd_goes-18
3/6 Test #3: test_obsforge_bufr2netcdf_satwnd_goes-18 ........   Passed  135.88 sec
    Start 4: test_obsforge_bufr2netcdf_satwnd_goes-16_mpi4
4/6 Test #4: test_obsforge_bufr2netcdf_satwnd_goes-16_mpi4 ...   Passed   47.47 sec
    Start 5: test_obsforge_bufr2netcdf_satwnd_goes-17_mpi8
5/6 Test #5: test_obsforge_bufr2netcdf_satwnd_goes-17_mpi8 ...   Passed   32.18 sec
    Start 6: test_obsforge_bufr2netcdf_satwnd_goes-18_mpi2
6/6 Test #6: test_obsforge_bufr2netcdf_satwnd_goes-18_mpi2 ...   Passed   80.24 sec

100% tests passed, 0 tests failed out of 6

Label Time Summary:
mpi         = 159.89 sec*proc (3 tests)
obsforge    = 571.32 sec*proc (6 tests)
script      = 571.32 sec*proc (6 tests)

I loaded obsForge modules before I ran the tests.

module use ./modulefiles
module load obsforge/hera.intel

I got error messages at run time:

error while loading shared libraries: libbufr_query.so: cannot open shared object file: No such file or directory

I have to load the environment (shown below) manually so the test can be run successfully.

module purge
  
export obsforge_dir="/scratch1/NCEPDEV/da/Emily.Liu/EMC-obsForge/obsForge_ctest"

module use ${obsforge_dir}/modulefiles
module load obsforge/hera.intel

# ==============================
# Set bufr-query python library
# ==============================
export LD_LIBRARY_PATH="${obsforge_dir}/build/lib:${LD_LIBRARY_PATH}"
export PYTHONPATH="${PYTHONPATH}:${obsforge_dir}/build/lib/python3.10/site-packages"

# ========================
# Set ioda python library
# =========================
export PYTHONPATH="${PYTHONPATH}:${obsforge_dir}/build/lib/python3.10"

# ============
# Set wxflow
# ============
export PYTHONPATH="${PYTHONPATH}:${obsforge_dir}/sorc/wxflow/src"


**Issue:** How do I set the run-time environment for testing in obsForge, so I do not need to load the environment manually?  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant