diff options
Diffstat (limited to 'test.sh')
| -rwxr-xr-x | test.sh | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -16,6 +16,8 @@ ATFTPD=/usr/sbin/atftpd TFTPC=/usr/bin/tftp +BUSYBOX=/bin/busybox + CLIENTDIR=$(mktemp -d) SERVERDIR=$(mktemp -d) @@ -70,6 +72,22 @@ rtftpc_rx() { $RTFTPC -g testfile 127.0.0.1:$PORT 1>/dev/null } +busybox_tftpc_tx() { + $BUSYBOX tftp -p -l testfile -r testfile 127.0.0.1 $PORT 1>/dev/null 2>&1 +} + +busybox_tftpc_rx() { + $BUSYBOX tftp -g -l testfile -r testfile 127.0.0.1 $PORT 1>/dev/null 2>&1 +} + +busybox_tftpc_blksize1428_tx() { + $BUSYBOX tftp -p -l testfile -r testfile -b 1428 127.0.0.1 $PORT 1>/dev/null 2>&1 +} + +busybox_tftpc_blksize1428_rx() { + $BUSYBOX tftp -g -l testfile -r testfile -b 1428 127.0.0.1 $PORT 1>/dev/null 2>&1 +} + atftpd_cleanup() { killall -q -9 $ATFTPD 2>/dev/null || true } @@ -124,4 +142,8 @@ fi if [ -x $TFTPC ]; then test_transfer tftpc rtftpd fi +if [ -x $BUSYBOX ]; then + test_transfer busybox_tftpc rtftpd + test_transfer busybox_tftpc_blksize1428 rtftpd +fi |
