Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid double negatives in the run tests shell script to make things clearer #260

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading