diff options
| author | Reiner Herrmann <reiner@reiner-h.de> | 2019-03-07 22:27:20 +0100 |
|---|---|---|
| committer | Reiner Herrmann <reiner@reiner-h.de> | 2019-03-07 22:27:20 +0100 |
| commit | 66ef7d94f59c91618acf2e757307385551a35846 (patch) | |
| tree | 7acd9a0a826ad21e4ed06467a928ad256111cbe1 /test.sh | |
| parent | 56969aa1e2b80fba625fae494c919bcbf35df3d4 (diff) | |
Test also against BusyBox TFTP client
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 |
