File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ Options:
6969 --with-fio <FIO> Use given FIO path
7070 --without-fio Build without FIO
7171 --with-fio-dst <PATH> FIO install destination
72+ --with-unit-tests Enables the unit tests
7273 --log <no|tee*|silent> Output logging options
7374 --no-log Same as "--log no"
7475 -n, --dry-run Dry run
@@ -247,6 +248,11 @@ function detect_fio() {
247248 # fi
248249}
249250
251+ function rm_configure_arg() {
252+ arg=" $1 "
253+ CONFIGURE_ARGS=($( printf " %s\n" " ${CONFIGURE_ARGS[@]} " | grep -v " ^$arg $" ) )
254+ }
255+
250256function cmd_configure() {
251257 #
252258 # Making configure options.
489495 msg_info " With FIO install destination: $WITH_FIO_DST "
490496 shift
491497 ;;
498+ " --with-unit-tests" )
499+ rm_configure_arg " --disable-unit-tests"
500+ msg_info " With unit-tests"
501+ ;;
492502 " --log" )
493503 LOG_MODE=$1
494504 LOG_MODE_EXPLICIT=" yes"
498508 LOG_MODE=" no"
499509 LOG_MODE_EXPLICIT=" yes"
500510 ;;
501- " -n" | " --dry-run" )
511+ " -n" | " -d " | " - -dry-run" )
502512 DRY_RUN=" yes"
503513 msg_info " Dry run is enabled"
504514 ;;
You can’t perform that action at this time.
0 commit comments