Rev 48160 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
There is a hierarchy of check targets:make checkfor all builders. If this works one can be reasonably happy R is workingand do `make install' (or the equivalent).make check-develfor people changing the code: this runs things like the demos andno-segfault which might be broken by code changes, and checks on thedocumentation (effectively R CMD check on each of the base packages).make check-allruns all the checks, those in check-devel plus tests of the recommendedpackages.--- Historical Information ----In this directory, various tests on R are run automatically.This is the recommended way to check if R has been built successfully onyour architecture.make checkdoesmake test-Examplesruns all the examples from the help files (*.Rd) of all core packages(base, ctest, ..., ts) -- which can take quite long (a few minutes,depending on your environment).make test-SpecificThe "fast" part of the tests is `test-Specific' which runs the *.Rfiles in this (./tests) directory (tolerantly) compares the result*.Rout file with the prespecified *.Rout.save (if that exists).make test-Regruns regression tests, that is tests that ensure that things which have beenchanged (perhaps as a result of bug reports) stay fixed.make test-Internetruns tests which need access to the Internet and/or sockets and so maynot run on every machine. You will see some differences in the output,but no test should fail if you do have sockets and Internet access.Further tests are run by the target `make check-devel', includingmake test-Demoruns all the demos in packages base and stats (but not tcltk), exceptdemo(lm.glm) which is run by example(demo) and so not run again.make test-Randomruns a series of tests on the distribution of random variates generatedby the rxxxx() functions. The test is a large deviation bound on theKolmogorov statistic, so also provides a test of the cumulative distributionfunctions pxxxx(). Because rare events do happen, this test suitewill be failed in about 1 in 50 runs.make test-Segfaultruns a test abusing all the functions in the base packages viano-segfault.R, and that can be quite slow (a minute or more).A rarely-used target ismake test-Gctruns a subset of the specific tests with gctorture turned on. This is slow,taking an hour or two.Martin Maechler for the R Core Team.