Skip to content

Commit 59b4710

Browse files
committed
refactor MOST regression test
1 parent 4eb675e commit 59b4710

12 files changed

Lines changed: 5 additions & 201 deletions

MOST/tests/TestMOST.m

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,26 +42,13 @@ function runBEMIO(testCase)
4242
end
4343
cd(testCase.testDir)
4444
end
45-
function runTurbSim(testCase)
46-
% Only re-run turbSim before testing. The *.mat file is too
47-
% large to commit to the repo.
48-
cd(fullfile(testCase.mostDataDir,'turbSim'));
49-
run_turbsim();
50-
cd(testCase.testDir)
51-
end
5245
function runMOSTIO(testCase)
5346
% Test the pre-processing here so that it does not interfere
5447
% with the precise comparison of results.
5548
cd(testCase.mostDataDir);
5649
mostIO
5750
cd(testCase.testDir)
5851
end
59-
function runConstantTest(testCase)
60-
cd(fullfile(testCase.testDir,'constant'))
61-
runLoadConstant;
62-
testCase.constant = load('constant.mat').("constant");
63-
cd(testCase.testDir);
64-
end
6552
function runTurbulentTest(testCase)
6653
cd(fullfile(testCase.testDir,'turbulent'))
6754
runLoadTurbulent;

MOST/tests/constant/OFWTmodel.slx

-101 KB
Binary file not shown.
-1.33 KB
Binary file not shown.
-7.4 MB
Binary file not shown.

MOST/tests/constant/runLoadConstant.m

Lines changed: 0 additions & 49 deletions
This file was deleted.

MOST/tests/constant/wecSimInputFile.m

Lines changed: 0 additions & 70 deletions
This file was deleted.

MOST/tests/turbulent/OFWTmodel.slx

-101 KB
Binary file not shown.
-1.33 KB
Binary file not shown.

MOST/tests/turbulent/runLoadTurbulent.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
locdir = pwd;
44

55
%% Run Simulation
6+
cd ../..
67
wecSim;
8+
cd tests/turbulent/
79

810
%% Post-Process Data
911
% Body 1
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)