apt install build-essential cmake indent libcurl4-gnutls-dev lcovgit clone https://github.com/Snaipe/Mimick.git
mkdir Mimick/build
cd Mimick/build
cmake ..
sudo make installThis tool is required to submit coverage result to coveralls.io.
python -m pip install git+https://github.com/pylover/cpp-coveralls.gitgit clone https://github.com/pylover/http-parser.git
sudo make -C http-parser install
sudo ldconfig /usr/local/lib/make clean test
make clean coverSingle test file:
Use the filename without the prefix tests/test_ and *.c suffix.
for example, to run tests/test_logging.c execute:
make clean test UNIT=loggingmake clean cover-htmlOr
make clean cover-html-showto automatically open the browser and show the coverage result index html file.
Run make indent to uniform the code with GNU indent tool before commit.
Run:
make indentto reformat the entire project.
Prepend _ at the beginning of eavery static member.
static http_parser_settings _hpconf = {
...
};
static void
_client_connected(struct evs *evs, struct peer *c) {
...
}More: [Linux coding style] (https://www.kernel.org/doc/html/v4.10/process/coding-style.html)
We value the participation of each individual and want all to have an enjoyable and fulfilling experience. Nobody knows everything, and nobody is expected to be perfect. Asking questions is how we learn.
- If you contribute to this project it must be because you want to not because you have to.
- You must accept that as a memeber of this opensource comunity you are responsible for the code you commit.
- Every member of this comunity must be respectfull of others, their positions, their skills, their commitments, and their efforts.
- Everyone must gracefully accept constructive criticism.
- Be Considerate: Everyone is around to either help or be helped. We’re all around to learn. All the work we do affects someone else and we need to consider this when we make any changes.
We don't care about your level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.