Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Erik Palmer
VTK
Commits
5b742fd8
Commit
5b742fd8
authored
11 years ago
by
Ben Boeckel
Browse files
Options
Downloads
Patches
Plain Diff
Support custom baselines in tests
Change-Id: I0a5df3d25ec33ffc272e33a032a19af38689d938
parent
e04656f3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMake/vtkTestingMacros.cmake
+12
-2
12 additions, 2 deletions
CMake/vtkTestingMacros.cmake
with
12 additions
and
2 deletions
CMake/vtkTestingMacros.cmake
+
12
−
2
View file @
5b742fd8
...
...
@@ -86,6 +86,7 @@ endfunction()
function
(
vtk_add_test_mpi exename tests
)
set
(
mpi_options
TESTING_DATA
CUSTOM_BASELINES
)
_vtk_test_parse_args
(
"
${
mpi_options
}
"
"cxx"
${
ARGN
}
)
_vtk_test_set_options
(
"
${
mpi_options
}
"
""
${
options
}
)
...
...
@@ -114,7 +115,11 @@ function(vtk_add_test_mpi exename tests)
if
(
local_TESTING_DATA
)
set
(
_D -D
${
data_dir
}
)
set
(
_T -T
${
VTK_BINARY_DIR
}
/Testing/Temporary
)
set
(
_V -V
"DATA{
${
baseline_dir
}
/
${
name
}
.png,:}"
)
if
(
local_CUSTOM_BASELINES
)
set
(
_V -V
"
${
data_dir
}
/Baseline"
)
else
()
set
(
_V -V
"DATA{
${
baseline_dir
}
/
${
name
}
.png,:}"
)
endif
()
endif
()
set
(
numprocs
${
default_numprocs
}
)
...
...
@@ -174,6 +179,7 @@ function(vtk_add_test_cxx exename _tests)
NO_DATA
NO_VALID
NO_OUTPUT
CUSTOM_BASELINES
)
_vtk_test_parse_args
(
"
${
cxx_options
}
"
"cxx"
${
ARGN
}
)
_vtk_test_set_options
(
"
${
cxx_options
}
"
""
${
options
}
)
...
...
@@ -211,7 +217,11 @@ function(vtk_add_test_cxx exename _tests)
set
(
_V
""
)
if
(
NOT local_NO_VALID
)
set
(
_V -V
"DATA{
${
baseline_dir
}
/
${
name
}
.png,:}"
)
if
(
local_CUSTOM_BASELINES
)
set
(
_V -V
"
${
data_dir
}
/Baseline"
)
else
()
set
(
_V -V
"DATA{
${
baseline_dir
}
/
${
name
}
.png,:}"
)
endif
()
endif
()
ExternalData_add_test
(
VTKData
...
...
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