# Clone the Unit Test Requirements
TEST_REPO=git@github.com:rdkcentral/ut-core.git
# This function checks if we're not sitting on the latest revision.
function check_next_revision()
{
pushd ./ut-core 2&>/dev/null
# Set default UT_PROJECT_VERSION to next revision
if [ -v ${UT_PROJECT_VERSION} ]; then
UT_PROJECT_VERSION=$(git tag | grep ${UT_PROJECT_MAJOR_VERSION} | sort -r | head -n1)
UT_NEXT_VERSION=$(git tag | sort -r | head -n1)
echo -e ${YELLOW}ut-core version selected:[${UT_PROJECT_VERSION}]${NC}
if [ "${UT_NEXT_VERSION}" != "${UT_PROJECT_VERSION}" ]; then
echo -e ${RED}--- New Version of ut-core released [${UT_NEXT_VERSION}] consider upgrading ---${NC}
fi
fi
popd 2&>/dev/null
}
This sort of thing needs to be removed
# Set default UT_PROJECT_VERSION to master
if [ -z "${UT_PROJECT_VERSION}" ]; then
UT_PROJECT_VERSION=master
fi
Add support for checking the latest version and warning if not on it to be added to the clone script
https://github.com/rdkcentral/hal-doxygen/blob/develop/template/docs/generate_docs.sh
Something akin to the same one for ut-core
This sort of thing needs to be removed