Skip to content

Latest commit

 

History

History
38 lines (35 loc) · 1.31 KB

README.md

File metadata and controls

38 lines (35 loc) · 1.31 KB

beryl

This is going to be a primitive DNS nameserver. The author started this pet project in order gain practical knowledge of how DNS works. The project is at the early stange of development: only a few classes and functions have been implemented and augmented with unit tests.

Developer Manual

Create and enter into the Ganvigar-based development environment:

host_promtp> git clone [email protected]:ktrushin/ganvigar.git
host_promtp> git clone [email protected]:ktrushin/beryl.git
host_prompt> cd beryl
host_prompt> ../ganvigar/devenv-launch ganvigar/dev.conf

Run the formatter and the linter:

container_prompt> git add <changed files>
container_prompt> git-clang-format
container_prompt> <examine_the_changes>
container_prompt> git add <files_formatted_with_clang_format>
container_prompt>
container_prompt> ./tools/clang-tidy.sh

Compile with GCC and run unit tests:

container_prompt> CXX='ccache g++' meson -Db_asneeded=false _build_gcc
container_prompt> ninja -v -C _build_gcc -j$(nproc)
container_prompt> ./_build_gcc/unit_tests/beryl

Compile with Clang and run unit tests:

container_prompt> CXX='ccache clang++' meson -Db_asneeded=false _build_clang
container_prompt> ninja -v -C _build_clang -j$(nproc)
container_prompt> ./_build_clang/unit_tests/beryl