forked from sofa-framework/Regression
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregression_test.py
More file actions
23 lines (18 loc) · 856 Bytes
/
regression_test.py
File metadata and controls
23 lines (18 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os
import sys
#example of use:
# on linux
#python regression_test.py /home/epernod/projects/regression_test_sofa/build/bin/Regression_test ~/projects/sofa-src ~/projects/regression_test_sofa/src/references ~/projects/sofa-build/
# on windows
#python ./sofa-src/applications/projects/Regression/regression_test.py /c/projects/sofa-build/bin/Release/Regression_test.exe /c/projects/sofa-src/ /c/projects/sofa-src/applications/projects/Regression/references/ /c/projects/sofa-build/
#arguments:
# 0 - script name
# 1 - regression_test binary path
# 2 - regression scenes dir
# 3 - regression references dir
# 4 - sofa build dir
os.environ["REGRESSION_SCENES_DIR"] = sys.argv[2]
os.environ["REGRESSION_REFERENCES_DIR"] = sys.argv[3]
os.environ["SOFA_ROOT"] = sys.argv[4]
os.environ["SOFA_PLUGIN_PATH"] = sys.argv[4] + '/lib'
os.system(sys.argv[1])