1 Star 0 Fork 0

Jesse.Ding/gensio

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
This directory holds tests for gensio.  Note that there are also
extensive tests in ser2net.  These tests are more basic and
functional.

These tests require the linux serial simulation module in
linux-serialsim in this package.  You must load that module and the
user running the test must be able to access the serial ports
(generally you must be in the dialout group).

Fuzz testing is also available for some of the filter gensios, see the
makefile for details on what is available.  These tests work by
running a standard scenario and saving the data written to the
accepting gensio, then using that as input for the afl fuzz tester.
There's quite a bit of setup involved, but the afl program will tell
you what is wrong and how to fix it.

To compile for fuzzing, you have to configure it to use the afl
compiler, and you have to use static binaries.  To do this, make a
separate build directory in the mai directory, then cd into it and
run:

  ../configure --disable-shared CC=afl-gcc

Then "make".  After that, in the tests directory, you can run the
individual fuzzers for the filters.  See Makefile.am for details on
them.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bluewind/gensio.git
git@gitee.com:bluewind/gensio.git
bluewind
gensio
gensio
master

搜索帮助