Skip to content

Commit

Permalink
Fix CMakeLists.txt so that multiple --verbose options work.
Browse files Browse the repository at this point in the history
Modify run_test so that verbose is set to level 2 by default.
Tested with verbose level 0, 1, and 2.
  • Loading branch information
Steve Goldhaber committed Nov 21, 2024
1 parent c339fdf commit fab0758
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/ddthost_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ list(APPEND CAPGEN_CMD "--host-name")
list(APPEND CAPGEN_CMD "test_host")
list(APPEND CAPGEN_CMD "--output-root")
list(APPEND CAPGEN_CMD "${CCPP_CAP_FILES}")
string(REPEAT "--verbose" ${VERBOSITY} VERBOSE_REPEATED)
string(REPEAT "--verbose;" ${VERBOSITY} VERBOSE_REPEATED)
list(APPEND CAPGEN_CMD ${VERBOSE_REPEATED})
list(APPEND CAPGEN_CMD "--debug")
string(REPLACE ";" " " CAPGEN_STRING "${CAPGEN_CMD}")
Expand Down
4 changes: 2 additions & 2 deletions test/ddthost_test/run_test
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ scriptdir="$( cd $( dirname $0 ); pwd -P )"
defdir="ddt_build"
build_dir="${currdir}/${defdir}"
cleanup="PASS" # Other supported options are ALWAYS and NEVER
verbosity=0
verbosity=2

##
## General syntax help function
Expand All @@ -26,7 +26,7 @@ help () {
echo "${hprefix} default is <current directory>/${defdir}"
echo "${hprefix} <opt>: Cleanup option is ALWAYS, NEVER, or PASS"
echo "${hprefix} default is PASS"
echo "${hprefix} verbosity: 0, 1, or 2"
echo "${hprefix} verbosity: 0, 1, or 2 (default=${verbosity})"
echo "${hprefix} default is 0"
exit $1
}
Expand Down

0 comments on commit fab0758

Please sign in to comment.