From 66ef7d94f59c91618acf2e757307385551a35846 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Thu, 7 Mar 2019 22:27:20 +0100 Subject: Test also against BusyBox TFTP client --- test.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/test.sh b/test.sh index bdb139d..b7155e8 100755 --- a/test.sh +++ b/test.sh @@ -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 -- cgit v1.2.3