Overview | Releases | Download | Docs | Links | Help | RecentChanges

HowToAddANewTest

Simple:

First, the test 'scripts' are in:

   CalibrationController/src/scripts

The most important distinction is between raw and 'cooked' scans, after that most new tests are small variations on previous ones.

Find a script that is close to what you want to do, copy and modify both the .h and .cpp files.

Recompile CalibrationController (the Makefile automatically finds the new code).

Things you are likely to want to change

  1. The parameter passed to registerStaticFactoryMethodForTest in the cpp file
  1. The name parameter passed to startTestRealImpl (not quite sure what this does anymore, needs looking up)
  2. The calls to setFitAlgorithm and setAnalysisAlgorithm

See also HowToAddANewAnalysis.