Re #9442. Change required to run CrystalTest directly.
Re #9442. Make sure CurveFitting is up to date for Crystal tests.

One of the algorithms in Crystal uses the Fit algorithm so we have
to make sure CurveFitting is built before running the Crystal tests.
Re #9442. Add required packages for running tests.

GroupDetectors requires Divide.
LoadTest requires LoadMD.
Re #9442. Also need to have Algorithms built.

LoadIsawUB requires Rebin.
Re #9442. Add test dependency.

LoadLiveDataTest uses an MD algorithm.
Re #9442. Clear the AlgorithmManager at the start of the test.

Ensures that the LiveDataTest executable can be run directly (and successfully).
Re #9442. WorkflowAlgorithmTests require CurveFitting package.

MuonCalculateAsymmetry uses RemoveExpDecay which uses Fit.
Re #9442. Algorithms is required to run MDAlgorithmsTest.
Re #9442. Running the Algorithm tests requires MDAlgorithms.
Re #9442. CurveFitting shouldn't need to be a full link.

Specifying it as a dependency should be enough - no tests use it
directly.
Re #9442. Crystal also needed for AnvredCorrection.
Re #9442. The CurveFitting tests require Algorithms.
Re #9442. Make sure config variable is reset after running.

This is what was causing the DiffSphereTest to fail when running
the CurveFittingTest executable directly.
Re #9442. Skip DiffSphereTest suite if running in Valgrind.

These tests fail if running under valgrind (see comment in commit itself).
Lean on a Valgrind macro to determine if we're running within Valgrind
and skip the tests if we are so that the rest of the tests can run
to completion (I'm running the CurveFittingTest executable directly so
it's running all the tests together).

The required header from valgrind has been placed into the CurveFitting/test
directory so we're not creating a dependency. If some platforms don't like
it I'll conditionally include/use it on linux only.
Re #9442. Remove unrequired definition of pi.
Merge remote-tracking branch 'origin/feature/9442_for_valgrind_jobs'

Re #9442

Conflicts:
	Code/Mantid/Framework/Crystal/test/CMakeLists.txt