Skip to content

Commit

Permalink
add integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan7n committed Aug 29, 2023
1 parent 87df849 commit 6a2d148
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions cli/cli_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ checkFailed "Model3 association failed"
echo "\n"

##########################################################
echo "====================================="
echo "Running failing model association"
echo "====================================="
echo "======================================================"
echo "Running failing model association (This will NOT fail)"
echo "======================================================"
medperf mlcube associate -m $FAILING_MODEL_UID -b $BMK_UID -y
checkFailed "Failing model association failed"
##########################################################
Expand Down Expand Up @@ -309,9 +309,23 @@ checkFailed "run all outstanding models failed"
echo "\n"

##########################################################
echo "====================================="
echo "Run failing cube with ignore errors"
echo "====================================="
echo "======================================================================================"
echo "Run failing cube with ignore errors (This SHOULD fail since predictions folder exists)"
echo "======================================================================================"
medperf run -b $BMK_UID -d $DSET_A_UID -m $FAILING_MODEL_UID -y --ignore-model-errors
if [ "$?" -eq 0 ]; then
i_am_a_command_that_does_not_exist_and_hence_changes_the_last_exit_status_to_nonzero
fi
checkFailed "MLCube ran successfuly but should fail since predictions folder exists"
##########################################################

echo "\n"

##########################################################
echo "====================================================================="
echo "Run failing cube with ignore errors after deleting predictions folder"
echo "====================================================================="
rm -rf $MEDPERF_SUBSTORAGE/predictions/model-fail/$DSET_A_GENUID
medperf run -b $BMK_UID -d $DSET_A_UID -m $FAILING_MODEL_UID -y --ignore-model-errors
checkFailed "Failing mlcube run with ignore errors failed"
##########################################################
Expand Down

0 comments on commit 6a2d148

Please sign in to comment.