Skip to content
Snippets Groups Projects
Commit 4c5389c8 authored by Bill Lorensen's avatar Bill Lorensen
Browse files

ENH: Move Baselines

To accomodate baselines for other languages, the current baselines have been mpoved to Testing/Baselines/Cxx


Former-commit-id: 07db1896
parent a63bee00
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ SET(CMAKE_TESTDRIVER_BEFORE_TESTMAIN
// Set defaults
vtkTestingInteractor::ValidBaseline =
std::string(\"${VTK_DATA_ROOT}\") +
std::string(\"/Baseline/\") +
std::string(\"/Baseline/Cxx/\") +
std::string(\"${KIT}/\") +
std::string(cmakeGeneratedFunctionMapEntries[testToRun].name) +
std::string(\".png\");
......
......@@ -142,7 +142,7 @@ for lang, langExt in Languages.items():
if ExampleExt != langExt:
continue
print "ExampleName: " + ExampleName + ExampleExt
BaselinePath = RepoDir + "/Testing/Baseline/" + KitName + "/Test" + ExampleName + ".png"
BaselinePath = RepoDir + "/Testing/Baseline/" + lang + "/" + KitName + "/Test" + ExampleName + ".png"
PathName = DocDir + "/" + lang + "/" + KitName
if not os.path.exists(PathName):
if PathName != "":
......@@ -153,7 +153,7 @@ for lang, langExt in Languages.items():
if os.path.isfile(BaselinePath) :
print "BaselinePath: " + BaselinePath
ImgUrl = RepoURL + "/blob/master/src/Testing/Baseline/" + KitName + "/Test" + ExampleName + ".png?raw=true"
ImgUrl = RepoURL + "/blob/master/src/Testing/Baseline/" + lang + "/" + KitName + "/Test" + ExampleName + ".png?raw=true"
print "ImgUrl: " + ImgUrl
MdFile.write('<img style="float:middle" src="' + ImgUrl + '" width="256" />' + '\n')
MdFile.write("\n")
......
......@@ -130,7 +130,7 @@ DataStructures, Filters, GeometricObjects, Images, Meshes, etc.
4. If your example does any rendering, the test will fail the first time and create an image in VTKExamples/build/Testing/Temporary. The image will be called Test**MyNewExample**.png.
5. Copy the image into: VTKExamples/src/Testing/Baseline/**TOPIC**/
5. Copy the image into: VTKExamples/src/Testing/Baseline/**LANG**/**TOPIC**/
6. Rerun ctest and the test should pass.
......@@ -153,7 +153,7 @@ git add MyNewExample.cxx
and if you have a baseline image,
```
git add Testing/Baseline/TOPIC/TestMyNewExample.png
git add Testing/Baseline/LANG/TOPIC/TestMyNewExample.png
```
```
git commit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment