Skip to content

Getting started with implementing unit testing for Redox

Jeremy Soller requested to merge stratact:orbital into orbital

Created by: stratact

Work-In-Progress/Do Not Merge

This is an attempt to add support for unit testing in Redox by adding make test which will allow the user to run a series of #[test]s to verify functionality and possibility of bugs.

Currently I have only the unit testing for GetSlice but more files with unit testing can be easily added

Here are the following that are preventing this PR from being mergeable, is the need of:

  • std::io::prelude::* (libredox)
  • std::sync::Once (libredox)
  • std::sync::StaticMutex (libredox)
  • Wrap-up cleaning the Makefile

And possible other dependencies of dependencies to make the libtest crate happy.

More work still needs to be done for this to be useful.

Merge request reports