C:POSIX 线程库测试套件

发布于 2024-07-13 07:39:46 字数 119 浏览 4 评论 0原文

我正在开发一个实现用户级线程的线程库(我有类似 pthread_setscope 的东西),并且我正在寻找一组测试以避免为我实现的每个函数(互斥体、条件等)编写一个测试...... )

有人知道类似的事情吗?

I'm working on a thread library which implement user level threads (i have something like pthread_setscope which works) and I'm looking for some set of tests to avoid writing one for every function I implement (mutexes, conditions, etc ...)

Does anyone know something like that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

緦唸λ蓇 2024-07-20 07:39:46

这是 OpenGroup POSIX 线程测试套件

测试套件可以在以下模式下运行:

  • POSIX 1003.1-1996 模式,仅涵盖 Pthreads。
  • UNIX 98 模式,涵盖 Pthreads 和 XSH5 扩展
  • POSIX 1003.1-2003 模式
  • UNIX 03 模式

这使得测试套件可以在线程实现的开发过程中轻松使用,例如最初您可能只想运行 POSIX 1003.1-1996 子集。

断言计数如下:

  • POSIX 96 模式:PTHR.hdr 286、PTHR.os 445
  • UNIX98 模式:PTHR.hdr 365、PTHR.os 563

还有 IEEE POSIX 认证测试套件

最后,您可以查看开放 POSIX 测试套件

Here is the OpenGroup POSIX Threads Test Suite :

The test suite can be run in the following modes :

  • POSIX 1003.1-1996 mode, covering Pthreads only.
  • UNIX 98 mode, covering Pthreads and the XSH5 extensions
  • POSIX 1003.1-2003 mode
  • UNIX 03 mode

This allows the test suite to easily be used during development of your threads implementation, for example initially you might only want to run the POSIX 1003.1-1996 subset.

The assertion counts are as follows:

  • POSIX 96 MODE: PTHR.hdr 286, PTHR.os 445
  • UNIX98 MODE: PTHR.hdr 365, PTHR.os 563

There is also the IEEE POSIX Certification Test Suites.

Finally you can have a look at the Open POSIX Test Suite.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文