bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_tftp-server/tftp-server_test.sh

Athmane Madjoudj 81d17c
#!/bin/sh
Athmane Madjoudj 81d17c
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 81d17c
Athmane Madjoudj 81d17c
t_Log "Running $0 - tftp-server get file test."
Athmane Madjoudj 81d17c
Athmane Madjoudj 81d17c
chmod 777 /var/lib/tftpboot
Athmane Madjoudj 81d17c
echo "t_functional_test" > /var/lib/tftpboot/tftp_test
Athmane Madjoudj 81d17c
tftp  127.0.0.1 -c get tftp_test
Athmane Madjoudj 81d17c
Athmane Madjoudj 81d17c
cat tftp_test | grep -q 't_functional_test' 
Athmane Madjoudj 81d17c
ret_val=$?
Athmane Madjoudj 81d17c
Athmane Madjoudj 81d17c
/bin/rm -f tftp_test
Athmane Madjoudj 81d17c
Athmane Madjoudj 81d17c
t_CheckExitStatus $ret_val