Skip to content

Commit

Permalink
lestarch: reverting enable UTs to OFF and a deprecation warning (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch committed Jun 8, 2021
1 parent ca64fc8 commit 5ff62bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ci/tests/20-fputil.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ do
warn_and_cont "RPI tools not installed, refusing to test."
continue
fi
# Check not RPI and Ref deployment to enable FRAMEWORK UTS
if [[ "${deployment}" != */RPI ]] && [[ "${deployment}" != */Ref ]]
# Check if RPI or Ref deployment to disable FRAMEWORK UTS
if [[ "${deployment}" == */RPI ]] || [[ "${deployment}" == */Ref ]]
then
export CMAKE_EXTRA_SETTINGS="${CMAKE_EXTRA_SETTINGS} -DFPRIME_ENABLE_FRAMEWORK_UTS=ON"
export CMAKE_EXTRA_SETTINGS="${CMAKE_EXTRA_SETTINGS} -DFPRIME_ENABLE_FRAMEWORK_UTS=OFF"
fi
echo -e "${BLUE}Testing ${deployment} against fprime-util targets: ${FPUTIL_TARGETS[@]}${NOCOLOR}"
export CHECK_TARGET_PLATFORM="native"
Expand Down
14 changes: 10 additions & 4 deletions cmake/Options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,15 @@ option(CMAKE_DEBUG_OUTPUT "Generate F prime's debug output while running CMake"
# does not affect project specified UTs.
#
# **Values:**
# - ON: adds framework UT targets to the total list of targets
# - OFF: (default) do not add framework UTs to the target list
# - ON: (default) adds framework UT targets to the total list of targets
# - OFF: do not add framework UTs to the target list
#
# e.g. `-DFPRIME_ENABLE_FRAMEWORK_UTS=ON`
# e.g. `-DFPRIME_ENABLE_FRAMEWORK_UTS=OFF`
####
option(FPRIME_ENABLE_FRAMEWORK_UTS "Enable framework UT generation" OFF)
option(FPRIME_ENABLE_FRAMEWORK_UTS "Enable framework UT generation" ON)
if (NOT FPRIME_ENABLE_FRAMEWORK_UTS)
message(WARNING "-DFPRIME_ENABLE_FRAMEWORK_UTS=OFF will be deprecated in a future release")
endif()

####
# `FPRIME_ENABLE_AUTOCODER_UTS:`
Expand All @@ -86,6 +89,9 @@ option(FPRIME_ENABLE_FRAMEWORK_UTS "Enable framework UT generation" OFF)
# e.g. `-DFPRIME_ENABLE_AUTOCODER_UTS=OFF`
####
option(FPRIME_ENABLE_AUTOCODER_UTS "Enable autocoder UT generation" ON)
if (NOT FPRIME_ENABLE_AUTOCODER_UTS)
message(WARNING "-DFPRIME_ENABLE_AUTOCODER_UTS=OFF will be deprecated in a future release")
endif()

####
# `SKIP_TOOLS_CHECK:`
Expand Down

0 comments on commit 5ff62bd

Please sign in to comment.