node replicated kernel
1.0.0
The Node Replicated Kernel is an (experimental) research OS kernel for x86-64 (amd64) machines written in rust. You can read more about it here.
git clone <repo-url> nrkcd nrksed -i'' -e 's/[email protected]:/https://github.com//' .gitmodulesgit submodule update --initRun bash setup.sh, this will install required dependencies on Linux to build and run nrk.
cd kernelpython3 ./run.pyIf you just want to compile the code you can also execute run.py with the
--norun flag.
To run the unit tests of the kernel:
cd kernelRUST_BACKTRACE=1 RUST_TEST_THREADS=1 cargo test --bin nrkTo run the integration tests of the kernel:
cd kernelRUST_TEST_THREADS=1 cargo test --features smoke --test integration-testIf you would like to run a specific integration test you can pass it with --:
RUST_TEST_THREADS=1 cargo test --test integration-test -- --nocapture userspace_smokeNote: Parallel testing is not possible at the moment due to reliance on build flags for testing.
Update latest master:
git checkout mastergit pullgit submodule update --initCreate a new feature branch:
git checkout -b <BRANCH-NAME>Make sure that the code compiles without warnings, is properly formatted and passes tests:
cd kernelbash commitable.shCommit changes and push
git add <CHANGED-FILES>git commitgit push -u origin <BRANCH-NAME>