-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various fixes for 0.9.3 release (#1290)
* updates to visit session to ascent camera script * dont force int for conn * sess conv updates and tests * upgrade from dep imp usage * plural * spelling
- Loading branch information
Showing
9 changed files
with
13,287 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
############################################################################### | ||
# Copyright (c) Lawrence Livermore National Security, LLC and other Ascent | ||
# Project developers. See top-level LICENSE AND COPYRIGHT files for dates and | ||
# other details. No copyright assignment is required to contribute to Ascent. | ||
############################################################################### | ||
|
||
|
||
#################################### | ||
# Add Util Tests | ||
#################################### | ||
|
||
if(PYTHON_FOUND AND ENABLE_PYTHON) | ||
message(STATUS "Adding ascent utility tests") | ||
add_python_test(t_python_visit_session_converters) | ||
else() | ||
message(STATUS "Python disabled: Skipping ascent python utility tests") | ||
endif() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
############################################################################### | ||
# Copyright (c) Lawrence Livermore National Security, LLC and other Ascent | ||
# Project developers. See top-level LICENSE AND COPYRIGHT files for dates and | ||
# other details. No copyright assignment is required to contribute to Ascent. | ||
############################################################################### | ||
|
||
|
||
""" | ||
file: t_python_visit_session_converts.py | ||
description: Driver to test python session converters | ||
""" | ||
|
||
import sys | ||
import unittest | ||
import os | ||
import subprocess | ||
|
||
from os.path import join as pjoin | ||
|
||
|
||
def test_src_dir(): | ||
for path in sys.path: | ||
if os.path.isfile(pjoin(path,"tin-visit-cam.session")): | ||
return path | ||
|
||
def utils_src_dir(): | ||
res = os.path.abspath(pjoin(test_src_dir(),"..","..","utilities")) | ||
print(res) | ||
return res | ||
|
||
class Test_Session_Converters(unittest.TestCase): | ||
|
||
def test_extract_camera(self): | ||
test_script = pjoin(utils_src_dir(),"visit_session_converters","session_to_camera.py") | ||
test_sess = pjoin(test_src_dir(),"tin-visit-cam.session") | ||
print(test_script) | ||
print(test_sess) | ||
cmd = " ".join([sys.executable,test_script,test_sess]) | ||
print(cmd) | ||
subprocess.check_call(cmd,shell=True) | ||
|
||
def test_extract_opac(self): | ||
test_script = pjoin(utils_src_dir(),"visit_session_converters","session_to_opacity.py") | ||
test_sess = pjoin(test_src_dir(),"tin-visit-opac.session") | ||
print(test_script) | ||
print(test_sess) | ||
cmd = " ".join([sys.executable,test_script,test_sess]) | ||
print(cmd) | ||
subprocess.check_call(cmd,shell=True) | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() | ||
|
||
|
Oops, something went wrong.