[PATCH uci 1/6] tests: add libFuzzer based fuzzing

Petr Štetiar ynezz at true.cz
Mon Oct 5 08:24:47 EDT 2020


Hauke Mehrtens <hauke at hauke-m.de> [2020-10-04 17:13:41]:

Hi,

> I get a linker error when using "-stdlib=libc++" on Debian stable with
> clang-7. When I remove it this links and works fine. I think this will
> cause a mix up of libstdc++ and libc++ which is not supported.

sorry about that, but this is kind of expected and I think, that it's not
worth the hassle to try making it backward compatible as it's code targeted
more towards CI.

I'm simply trying to use the same version locally as on CI[1], which is quite
easy with http://apt.llvm.org.

Next possible solution is usage of `native-testing` Docker container, the same
as used on GitLab CI[2]:

 cd $some_openwrt_project
 wget -q https://gitlab.com/ynezz/openwrt-ci/raw/master/Makefile -O Makefile.ci
 make ci-prepare -f Makefile.ci
 docker run --rm --tty --interactive --volume $(pwd):/home/build/openwrt \
	registry.gitlab.com/ynezz/openwrt-ci/native-testing:latest \
	make ci-native-scan-build -f Makefile.ci

As a last resort, just fork $some_openwrt_project on GitLab.com under your
account and simply push your branch to that project and the CI is going to
build and test for you automatically.

1. https://gitlab.com/ynezz/openwrt-ci/-/blob/master/docker/Dockerfile#L9
2. https://gitlab.com/ynezz/openwrt-ci/-/tree/master/#usage-example

-- ynezz



More information about the openwrt-devel mailing list