Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed May 23, 2024
1 parent 0e11a14 commit 7d6fbcf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/scp.test
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,21 @@ else
exit 1
fi

echo "Test of sending a file that does not exist"
touch $PWD/scripts/empty
./examples/echoserver/echoserver -1 -R $ready_file &
server_pid=$!
create_port
./examples/scpclient/wolfscp -u jill -P upthehill -p $port -L $PWD/does-not-exist:$PWD/empty
RESULT=$?
remove_ready_file

if test $RESULT -eq 0; then
echo -e "\n\nshould fail out sending a file that does not exist"
do_cleanup
exit 1
fi

echo -e "\nALL Tests Passed"

exit 0
Expand Down

0 comments on commit 7d6fbcf

Please sign in to comment.