TrigUpgradeTest: simplify test definition
Reduce the amount of copy&paste by using a cmake function to define the tests. Some of the test names (and reference file names) have changed as the ctest test name is now derived from the test script name.
Also delete the separate test directory during the cmake configuration to avoid interference with previous runs, i.e. during incremental builds.
cc @rbielski
Edited by Frank Winklmeier