BSP API 구현의 정확성과 완성도를 테스트하고 싶습니다. 테스트 세트는 ARM sam7x에 대해 크로스 컴파일해야합니다.버클리 소켓 (BSD) API를 테스트하는 방법은 무엇입니까?
1
A
답변
1
이것이 어떤 관심 대상인지는 모르겠지만 NYC BSD Conference 2008 프리젠 테이션에 대한 링크는 두 개입니다 (Detecting TCP regressions with tcpdiff (FreeBSD) 및 An introduction to the Automated Testing Framework (ATF) for NetBSD). 둘 다 꽤 좋았습니다.
0
공개 도메인 Benchmarking tool for TCP and UDP performance measurement가 있습니다.
일부 컨트롤을 사용할 수 있습니다. 테스트 용으로 사용할 수 있습니다.
이것은 API를 테스트하는 것이 아니라 구현 성능이므로 이보다 더 많은 기능이 필요함을 기억하십시오.
PCATTCP 도구에는 프로그램 시작시 명령 줄에서 전달되는 매개 변수로 제어되는 몇 가지 옵션이 포함되어 있습니다. 사용 가능한 옵션을 보려면 "-h"옵션을 사용하여 PCATTCP 응용 프로그램을 실행하십시오. 여기에 당신이 볼 것 인 것이다 :
pcattcp -h
PCAUSA Test TCP Utility V2.01.01.08
Usage: pcattcp -t [-options] host [ < in ]
pcattcp -r [-options > out]
Common options:
-l ## length of bufs read from or written to network (default 8192)
-u use UDP instead of TCP
-p ## port number to send to or listen at (default 5001)
-s toggle sinkmode (enabled by default)
sinkmode enabled:
-t: source (transmit) fabricated pattern
-r: sink (discard) all received data
sinkmode disabled:
-t: reads data to be transmitted from stdin
-r: writes received data to stdout
-A align the start of buffers to this modulus (default 16384)
-O start buffers at this offset from the modulus (default 0)
-v verbose: print more statistics
-d set SO_DEBUG socket option
-b ## set socket buffer size (if supported)
-f X format for rate: k,K = kilo{bit,byte}; m,M = mega; g,G = giga
-c -t: send continuously
-r: accept multiple connections sequentially
-R concurrent TCP/UDP multithreaded receiver
.
Options specific to -t:
-n ## number of source bufs written to network (default 2048)
-D don't buffer TCP writes (sets TCP_NODELAY socket option)
-w ## milliseconds of delay before each write (default 0)
-L ## desired transmit data rate in bytes/second
Options specific to -r:
-B for -s, only output full blocks as specified by -l (for TAR)
-T "touch": access each byte as it's read
나는 비슷한 요구 사항을 가지고 있습니다. 당신은 일할 무언가를 얻을 수 있었습니까? – Ilya