Skip to content

Commit

Permalink
Add Ctests for obsForge (#4)
Browse files Browse the repository at this point in the history
Add initial structure for Ctests
Tests added:
- coding norms
- satwnd_amv_goes
- sfcsno 

Tests data 
- Currently using full-resolution BUFR files (obsforge-0.0.0.tgz in
EMCRZDM)
- Working on reduced BUFR files (obsforge-0.0.1.tgz on EMCRZDM) for next
PR

[Issue #3 ](#3)

Two functions are implemented to define and generate tests for satellite
data and conventional data from dump, respectively
  • Loading branch information
emilyhcliu authored Jan 22, 2025
1 parent 80a577e commit 3bbb7ce
Show file tree
Hide file tree
Showing 27 changed files with 7,956 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .pycodestyle
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[pycodestyle]
count = False
ignore = E226,E401,E402,W503
max-line-length = 160
statistics = True
exclude = Experimental
20 changes: 19 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,23 @@ set( ENABLE_MPI ON CACHE BOOL "Compile with MPI" )
# Install utility scripts.
#add_subdirectory(ush)

# Include tools.
add_subdirectory(tools)

# Include testing.
#add_subdirectory(test)
add_subdirectory(test)

## Tests
ecbuild_add_test( TARGET ${PROJECT_NAME}_coding_norms
TYPE SCRIPT
COMMAND ${PROJECT_NAME}_py_lint.sh
ARGS ${CMAKE_CURRENT_SOURCE_DIR}/sorc/spoc/dump/mapping ${CMAKE_CURRENT_SOURCE_DIR}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin )
set_tests_properties( ${PROJECT_NAME}_coding_norms PROPERTIES TIMEOUT 90 )

## Package Config
ecbuild_install_project( NAME ${PROJECT_NAME} )

ecbuild_print_summary()


Loading

0 comments on commit 3bbb7ce

Please sign in to comment.