1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/minimal-examples/http-server
Andy Green 8829c2f365 selftests
This converts several of the selftests to return a status in their exit code
about whether they 'worked'.

A small bash script framework is added, with a selftest.sh in the mininmal
example dirs that support it, and a ./minimal-examples/selftests.sh script
that can be run from the build dir with no args that discovers and runs all
the selftest.sh scripts underneath.

That is also integrated into travis and the enabled tests must pass now for
travis to pass.  Travis does not have a modern libuv so it can't run a
couple of tests which are nulled out if it sees it's running in travis env.
2018-04-19 16:16:48 +08:00
..
minimal-http-server minimal: add switches and exit results 2018-04-19 16:16:48 +08:00
minimal-http-server-dynamic minimal: add switches and exit results 2018-04-19 16:16:48 +08:00
minimal-http-server-form-get minimal: add switches and exit results 2018-04-19 16:16:48 +08:00
minimal-http-server-form-post minimal: add switches and exit results 2018-04-19 16:16:48 +08:00
minimal-http-server-form-post-file minimal: add switches and exit results 2018-04-19 16:16:48 +08:00
minimal-http-server-libuv selftests 2018-04-19 16:16:48 +08:00
minimal-http-server-libuv-foreign minimal: add switches and exit results 2018-04-19 16:16:48 +08:00
minimal-http-server-multivhost minimal: add switches and exit results 2018-04-19 16:16:48 +08:00
minimal-http-server-smp minimal: add switches and exit results 2018-04-19 16:16:48 +08:00
minimal-http-server-tls minimal: add switches and exit results 2018-04-19 16:16:48 +08:00
README.md minimal-http-server-libuv-foreign 2018-04-06 10:38:03 +08:00

Example Demonstrates
minimal-http-server-dynamic Serves both static and dynamically generated http content
minimal-http-server-form-get Process a GET form
minimal-http-server-form-post-file Process a multipart POST form with file transfer
minimal-http-server-form-post Process a POST form (no file transfer)
minimal-http-server-libuv-foreign Same as minimal-http-server but lws uses a foreign libuv event loop
minimal-http-server-libuv Same as minimal-http-server but lws uses its own libuv event loop
minimal-http-server-multivhost Same as minimal-http-server but three different vhosts
minimal-http-server-smp Multiple service threads
minimal-http-server-tls Serves a directory over http/1 or http/2 with TLS (SSL), custom 404 handler
minimal-http-server Serves a directory over http/1, custom 404 handler