--- a +++ b/Tests/Applications/test_THA-KneeBendDemo.any @@ -0,0 +1,42 @@ +//# Note. Since these tests include main files from other +//# applications they alter the ANYBODY_PATH_MAINFILEDIR and +//# ANYBODY_PATH_MAINFILE preprocessor flags. +//# +//# If these flags are important to the model they must be mocked by the +//# test framework. This can be done by adding the following test directives. +//# path = {'ANYBODY_PATH_MAINFILEDIR':'../../Application/Examples/THA-KneeBendDemo', +//# 'ANYBODY_PATH_MAINFILE':'../../Application/Examples/THA-KneeBendDemo/THA-KneeBendDemo.Main.any' } +//save_study=["Main.Study"] + +#include "../libdef.any" + +#ifndef TEST_NAME + +#endif + + +#include "../../Application/Examples/THA-KneeBendDemo/THA-KneeBendDemo.Main.any" + +Main = +{ +#ifndef CREATE_IMAGE + AnyOperation& RunTest = Main.RunApplication; + Study = { FixTestStudyConfig TestStudyConfig = { }; }; +#else + #include "../Cameras.any" + // Use a a spical time for the initial position picture. + AnyOperationSequence CameraInitPos = + { + AnyOperationSetValue setTime = + { + AnyFloat t_custom = 8; + Source = {&t_custom}; + Target = {&Main.Study.tStart}; + }; + AnyOperation& CameraInitPos = Main.Study.InitialConditions; + }; + LoadTimeCam.CameraLookAtPoint = {0.1,0.9,0}; + LoadTimeCam.CameraFieldOfView = DesignVar(2); + LoadTimeCam.CameraDirection = {0,0,1}; +#endif +};