Overview of the scuff-em Validation Test Suite
In addition to demonstrating the core functionality of the application modules in simple cases, these to these are used as unit tests to catch bugs and regressions in the scuff-em development process; you can also use them to verify the correct performance of your scuff-em installation.
Descriptions of the individual tests in the validation suite
The various tests in the test suite are described in detail on the following pages, which also present comparisons of scuff-em results to known analytical solutions.
- Mie scattering
- Fresnel scattering
- Equilibrium Casimir-Polder potential near a sphere
- Equilibrium Casimir-Polder potential near a plate
- Heat transfer and non-equilibrium Casimir forces between spheres
- Low-level tests of the scuff-em core library
Running the scuff-em tests
The scuff-em distribution includes a command-line test harness application that you may use to run individual tests, or the entire test suite, to verify correct performance of your scuff-em installation.
The test harness is named
scuff-test-harness, and it lives
tests subdirectory of the scuff-em repository.
tests folder also contains
a collection of text files with file extension
.scuffTest, each of which describes a single validation test in a format understood by
various input files (geometry files, surface meshes, etc.) needed to run the tests
a collection of data files with file extension
.ref, which contain the correct results of the validation tests and are used by
scuff-test-harnessto determine whether or not the test succeeded.
Running individual tests
To run an individual validation test, use the
% scuff-test-harness --test MieScattering
The argument passed to
--test should be the base
file name of one of the
Running the full test suite or a subset
To run the entire suite of validation tests, use the
% scuff-test-harness --allTests