Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yuhao Liu
ogs
Commits
1b863b34
Commit
1b863b34
authored
8 years ago
by
Christoph Lehmann
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1325 from chleh/fix-addtest
Fix AddTest
parents
6a610bdd
60413f20
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Applications/CLI/Tests.cmake
+78
-56
78 additions, 56 deletions
Applications/CLI/Tests.cmake
Tests/Data
+1
-1
1 addition, 1 deletion
Tests/Data
scripts/cmake/test/AddTest.cmake
+9
-6
9 additions, 6 deletions
scripts/cmake/test/AddTest.cmake
with
88 additions
and
63 deletions
Applications/CLI/Tests.cmake
+
78
−
56
View file @
1b863b34
...
...
@@ -13,7 +13,8 @@ if(NOT OGS_USE_MPI)
WRAPPER time
TESTER vtkdiff
ABSTOL 1e-15 RELTOL 1e-15
DIFF_DATA cube_
${
mesh_size
}
_pcs_0_ts_1_t_1.000000.vtu Linear_1_to_minus1 pressure
DIFF_DATA
cube_1x1x1_hex_
${
mesh_size
}
.vtu cube_
${
mesh_size
}
_pcs_0_ts_1_t_1.000000.vtu Linear_1_to_minus1 pressure
)
AddTest
(
...
...
@@ -24,7 +25,8 @@ if(NOT OGS_USE_MPI)
WRAPPER time
TESTER vtkdiff
ABSTOL 1e-1 RELTOL 1e-1
DIFF_DATA cube_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1.000000.vtu D1_left_front_N1_right pressure
DIFF_DATA
cube_1x1x1_hex_
${
mesh_size
}
.vtu cube_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1.000000.vtu D1_left_front_N1_right pressure
)
endforeach
()
...
...
@@ -37,7 +39,8 @@ if(NOT OGS_USE_MPI)
WRAPPER time
TESTER vtkdiff
ABSTOL 1e-13 RELTOL 1e-13
DIFF_DATA cube_
${
mesh_size
}
_pcs_0_ts_1_t_1.000000.vtu Linear_1_to_minus1 pressure
DIFF_DATA
cube_1x1x1_hex_
${
mesh_size
}
.vtu cube_
${
mesh_size
}
_pcs_0_ts_1_t_1.000000.vtu Linear_1_to_minus1 pressure
)
AddTest
(
...
...
@@ -48,7 +51,8 @@ if(NOT OGS_USE_MPI)
WRAPPER time
TESTER vtkdiff
ABSTOL 1e-2 RELTOL 1e-2
DIFF_DATA cube_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1.000000.vtu D1_left_front_N1_right pressure
DIFF_DATA
cube_1x1x1_hex_
${
mesh_size
}
.vtu cube_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1.000000.vtu D1_left_front_N1_right pressure
)
endforeach
()
...
...
@@ -62,7 +66,8 @@ if(NOT OGS_USE_MPI)
WRAPPER time
TESTER vtkdiff
ABSTOL 1e-13 RELTOL 1e-13
DIFF_DATA square_
${
mesh_size
}
_pcs_0_ts_1_t_1.000000.vtu Linear_1_to_minus1 pressure
DIFF_DATA
square_1x1_quad_
${
mesh_size
}
.vtu square_
${
mesh_size
}
_pcs_0_ts_1_t_1.000000.vtu Linear_1_to_minus1 pressure
)
AddTest
(
...
...
@@ -73,7 +78,8 @@ if(NOT OGS_USE_MPI)
WRAPPER time
TESTER vtkdiff
ABSTOL 1e-1 RELTOL 1e-1
DIFF_DATA square_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1.000000.vtu D1_left_bottom_N1_right pressure
DIFF_DATA
square_1x1_quad_
${
mesh_size
}
.vtu square_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1.000000.vtu D1_left_bottom_N1_right pressure
)
endforeach
()
...
...
@@ -86,7 +92,8 @@ if(NOT OGS_USE_MPI)
WRAPPER time
TESTER vtkdiff
ABSTOL 1e-12 RELTOL 1e-16
DIFF_DATA square_
${
mesh_size
}
_pcs_0_ts_1_t_1.000000.vtu Linear_1_to_minus1 pressure
DIFF_DATA
square_1x1_quad_
${
mesh_size
}
.vtu square_
${
mesh_size
}
_pcs_0_ts_1_t_1.000000.vtu Linear_1_to_minus1 pressure
)
AddTest
(
...
...
@@ -97,7 +104,8 @@ if(NOT OGS_USE_MPI)
WRAPPER time
TESTER vtkdiff
ABSTOL 1e-02 RELTOL 1e-02
DIFF_DATA square_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1.000000.vtu D1_left_bottom_N1_right pressure
DIFF_DATA
square_1x1_quad_
${
mesh_size
}
.vtu square_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1.000000.vtu D1_left_bottom_N1_right pressure
)
endforeach
()
...
...
@@ -111,7 +119,8 @@ if(NOT OGS_USE_MPI)
WRAPPER time
TESTER vtkdiff
ABSTOL 1e-15 RELTOL 1e-15
DIFF_DATA line_
${
mesh_size
}
_pcs_0_ts_1_t_1.000000.vtu Linear_1_to_minus1 pressure
DIFF_DATA
line_1_line_
${
mesh_size
}
.vtu line_
${
mesh_size
}
_pcs_0_ts_1_t_1.000000.vtu Linear_1_to_minus1 pressure
)
AddTest
(
...
...
@@ -122,7 +131,8 @@ if(NOT OGS_USE_MPI)
WRAPPER time
TESTER vtkdiff
ABSTOL 1e-14 RELTOL 1e-14
DIFF_DATA line_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1.000000.vtu D1_left_N1_right pressure
DIFF_DATA
line_1_line_
${
mesh_size
}
.vtu line_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1.000000.vtu D1_left_N1_right pressure
)
endforeach
()
...
...
@@ -134,8 +144,9 @@ if(NOT OGS_USE_MPI)
EXECUTABLE_ARGS cube_1e3_top_neumann.prj
WRAPPER time
TESTER vtkdiff
ABSTOL 1e-16 RELTOL 1e-16
DIFF_DATA cube_1e3_top_neumann_pcs_0_ts_1_t_1.000000.vtu pressure pressure
ABSTOL 1e-14 RELTOL 1e-14
DIFF_DATA
cube_1e3_top_neumann_pcs_0_ts_1_t_1.000000.vtu cube_1e3_top_neumann_pcs_0_ts_1_t_1.000000.vtu pressure pressure
)
AddTest
(
NAME GroundWaterFlowProcess_cube_bottom
...
...
@@ -144,8 +155,9 @@ if(NOT OGS_USE_MPI)
EXECUTABLE_ARGS cube_1e3_bottom_neumann.prj
WRAPPER time
TESTER vtkdiff
ABSTOL 1e-16 RELTOL 1e-16
DIFF_DATA cube_1e3_bottom_neumann_pcs_0_ts_1_t_1.000000.vtu pressure pressure
ABSTOL 1e-14 RELTOL 1e-14
DIFF_DATA
cube_1e3_bottom_neumann_pcs_0_ts_1_t_1.000000.vtu cube_1e3_bottom_neumann_pcs_0_ts_1_t_1.000000.vtu pressure pressure
)
# TES tests
...
...
@@ -156,12 +168,12 @@ if(NOT OGS_USE_MPI)
EXECUTABLE_ARGS tes-1D-zeolite-discharge-small.prj
WRAPPER time
TESTER vtkdiff
ABSTOL 1e-
16
RELTOL 1e-1
6
ABSTOL 1e-
7
RELTOL 1e-1
2
DIFF_DATA
tes_zeolite_discharge_small_pcs_0_ts_19_t_0.100000.vtu pressure pressure
tes_zeolite_discharge_small_pcs_0_ts_19_t_0.100000.vtu temperature temperature
tes_zeolite_discharge_small_
pcs_0_ts_19_t_0.100000.vtu v_mass_frac v_mass_frac
tes_zeolite_discharge_small_pcs_0_ts_19_t_0.100000.vtu solid_density solid_density
tes_zeolite_discharge_small_ts_19_t_0_100000.vtu
tes_zeolite_discharge_small_pcs_0_ts_19_t_0.100000.vtu pressure pressure
tes_zeolite_discharge_small_ts_19_t_0_100000.vtu
tes_zeolite_discharge_small_pcs_0_ts_19_t_0.100000.vtu temperature temperature
tes_zeolite_discharge_small_
ts_19_t_0_100000.vtu tes_zeolite_discharge_small_pcs_0_ts_19_t_0.100000.vtu vapour_partial_pressure vapour_partial_pressure
tes_zeolite_discharge_small_ts_19_t_0_100000.vtu
tes_zeolite_discharge_small_pcs_0_ts_19_t_0.100000.vtu solid_density solid_density
)
AddTest
(
...
...
@@ -171,12 +183,12 @@ if(NOT OGS_USE_MPI)
EXECUTABLE_ARGS tes-1D-zeolite-discharge-large.prj
WRAPPER time
TESTER vtkdiff
ABSTOL 1e-
16
RELTOL 1e-
16
ABSTOL 1e-
3
RELTOL 1e-
4
DIFF_DATA
tes_zeolite_discharge_large_pcs_0_ts_28_t_1.000000.vtu pressure pressure
tes_zeolite_discharge_large_pcs_0_ts_28_t_1.000000.vtu temperature temperature
tes_zeolite_discharge_large_pcs_0_ts_28_t_1
.000000.vtu v_mass_frac v_mass_frac
tes_zeolite_discharge_large_pcs_0_ts_28_t_1.000000.vtu solid_density solid_density
tes_zeolite_discharge_large_pcs_0_ts_28_t_1_000000.vtu
tes_zeolite_discharge_large_pcs_0_ts_28_t_1.000000.vtu pressure pressure
tes_zeolite_discharge_large_pcs_0_ts_28_t_1_000000.vtu
tes_zeolite_discharge_large_pcs_0_ts_28_t_1.000000.vtu temperature temperature
tes_zeolite_discharge_large_pcs_0_ts_28_t_1
_000000.vtu tes_zeolite_discharge_large_pcs_0_ts_28_t_1.000000.vtu vapour_partial_pressure vapour_partial_pressure
tes_zeolite_discharge_large_pcs_0_ts_28_t_1_000000.vtu
tes_zeolite_discharge_large_pcs_0_ts_28_t_1.000000.vtu solid_density solid_density
)
else
()
...
...
@@ -188,11 +200,11 @@ else()
WRAPPER mpirun
WRAPPER_ARGS -np 3
TESTER vtkdiff
ABSTOL 1e-1
6
RELTOL 1e-1
6
ABSTOL 1e-1
5
RELTOL 1e-1
4
DIFF_DATA
quad_20x10_GroundWaterFlow_result_pcs_0_ts_1_t_1_000000_0.vtu pressure pressure
quad_20x10_GroundWaterFlow_result_pcs_0_ts_1_t_1_000000_1.vtu pressure pressure
quad_20x10_GroundWaterFlow_result_pcs_0_ts_1_t_1_000000_2.vtu pressure pressure
quad_20x10_GroundWaterFlow_result_pcs_0_ts_1_t_1_000000_0.vtu
quad_20x10_GroundWaterFlow_result_pcs_0_ts_1_t_1_000000_0.vtu
pressure pressure
quad_20x10_GroundWaterFlow_result_pcs_0_ts_1_t_1_000000_1.vtu
quad_20x10_GroundWaterFlow_result_pcs_0_ts_1_t_1_000000_1.vtu
pressure pressure
quad_20x10_GroundWaterFlow_result_pcs_0_ts_1_t_1_000000_2.vtu
quad_20x10_GroundWaterFlow_result_pcs_0_ts_1_t_1_000000_2.vtu
pressure pressure
)
AddTest
(
...
...
@@ -202,11 +214,11 @@ else()
WRAPPER mpirun
WRAPPER_ARGS -np 3
TESTER vtkdiff
ABSTOL 1e-1
6
RELTOL 1e-
1
6
ABSTOL 1e-1
4
RELTOL 1e-6
DIFF_DATA
cube_1e3_pcs_0_ts_1_t_1_000000_0.vtu pressure pressure
cube_1e3_pcs_0_ts_1_t_1_000000_1.vtu pressure pressure
cube_1e3_pcs_0_ts_1_t_1_000000_2.vtu pressure pressure
cube_1e3_pcs_0_ts_1_t_1_000000_0.vtu
cube_1e3_pcs_0_ts_1_t_1_000000_0.vtu
pressure pressure
cube_1e3_pcs_0_ts_1_t_1_000000_1.vtu
cube_1e3_pcs_0_ts_1_t_1_000000_1.vtu
pressure pressure
cube_1e3_pcs_0_ts_1_t_1_000000_2.vtu
cube_1e3_pcs_0_ts_1_t_1_000000_2.vtu
pressure pressure
)
AddTest
(
...
...
@@ -216,11 +228,11 @@ else()
WRAPPER mpirun
WRAPPER_ARGS -np 3
TESTER vtkdiff
ABSTOL 1e-1
6
RELTOL 1e-1
6
ABSTOL 1e-1
4
RELTOL 1e-1
4
DIFF_DATA
cube_1e3_neumann_pcs_0_ts_1_t_1_000000_0.vtu pressure pressure
cube_1e3_neumann_pcs_0_ts_1_t_1_000000_1.vtu pressure pressure
cube_1e3_neumann_pcs_0_ts_1_t_1_000000_2.vtu pressure pressure
cube_1e3_neumann_pcs_0_ts_1_t_1_000000_0.vtu
cube_1e3_neumann_pcs_0_ts_1_t_1_000000_0.vtu
pressure pressure
cube_1e3_neumann_pcs_0_ts_1_t_1_000000_1.vtu
cube_1e3_neumann_pcs_0_ts_1_t_1_000000_1.vtu
pressure pressure
cube_1e3_neumann_pcs_0_ts_1_t_1_000000_2.vtu
cube_1e3_neumann_pcs_0_ts_1_t_1_000000_2.vtu
pressure pressure
)
# Single core
...
...
@@ -234,7 +246,8 @@ else()
WRAPPER_ARGS -np 1
TESTER vtkdiff
ABSTOL 1e-15 RELTOL 1e-15
DIFF_DATA cube_
${
mesh_size
}
_pcs_0_ts_1_t_1_000000_0.vtu Linear_1_to_minus1 pressure
DIFF_DATA
cube_1x1x1_hex_
${
mesh_size
}
.vtu cube_
${
mesh_size
}
_pcs_0_ts_1_t_1_000000_0.vtu Linear_1_to_minus1 pressure
)
AddTest
(
...
...
@@ -245,7 +258,8 @@ else()
WRAPPER_ARGS -np 1
TESTER vtkdiff
ABSTOL 1e-1 RELTOL 1e-1
DIFF_DATA cube_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1_000000_0.vtu D1_left_front_N1_right pressure
DIFF_DATA
cube_1x1x1_hex_
${
mesh_size
}
.vtu cube_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1_000000_0.vtu D1_left_front_N1_right pressure
)
endforeach
()
...
...
@@ -259,7 +273,8 @@ else()
WRAPPER_ARGS -np 1
TESTER vtkdiff
ABSTOL 1e-7 RELTOL 1e-7
DIFF_DATA cube_
${
mesh_size
}
_pcs_0_ts_1_t_1_000000_0.vtu Linear_1_to_minus1 pressure
DIFF_DATA
cube_1x1x1_hex_
${
mesh_size
}
.vtu cube_
${
mesh_size
}
_pcs_0_ts_1_t_1_000000_0.vtu Linear_1_to_minus1 pressure
)
AddTest
(
...
...
@@ -270,7 +285,8 @@ else()
WRAPPER_ARGS -np 1
TESTER vtkdiff
ABSTOL 1e-2 RELTOL 1e-2
DIFF_DATA cube_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1_000000_0.vtu D1_left_front_N1_right pressure
DIFF_DATA
cube_1x1x1_hex_
${
mesh_size
}
.vtu cube_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1_000000_0.vtu D1_left_front_N1_right pressure
)
endforeach
()
...
...
@@ -284,7 +300,8 @@ else()
WRAPPER_ARGS -np 1
TESTER vtkdiff
ABSTOL 1e-13 RELTOL 1e-13
DIFF_DATA square_
${
mesh_size
}
_pcs_0_ts_1_t_1_000000_0.vtu Linear_1_to_minus1 pressure
DIFF_DATA
square_1x1_quad_
${
mesh_size
}
.vtu square_
${
mesh_size
}
_pcs_0_ts_1_t_1_000000_0.vtu Linear_1_to_minus1 pressure
)
AddTest
(
...
...
@@ -295,7 +312,8 @@ else()
WRAPPER_ARGS -np 1
TESTER vtkdiff
ABSTOL 1e-1 RELTOL 1e-1
DIFF_DATA square_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1_000000_0.vtu D1_left_bottom_N1_right pressure
DIFF_DATA
square_1x1_quad_
${
mesh_size
}
.vtu square_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1_000000_0.vtu D1_left_bottom_N1_right pressure
)
endforeach
()
...
...
@@ -308,7 +326,8 @@ else()
WRAPPER_ARGS -np 1
TESTER vtkdiff
ABSTOL 1e-7 RELTOL 1e-7
DIFF_DATA square_
${
mesh_size
}
_pcs_0_ts_1_t_1_000000_0.vtu Linear_1_to_minus1 pressure
DIFF_DATA
square_1x1_quad_
${
mesh_size
}
.vtu square_
${
mesh_size
}
_pcs_0_ts_1_t_1_000000_0.vtu Linear_1_to_minus1 pressure
)
AddTest
(
...
...
@@ -319,7 +338,8 @@ else()
WRAPPER_ARGS -np 1
TESTER vtkdiff
ABSTOL 1e-02 RELTOL 1e-02
DIFF_DATA square_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1_000000_0.vtu D1_left_bottom_N1_right pressure
DIFF_DATA
square_1x1_quad_
${
mesh_size
}
.vtu square_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1_000000_0.vtu D1_left_bottom_N1_right pressure
)
endforeach
()
...
...
@@ -333,7 +353,8 @@ else()
WRAPPER_ARGS -np 1
TESTER vtkdiff
ABSTOL 1e-15 RELTOL 1e-15
DIFF_DATA line_
${
mesh_size
}
_pcs_0_ts_1_t_1_000000_0.vtu Linear_1_to_minus1 pressure
DIFF_DATA
line_1_line_
${
mesh_size
}
.vtu line_
${
mesh_size
}
_pcs_0_ts_1_t_1_000000_0.vtu Linear_1_to_minus1 pressure
)
AddTest
(
...
...
@@ -344,9 +365,10 @@ else()
WRAPPER_ARGS -np 1
TESTER vtkdiff
ABSTOL 1e-14 RELTOL 1e-14
DIFF_DATA line_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1_000000_0.vtu D1_left_N1_right pressure
DIFF_DATA
line_1_line_
${
mesh_size
}
.vtu line_
${
mesh_size
}
_neumann_pcs_0_ts_1_t_1_000000_0.vtu D1_left_N1_right pressure
)
endforeach
()
endforeach
()
AddTest
(
NAME TES_zeolite_discharge_small
...
...
@@ -355,12 +377,12 @@ else()
WRAPPER mpirun
WRAPPER_ARGS -np 1
TESTER vtkdiff
ABSTOL 1e-
16
RELTOL 1e-1
6
ABSTOL 1e-
7
RELTOL 1e-1
2
DIFF_DATA
tes_zeolite_discharge_small_pcs_0_ts_19_t_0_100000_0.vtu pressure pressure
tes_zeolite_discharge_small_pcs_0_ts_19_t_0_100000_0.vtu temperature temperature
tes_zeolite_discharge_small_pcs_0_ts_19_t_0_100000_0.vtu v_mass_frac v_mass_frac
# tes_zeolite_discharge_small_
pcs_0_
ts_19_t_0.100000
_0
.vtu solid_density solid_density
tes_zeolite_discharge_small_ts_19_t_0_100000.vtu
tes_zeolite_discharge_small_pcs_0_ts_19_t_0_100000_0.vtu pressure pressure
tes_zeolite_discharge_small_ts_19_t_0_100000.vtu
tes_zeolite_discharge_small_pcs_0_ts_19_t_0_100000_0.vtu temperature temperature
tes_zeolite_discharge_small_ts_19_t_0_100000.vtu
tes_zeolite_discharge_small_pcs_0_ts_19_t_0_100000_0.vtu v_mass_frac v_mass_frac
# tes_zeolite_discharge_small_ts_19_t_0.100000.vtu solid_density solid_density
)
AddTest
(
...
...
@@ -372,9 +394,9 @@ else()
TESTER vtkdiff
ABSTOL 1e-16 RELTOL 1e-16
DIFF_DATA
tes_zeolite_discharge_large_pcs_0_ts_28_t_1_000000_0.vtu pressure pressure
tes_zeolite_discharge_large_pcs_0_ts_28_t_1_000000_0.vtu temperature temperature
tes_zeolite_discharge_large_pcs_0_ts_28_t_1_000000_0.vtu v_mass_frac v_mass_frac
# tes_zeolite_discharge_large_
pcs_0_
ts_28_t_1_0.vtu solid_density solid_density
tes_zeolite_discharge_large_ts_28_t_1_000000.vtu
tes_zeolite_discharge_large_pcs_0_ts_28_t_1_000000_0.vtu pressure pressure
tes_zeolite_discharge_large_ts_28_t_1_000000.vtu
tes_zeolite_discharge_large_pcs_0_ts_28_t_1_000000_0.vtu temperature temperature
tes_zeolite_discharge_large_ts_28_t_1_000000.vtu
tes_zeolite_discharge_large_pcs_0_ts_28_t_1_000000_0.vtu v_mass_frac v_mass_frac
# tes_zeolite_discharge_large_ts_28_t_1_0.vtu solid_density solid_density
)
endif
()
This diff is collapsed.
Click to expand it.
Data
@
776dc123
Compare
9cf994ef
...
776dc123
Subproject commit
9cf994efa6057746b7613aa06e1813810299bba4
Subproject commit
776dc123a9d8760e8148a64c15e2e8670826de98
This diff is collapsed.
Click to expand it.
scripts/cmake/test/AddTest.cmake
+
9
−
6
View file @
1b863b34
...
...
@@ -130,20 +130,23 @@ function (AddTest)
string
(
REPLACE
";"
" && "
TESTER_COMMAND
"
${
TESTER_COMMAND
}
"
)
elseif
(
AddTest_TESTER STREQUAL
"vtkdiff"
)
list
(
LENGTH AddTest_DIFF_DATA DiffDataLength
)
math
(
EXPR DiffDataLengthMod
3
"
${
DiffDataLength
}
%
3
"
)
if
(
NOT
${
DiffDataLengthMod
3
}
EQUAL 0
)
message
(
FATAL_ERROR
"For vtkdiff tester the number of diff data arguments must be a multiple of
three
."
)
math
(
EXPR DiffDataLengthMod
4
"
${
DiffDataLength
}
%
4
"
)
if
(
NOT
${
DiffDataLengthMod
4
}
EQUAL 0
)
message
(
FATAL_ERROR
"For vtkdiff tester the number of diff data arguments must be a multiple of
four
."
)
endif
()
math
(
EXPR DiffDataLastIndex
"
${
DiffDataLength
}
-1"
)
foreach
(
DiffDataIndex RANGE 0
${
DiffDataLastIndex
}
3
)
list
(
GET AddTest_DIFF_DATA
"
${
DiffDataIndex
}
"
VTK_FILE
)
foreach
(
DiffDataIndex RANGE 0
${
DiffDataLastIndex
}
4
)
list
(
GET AddTest_DIFF_DATA
"
${
DiffDataIndex
}
"
REFERENCE_
VTK_FILE
)
math
(
EXPR DiffDataAuxIndex
"
${
DiffDataIndex
}
+1"
)
list
(
GET AddTest_DIFF_DATA
"
${
DiffDataAuxIndex
}
"
NAME_A
)
list
(
GET AddTest_DIFF_DATA
"
${
DiffDataAuxIndex
}
"
VTK_FILE
)
math
(
EXPR DiffDataAuxIndex
"
${
DiffDataIndex
}
+2"
)
list
(
GET AddTest_DIFF_DATA
"
${
DiffDataAuxIndex
}
"
NAME_A
)
math
(
EXPR DiffDataAuxIndex
"
${
DiffDataIndex
}
+3"
)
list
(
GET AddTest_DIFF_DATA
"
${
DiffDataAuxIndex
}
"
NAME_B
)
list
(
APPEND TESTER_COMMAND
"
${
SELECTED_DIFF_TOOL_PATH
}
\
${
AddTest_SOURCE_PATH
}
/
${
REFERENCE_VTK_FILE
}
\
${
AddTest_BINARY_PATH
}
/
${
VTK_FILE
}
\
-a
${
NAME_A
}
-b
${
NAME_B
}
\
${
TESTER_ARGS
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment