You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_tftp-server/10-tftp-server_get-test.sh

22 lines
410 B

#!/bin/sh
# Author: Athmane Madjoudj <athmanem@gmail.com>
t_Log "Running $0 - tftp-server get file test."
if [ "$centos_ver" -gt "5" ] ; then
TFTP_DIR=/var/lib/tftpboot
else
TFTP_DIR=/tftpboot
fi
chmod 777 $TFTP_DIR
echo "t_functional_test" > $TFTP_DIR/tftp_test
tftp 127.0.0.1 -c get tftp_test
cat tftp_test | grep -q 't_functional_test'
ret_val=$?
/bin/rm -f tftp_test
t_CheckExitStatus $ret_val