Skip to content

Commit

Permalink
Avoid double negatives in the run tests shell script to make things c…
Browse files Browse the repository at this point in the history
…learer.
  • Loading branch information
jatkinson1000 committed Jan 28, 2025
1 parent 9dab4f4 commit 03c5475
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions run_test_suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ show_help() {

# Parse command line arguments
BUILD_DIR="src/build"
INTEGRATION_ONLY=false
UNIT_ONLY=false
RUN_INTEGRATION=true
RUN_UNIT=true
VERBOSE=false
HELP=false
for ARG in "$@"; do
Expand All @@ -37,11 +37,11 @@ for ARG in "$@"; do
BUILD_DIR="${ARG#*=}"
;;
--integration-only | -i)
INTEGRATION_ONLY=true
RUN_UNIT=false
shift
;;
--unit-only | -u)
UNIT_ONLY=true
RUN_INTEGRATION=false
shift
;;
--verbose | -V)
Expand Down Expand Up @@ -74,14 +74,14 @@ else
fi

# Run unit tests
if [ "${INTEGRATION_ONLY}" = false ]; then
if [ "${RUN_UNIT}" = true ]; then
cd "${BUILD_DIR}/test/unit"
ctest "${CTEST_ARGS}"
cd -
fi

# Run integration tests
if [ "${UNIT_ONLY}" = false ]; then
if [ "${RUN_INTEGRATION}" = true ]; then
EXAMPLES="1_SimpleNet 2_ResNet18 4_MultiIO 6_Autograd"
for EXAMPLE in ${EXAMPLES}; do
pip -q install -r examples/"${EXAMPLE}"/requirements.txt
Expand Down

0 comments on commit 03c5475

Please sign in to comment.