1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/test-apps
Andy Green 5b74d7108b gcov: add in cmake and adapt defaults
1) Introduce LWS_WITH_GCOV to build with gcc / clang coverage instrumentation.

$ cd build
$ make clean && rm -f `find . -name "*.gcno" -o -name "*.gcda"` && make -j16 && sudo make install && sudo /usr/local/bin/libwebsockets-test-server -s
...
$ gcov `find . -name *.c.gcno | grep -v test-apps` -b | sed "/\.h.\$/,/^$/d"

The above are available in two helper scripts

 - scripts/build-gcov.sh
 - scripts/gcov.sh

2)

CMake defaults changed:

 - LWS_WITH_ZIP_FOPS: OFF
 - LWS_WITH_RANGES: OFF
 - LWS_WITHOUT_EXTENSIONS: ON
 - LWS_WITH_ZLIB: OFF

New CMake controls that default-OFF:

 - LWS_WITH_GENHASH
 - LWS_WITH_GENRSA

these are implied by LWS_WITH_JWS (which is implied by LWS_WITH_ACME)

3) rename ./lib/tls/XXX/server.c and client.c to XXX-server.c / XXX-client.c.

This is because gcov dumps its results using the .c filename part only,
the copies overwrite each other if there are different .c files in the tree
with the same filename part.

4) Add onetime test-client mode and test to ./test-apps/attack.sh

5) Add gcov howto in READMEs/README.build.md using attack.sh
2017-12-01 11:37:35 +08:00
..
android CMake: convert all LWS_USE_... to LWS_WITH_... 2017-10-16 17:13:48 +08:00
private clean up top level of project 2017-09-27 08:24:05 +08:00
.gitignore clean up top level of project 2017-09-27 08:24:05 +08:00
attack.sh gcov: add in cmake and adapt defaults 2017-12-01 11:37:35 +08:00
candide.zip clean up top level of project 2017-09-27 08:24:05 +08:00
favicon.ico clean up top level of project 2017-09-27 08:24:05 +08:00
fuzxy.c build: enable signed vs unsigned warnings on gcc 2017-10-25 07:17:29 +08:00
http2.png http2: make usable 2017-10-16 17:13:49 +08:00
leaf.jpg clean up top level of project 2017-09-27 08:24:05 +08:00
libwebsockets-test-server.service clean up top level of project 2017-09-27 08:24:05 +08:00
libwebsockets.org-logo.png clean up top level of project 2017-09-27 08:24:05 +08:00
lws-cgi-test.sh http2: make usable 2017-10-16 17:13:49 +08:00
lws-common.js http2: make usable 2017-10-16 17:13:49 +08:00
lws-ssh-test-keys Plugins: add ssh-base ssh server plugin 2017-10-16 16:59:57 +08:00
lws-ssh-test-keys.pub Plugins: add ssh-base ssh server plugin 2017-10-16 16:59:57 +08:00
test-client.c gcov: add in cmake and adapt defaults 2017-12-01 11:37:35 +08:00
test-echo.c build: enable signed vs unsigned warnings on gcc 2017-10-25 07:17:29 +08:00
test-fraggle.c appveyor: Enable 64-bit build with OpenSSL and HTTP2 2017-11-26 19:16:17 +08:00
test-lejp.c lejp: add test app to parse stdin 2017-10-26 18:55:12 +08:00
test-ping.c build: enable signed vs unsigned warnings on gcc 2017-10-25 07:17:29 +08:00
test-server-dumb-increment.c clean up top level of project 2017-09-27 08:24:05 +08:00
test-server-http.c appveyor: Enable 64-bit build with OpenSSL and HTTP2 2017-11-26 19:16:17 +08:00
test-server-libev.c clean up top level of project 2017-09-27 08:24:05 +08:00
test-server-libevent.c clean up top level of project 2017-09-27 08:24:05 +08:00
test-server-libuv.c cancel_service: change to event-loop agnostic implementation 2017-11-26 19:16:17 +08:00
test-server-pthreads.c clean up top level of project 2017-09-27 08:24:05 +08:00
test-server-v2.0.c tls: split out common, openssl and mbedtls code 2017-10-25 07:17:29 +08:00
test-server.c cancel_service: change to event-loop agnostic implementation 2017-11-26 19:16:17 +08:00
test-server.h mingw: fixes 2017-12-01 11:37:33 +08:00
test-sshd.c build: enable signed vs unsigned warnings on gcc 2017-10-25 07:17:29 +08:00
test.html http2: make usable 2017-10-16 17:13:49 +08:00