Skip to content

Commit

Permalink
Attached Integration test to Ref test
Browse files Browse the repository at this point in the history
  • Loading branch information
r9-pena committed Jul 22, 2021
1 parent a31c10b commit 158ecab
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 17 deletions.
2 changes: 0 additions & 2 deletions .github/actions/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ USER fprime

# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]


2 changes: 1 addition & 1 deletion ci/master.bash
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export TEST_TYPE="${TEST}"

#### NEEDED ENVIRONMENT ####
export FPRIME_DIR="$(cd ${SCRIPT_DIR}/..; pwd)"
export LOG_DIR="${FPRIME_DIR}/ci-logs-$(date +"%Y-%m-%dT%H%M%S")"
export LOG_DIR="${FPRIME_DIR}/ci-${TEST}-logs-$(date +"%Y-%m-%dT%H%M%S")"
mkdir -p "${LOG_DIR}"

####
Expand Down
5 changes: 4 additions & 1 deletion ci/tests/Ref.bash
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ do
fputil_action "${FPUTIL_DEPLOYS}" "${target}"
END="$(date +%s)"
echo "$[${END} - ${START}]"
done
done

echo -e "${BLUE}Testing ${INT_DEPLOYS} against integration tests${NOCOLOR}"
integration_test "${INT_DEPLOYS}"
23 changes: 10 additions & 13 deletions ci/tests/fputil.bash
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ function fputil_action {
PLATFORM=""

# Generate is only needed when it isn't being tested
if [[ "${TARGET}" != "generate" ]] && [[ "${TEST_TYPE}" != "20-fputil" ]]
then
echo "[INFO] Generating build cache before ${DEPLOYMENT//\//_} '${TARGET}' execution"
fprime-util "generate" ${PLATFORM} ${CMAKE_EXTRA_SETTINGS} > "${LOG_DIR}/${DEPLOYMENT//\//_}_pregen.out.log" 2> "${LOG_DIR}/${DEPLOYMENT//\//_}_pregen.err.log" \
|| fail_and_stop "Failed to generate before ${DEPLOYMENT//\//_} '${TARGET}' execution"
fi
# if [[ "${TARGET}" != "generate" ]] && [[ "${TEST_TYPE}" != "20-fputil" ]]
# then
# echo "[INFO] Generating build cache before ${DEPLOYMENT//\//_} '${TARGET}' execution"
# fprime-util "generate" ${PLATFORM} ${CMAKE_EXTRA_SETTINGS} > "${LOG_DIR}/${DEPLOYMENT//\//_}_pregen.out.log" 2> "${LOG_DIR}/${DEPLOYMENT//\//_}_pregen.err.log" \
# || fail_and_stop "Failed to generate before ${DEPLOYMENT//\//_} '${TARGET}' execution"
# fi
cd "${WORKDIR}"
if [[ "${TARGET}" != "generate" ]] && [[ "${TARGET}" != "generate --ut" ]]
then
Expand All @@ -57,12 +57,9 @@ function integration_test {
export WORKDIR="${1}"
export ROOTDIR="${WORKDIR}/build-artifacts"

echo "${WORKDIR}"
echo "${ROOTDIR}"
if [[ "${TEST_TYPE}" != "30-fputil" ]]
then
fputil_action "${WORKDIR}" "build" || fail_and_stop "Failed to build before integration test"
fi
# fprime-util generate
# fprime-util "${WORKDIR}" "build" || fail_and_stop "Failed to build before integration test"

(
mkdir -p "${LOG_DIR}/gds-logs"
# Start the GDS layer and give it time to run
Expand All @@ -77,7 +74,7 @@ function integration_test {
--leak-check=full \
--show-leak-kinds=all \
--track-origins=yes \
--log-file=${LOG_DIR}/gds-logs/valgrind.log \
# --log-file=${LOG_DIR}/gds-logs/valgrind.log \
${ROOTDIR}/*/bin/Ref -a 127.0.0.1 -p 50000 1>${LOG_DIR}/gds-logs/Ref.stdout.log 2>${LOG_DIR}/gds-logs/Ref.stderr.log &
VALGRIND_PID=$!

Expand Down

0 comments on commit 158ecab

Please sign in to comment.