Skip to content

Commit

Permalink
New tools/run_tidy.sh
Browse files Browse the repository at this point in the history
Run clang-tidy on SOILWAT2 code base (but not (yet?) on tests) for different targets:
* txt-based and nc-based SOILWAT2
* SOILWAT2 library for STEPWAT2
* SOILWAT2 library for rSOILWAT2
  • Loading branch information
dschlaep committed Jul 25, 2024
1 parent caaf677 commit 52bff62
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tools/run_tidy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash


#-------------------------------------------------------------------------------
# Check text-based SOILWAT2
make CPPFLAGS='-DSWDEBUG' tidy-bin


#-------------------------------------------------------------------------------
# Check nc-based SOILWAT2
make CPPFLAGS='-DSWNETCDF -DSWUDUNITS -DSWDEBUG' tidy-bin


#-------------------------------------------------------------------------------
# Check SOILWAT2 library for rSOILWAT2
make CPPFLAGS='-DRSOILWAT' CFLAGS='-Iexternal/Rmock' tidy-bin


#-------------------------------------------------------------------------------
# Check SOILWAT2 library for STEPWAT2
make CPPFLAGS='-DSTEPWAT' tidy-bin


#-------------------------------------------------------------------------------

0 comments on commit 52bff62

Please sign in to comment.