R/unittests.R

Defines functions unittests

Documented in unittests

#' RAppArmor unit tests
#'
#' This function loads the 'testthat' package and runs a number of
#' unit tests for RAppArmor. Note that the tests assume that the main
#' process is unconfined. Try running it both as root and as a regular
#' user to cover both cases.
#'
#' Occasionally, one or two tests might fail due to random
#' fluctuations in available memory, cpu, etc. If this happens, try
#' running the tests again, possibly with less other programs running
#' in the background.
#'
#' @export
unittests <- function(){
	testthat::test_package("RAppArmor");
}

Try the RAppArmor package in your browser

Any scripts or data that you put into this service are public.

RAppArmor documentation built on Oct. 18, 2022, 5:08 p.m.