message: mstarch: finishing individual CMakee UT builds
diff: #!/bin/bash
  -mkdir build-dir && cd build-dir
  +DIRNAME="$(dirname "${BASH_SOURCE}")"
  +
  +FPRIME_DIR=`pwd`
  +FPRIME_DEP="${FPRIME_DIR}/Ref"
  +
  +PREFIX="base-build"
  +${DIRNAME}/scripts/cmake-build.bash "${FPRIME_DEP}" "" "install"
  if (( $? != 0 ))
  then
  - echo "[ERROR] Failed to make 'build-dir'"
  + echo "[ERROR] Failed to build: ${PREFIX}"
  exit 1
  fi
  -# Run cmake for 'Ref'
  -cmake ../Ref && make -j32 && make install -j32
  +
  +PREFIX="all-uts"
  +DIR=$(mktemp -d)
  +BUILD_DIR="${DIR}" ${DIRNAME}/scripts/cmake-ut.bash "${FPRIME_DIR}" "check"
  if (( $? != 0 ))
  then
  - echo "[ERROR] Failed to run CMake and install for 'Ref'"
  + echo "[ERROR] Failed to run CMake and process UTs: ${PREFIX}"
  exit 2
  fi
  -# Run standard UTs via CMake
  -cd ..
  -mkdir build-dir-ut && cd build-dir-ut
  -cmake .. -DPLATFORM=ut/`uname` && make -j32 && make -j32 check
  +# Read the previous build and run each target individually
  +(
  + OWD="$(pwd)"
  + let RET=0
  + cd ${DIR}
  + TARGETS="$(make help | sed -n 's/\.\.\. \(.*_exe\)/\1/p')"
  + rm -r "${DIR}"
  + cd "${OWD}"
  + for target in ${TARGETS}
  + do
  + PREFIX="ut-${target}"
  + ${DIRNAME}/scripts/cmake-ut.bash "${FPRIME_DIR}" "${target}"
  if (( $? != 0 ))
  then
  - echo "[ERROR] Failed to run CMake and process UTs for 'Ref'"
  - exit 2
  + let RET=5
  + echo "[ERROR] Failed to run individual UT for: ${target}"
  fi
  -
  -for target in `make help | grep "exe"`
  -do
  - (
  - mkdir ut_${target}
  - cd ut_${target}
  - cmake ../.. -DPLATFORM=ut/`uname` && make ${target} -j32 && make test ${target}
  - )
  done
  + exit ${RET}
  +) || exit $?
  -# Change to the CMake test directory and run CMake UTs
  -cd ..
  -cd cmake/test/src
  -# Note: custom target and validation are currently broken due to unimplemented features
  -pytest --ignore test_custom_target.py --ignore test_validation.py --ignore test_ut.py --ignore test_tools_validation.py
  +${DIRNAME}/scripts/cmake-cmaketest.bash
  if (( $? != 0 ))
  then
  echo "[ERROR] Failed to run CMake unit tests"
  