robsd-exec: timeout 3600s + . /usr/local/libexec/robsd/util-regress.sh + config_load + << "EOF" + _err=0 + _env=REGRESS_FAIL_EARLY=no + config_value regress-libexec/ftpd-env + 2> /dev/null + _env=REGRESS_FAIL_EARLY=no GOCACHE=/tmp + _make=make -C /home/src/regress/libexec/ftpd REGRESS_FAIL_EARLY=no GOCACHE=/tmp + config_value regress-libexec/ftpd-targets + regress_root libexec/ftpd + export SUDO + unpriv -c staff build exec make -C /home/src/regress/libexec/ftpd REGRESS_FAIL_EARLY=no GOCACHE=/tmp regress ==== run-ftpd-get ==== doas -n pkill tcpserver || true doas -n pkill ftpd || true nc 127.0.0.1 21 >/dev/null 2>&1 || true # start ftpd doas -n /usr/local/bin/tcpserver 127.0.0.1 21 /usr/libexec/ftpd -A & timeout=$(($(date +%s) + 5)); while fstat -p $! | ! grep -q 'tcp .* 127.0.0.1:21$'; do test $(date +%s) -lt $timeout || exit 1; done # prepare test files doas -n dd if=/dev/random of="/home/ftp/ftpd.regress" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.020 secs (52128726 bytes/sec) doas -n chown ftp:ftp "/home/ftp/ftpd.regress" dd if=/dev/random of="ftpd.regress.local" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.020 secs (52075346 bytes/sec) ftp_proxy= ftp -a ftp://127.0.0.1/ftpd.regress cmp /home/ftp/ftpd.regress ftpd.regress rm ftpd.regress ==== run-ftpd-get-active ==== doas -n pkill tcpserver || true doas -n pkill ftpd || true nc 127.0.0.1 21 >/dev/null 2>&1 || true # start ftpd doas -n /usr/local/bin/tcpserver 127.0.0.1 21 /usr/libexec/ftpd -A & timeout=$(($(date +%s) + 5)); while fstat -p $! | ! grep -q 'tcp .* 127.0.0.1:21$'; do test $(date +%s) -lt $timeout || exit 1; done # prepare test files doas -n dd if=/dev/random of="/home/ftp/ftpd.regress" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.019 secs (54149564 bytes/sec) doas -n chown ftp:ftp "/home/ftp/ftpd.regress" dd if=/dev/random of="ftpd.regress.local" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.019 secs (53896387 bytes/sec) ftp_proxy= ftp -a -A ftp://127.0.0.1/ftpd.regress cmp /home/ftp/ftpd.regress ftpd.regress rm ftpd.regress ==== run-ftpd-put ==== doas -n pkill tcpserver || true doas -n pkill ftpd || true nc 127.0.0.1 21 >/dev/null 2>&1 || true # start ftpd doas -n /usr/local/bin/tcpserver 127.0.0.1 21 /usr/libexec/ftpd -A & timeout=$(($(date +%s) + 5)); while fstat -p $! | ! grep -q 'tcp .* 127.0.0.1:21$'; do test $(date +%s) -lt $timeout || exit 1; done # prepare test files doas -n dd if=/dev/random of="/home/ftp/ftpd.regress" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.018 secs (57282666 bytes/sec) doas -n chown ftp:ftp "/home/ftp/ftpd.regress" dd if=/dev/random of="ftpd.regress.local" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.018 secs (57178117 bytes/sec) echo put ftpd.regress.local | ftp -a 127.0.0.1 cmp /home/ftp/ftpd.regress.local ftpd.regress.local doas -n rm /home/ftp/ftpd.regress.local ==== run-ftpd-put-active ==== doas -n pkill tcpserver || true doas -n pkill ftpd || true nc 127.0.0.1 21 >/dev/null 2>&1 || true # start ftpd doas -n /usr/local/bin/tcpserver 127.0.0.1 21 /usr/libexec/ftpd -A & timeout=$(($(date +%s) + 5)); while fstat -p $! | ! grep -q 'tcp .* 127.0.0.1:21$'; do test $(date +%s) -lt $timeout || exit 1; done # prepare test files doas -n dd if=/dev/random of="/home/ftp/ftpd.regress" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.017 secs (59166233 bytes/sec) doas -n chown ftp:ftp "/home/ftp/ftpd.regress" dd if=/dev/random of="ftpd.regress.local" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.017 secs (58537321 bytes/sec) echo put ftpd.regress.local | ftp -a -A 127.0.0.1 cmp /home/ftp/ftpd.regress.local ftpd.regress.local doas -n rm /home/ftp/ftpd.regress.local ==== run-ftpd-ls ==== doas -n pkill tcpserver || true doas -n pkill ftpd || true nc 127.0.0.1 21 >/dev/null 2>&1 || true # start ftpd doas -n /usr/local/bin/tcpserver 127.0.0.1 21 /usr/libexec/ftpd -A & timeout=$(($(date +%s) + 5)); while fstat -p $! | ! grep -q 'tcp .* 127.0.0.1:21$'; do test $(date +%s) -lt $timeout || exit 1; done # prepare test files doas -n dd if=/dev/random of="/home/ftp/ftpd.regress" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.017 secs (59134791 bytes/sec) doas -n chown ftp:ftp "/home/ftp/ftpd.regress" dd if=/dev/random of="ftpd.regress.local" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.017 secs (59400281 bytes/sec) echo ls | ftp -a 127.0.0.1 | grep -q 'ftpd.regress' ==== run-ftpd-nlist ==== doas -n pkill tcpserver || true doas -n pkill ftpd || true nc 127.0.0.1 21 >/dev/null 2>&1 || true # start ftpd doas -n /usr/local/bin/tcpserver 127.0.0.1 21 /usr/libexec/ftpd -A & timeout=$(($(date +%s) + 5)); while fstat -p $! | ! grep -q 'tcp .* 127.0.0.1:21$'; do test $(date +%s) -lt $timeout || exit 1; done # prepare test files doas -n dd if=/dev/random of="/home/ftp/ftpd.regress" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.019 secs (53861651 bytes/sec) doas -n chown ftp:ftp "/home/ftp/ftpd.regress" dd if=/dev/random of="ftpd.regress.local" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.019 secs (53956705 bytes/sec) echo nlist | ftp -a 127.0.0.1 | grep -q 'ftpd.regress' ==== run-ftpd-delete ==== doas -n pkill tcpserver || true doas -n pkill ftpd || true nc 127.0.0.1 21 >/dev/null 2>&1 || true # start ftpd doas -n /usr/local/bin/tcpserver 127.0.0.1 21 /usr/libexec/ftpd -A & timeout=$(($(date +%s) + 5)); while fstat -p $! | ! grep -q 'tcp .* 127.0.0.1:21$'; do test $(date +%s) -lt $timeout || exit 1; done # prepare test files doas -n dd if=/dev/random of="/home/ftp/ftpd.regress" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.017 secs (58877876 bytes/sec) doas -n chown ftp:ftp "/home/ftp/ftpd.regress" dd if=/dev/random of="ftpd.regress.local" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.017 secs (59532946 bytes/sec) echo delete ftpd.regress | ftp -a 127.0.0.1 test ! -f /home/ftp/ftpd.regress ==== run-ftpd-mkdir ==== doas -n pkill tcpserver || true doas -n pkill ftpd || true nc 127.0.0.1 21 >/dev/null 2>&1 || true # start ftpd doas -n /usr/local/bin/tcpserver 127.0.0.1 21 /usr/libexec/ftpd -A & timeout=$(($(date +%s) + 5)); while fstat -p $! | ! grep -q 'tcp .* 127.0.0.1:21$'; do test $(date +%s) -lt $timeout || exit 1; done # prepare test files doas -n dd if=/dev/random of="/home/ftp/ftpd.regress" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.018 secs (56970118 bytes/sec) doas -n chown ftp:ftp "/home/ftp/ftpd.regress" dd if=/dev/random of="ftpd.regress.local" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.018 secs (57035491 bytes/sec) echo mkdir ftpd.regress.dir.create | ftp -a 127.0.0.1 test -d /home/ftp/ftpd.regress.dir.create doas -n rm -r /home/ftp/ftpd.regress.dir.create ==== run-ftpd-rename ==== doas -n pkill tcpserver || true doas -n pkill ftpd || true nc 127.0.0.1 21 >/dev/null 2>&1 || true # start ftpd doas -n /usr/local/bin/tcpserver 127.0.0.1 21 /usr/libexec/ftpd -A & timeout=$(($(date +%s) + 5)); while fstat -p $! | ! grep -q 'tcp .* 127.0.0.1:21$'; do test $(date +%s) -lt $timeout || exit 1; done # prepare test files doas -n dd if=/dev/random of="/home/ftp/ftpd.regress" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.017 secs (58713669 bytes/sec) doas -n chown ftp:ftp "/home/ftp/ftpd.regress" dd if=/dev/random of="ftpd.regress.local" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.017 secs (59451256 bytes/sec) echo rename ftpd.regress ftpd.regress.new | ftp -a 127.0.0.1 test ! -f /home/ftp/ftpd.regress test -f /home/ftp/ftpd.regress.new ==== run-ftpd-size ==== doas -n pkill tcpserver || true doas -n pkill ftpd || true nc 127.0.0.1 21 >/dev/null 2>&1 || true # start ftpd doas -n /usr/local/bin/tcpserver 127.0.0.1 21 /usr/libexec/ftpd -A & timeout=$(($(date +%s) + 5)); while fstat -p $! | ! grep -q 'tcp .* 127.0.0.1:21$'; do test $(date +%s) -lt $timeout || exit 1; done # prepare test files doas -n dd if=/dev/random of="/home/ftp/ftpd.regress" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.017 secs (59282530 bytes/sec) doas -n chown ftp:ftp "/home/ftp/ftpd.regress" dd if=/dev/random of="ftpd.regress.local" count=1 bs=1m 1+0 records in 1+0 records out 1048576 bytes transferred in 0.017 secs (59306081 bytes/sec) test $(echo "binary\nsize ftpd.regress" | ftp -a 127.0.0.1 | cut -f 2) -eq $(stat -f %z /home/ftp/ftpd.regress) ==== cleanup-ftpd ==== doas -n pkill tcpserver || true doas -n pkill ftpd || true doas -n rm -f /home/ftp/ftpd.regress