mirror of https://github.com/wolfSSL/wolfssh.git
Generate and clean up empty file.
parent
9dc6366178
commit
bca1ac4ed2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue