-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunExample.py
More file actions
executable file
·34 lines (24 loc) · 890 Bytes
/
runExample.py
File metadata and controls
executable file
·34 lines (24 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/python
from pyscripts.testCase import TestCase
from pyscripts.generators.generateHTMLNew import HTMLGenerator
# mitsuba config file !! needs to be adjusted !!
mtsConfig = "example_mitsuba_config"
# test case file !! replace it with your own test cases !!
testCasesFile = "test_cases/example_test_case"
# test scene
scene = "cbox_glossy"
# check the example/scens/scenes.py to set up additional scenes
prefix = "exp"
tc = TestCase(mtsConfig, prefix)
tc.loadTestCases(testCasesFile)
# sets the scene used for the test
tc.setScene(scene)
# example to run all testcases
tc.runAllTestCases(copyRef=True)
# example run a single test case
# tc.runTestCase("vol")
# copies the reference file to the result folder
# tc.copyRefenrence()
# generates the HTML comparision files
htmlGenerator = HTMLGenerator(mtsConfig, testCasesFile, prefix)
htmlGenerator.generateAll(True, False)