1

我想测试 BSP API 实现的正确性和完整性。测试集必须针对 ARM sam7x 进行交叉编译。

4

2 回答 2

1

我不知道您是否对此感兴趣,但这里有两个指向 NYC BSD Conference 2008 演示文稿的链接:Detecting TCP regressions with tcpdiff (FreeBSD) 和An Introduction to the Automated Testing Framework (ATF) for NetBSD。两者都很好。

于 2009-06-19T13:44:49.187 回答
0

有一个用于 TCP 和 UDP 性能测量的公共领域基准测试工具

它有一些可用的控制。您也许可以将其用于测试。
请记住,这不是测试 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
于 2009-06-30T19:01:28.687 回答