Skip to content

Commit

Permalink
start of adding cpp linter
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryMartin-NOAA committed Aug 9, 2023
1 parent f899e05 commit d6a15ae
Show file tree
Hide file tree
Showing 3 changed files with 6,478 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ install(FILES ${test_reference}

# test for python coding norms
add_test(NAME test_gdasapp_check_python_norms
COMMAND pycodestyle -v --config ./.pycodestyle ./ush ./scripts ./test
COMMAND pycodestyle -v --config ./.pycodestyle ./ush ./scripts ./test ./utils
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})

# test for ush/check_yaml_keys.py
Expand Down
5 changes: 4 additions & 1 deletion utils/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ list( APPEND utils_test_input
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testinput)
CREATE_SYMLINK( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${utils_test_input} )

# copy the cpp linter script
execute_process( COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/cpplint.py ${CMAKE_BINARY_DIR}/bin/${PROJECT_NAME}_cpplint.py)

# Test example IODA utility that computes the mean of a variable
ecbuild_add_test( TARGET test_gdasapp_util_ioda_example
COMMAND ${CMAKE_BINARY_DIR}/bin/gdas_meanioda.x
ARGS "testinput/gdas_meanioda.yaml"
LIBS gdas-utils)
LIBS gdas-utils)
Loading

0 comments on commit d6a15ae

Please sign in to comment.