The HAL test suite ~~~~~~~~~~~~~~~~~~~ The tests in these directories serve to test the behavior of HAL components. Each subdirectory of this directory may contain a test item. The runtests script recurses through the directory structure, so multiple tests could be structured as tests/ xyz.0 xyz.1 xyz.2 or tests/ xyz/ 0 1 2 Two types of tests are supported: Regression tests, in which the output is tested against a "known good" output, and functional tests, in which the output is fed to a program that can determine whether it is correct or not Running the tests ~~~~~~~~~~~~~~~~~ Currently, tests only work with the "run in place" configuration. They can be run by executing (from the top emc2 directory) scripts/runtests tests A subset of the tests can also be run: scripts/runtests tests/xyz tests/a* The directories named on the commandline are searched recursively for 'test.hal' or 'test.sh' files, and a directory with such a file is assumed to contain a regression test or a functional test. Tests may contain files other than the ones specified below. For instance, when using 'streamer' data as test input, a shell script with "halstreamer<