Generate and clean up empty file.

pull/399/head
Anthony Hu 2022-03-28 11:51:53 -04:00
parent 9dc6366178
commit bca1ac4ed2
2 changed files with 4 additions and 2 deletions

View File

View File

@ -89,13 +89,14 @@ else
fi fi
echo "Test of getting empty file" echo "Test of getting empty file"
PWD=`pwd` touch $PWD/scripts/empty
./examples/echoserver/echoserver -1 -R $ready_file & ./examples/echoserver/echoserver -1 -R $ready_file &
server_pid=$! server_pid=$!
create_port create_port
./examples/scpclient/wolfscp -u jill -P upthehill -p $port -S $PWD/scripts/empty:$PWD/empty ./examples/scpclient/wolfscp -u jill -P upthehill -p $port -S $PWD/scripts/empty:$PWD/empty
RESULT=$? RESULT=$?
remove_ready_file remove_ready_file
rm -f $PWD/scripts/empty
if test -e $PWD/empty ; then if test -e $PWD/empty ; then
rm $PWD/empty rm $PWD/empty
@ -106,13 +107,14 @@ else
fi fi
echo "Test of sending empty file" echo "Test of sending empty file"
PWD=`pwd` touch $PWD/scripts/empty
./examples/echoserver/echoserver -1 -R $ready_file & ./examples/echoserver/echoserver -1 -R $ready_file &
server_pid=$! server_pid=$!
create_port create_port
./examples/scpclient/wolfscp -u jill -P upthehill -p $port -L $PWD/scripts/empty:$PWD/empty ./examples/scpclient/wolfscp -u jill -P upthehill -p $port -L $PWD/scripts/empty:$PWD/empty
RESULT=$? RESULT=$?
remove_ready_file remove_ready_file
rm -f $PWD/scripts/empty
if test -e $PWD/empty ; then if test -e $PWD/empty ; then
rm $PWD/empty rm $PWD/empty