-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Create unit tests for each python example pipeline (#793)
Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
- Loading branch information
1 parent
6b7b1f0
commit 0e9ce25
Showing
25 changed files
with
1,036 additions
and
335 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
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
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,50 @@ | ||
''' module to get build specific directories | ||
This file is generated during the cmake configure phase. This file does *NOT* | ||
however use the standard `cmake_configure_file()` command but instead uses | ||
a custom generation cmake code. If you add new `${}` style variables, you will | ||
need to update those custom CMake codes. | ||
''' | ||
|
||
|
||
import complex as cx | ||
|
||
def check_filter_result(filter: cx.IFilter, result: cx.IFilter.ExecuteResult): | ||
if len(result.warnings) != 0: | ||
print(f'{filter.name()} :: Warnings: {result.warnings}') | ||
|
||
has_errors = len(result.errors) != 0 | ||
if has_errors: | ||
print(f'{filter.name()} :: Errors: {result.errors}') | ||
raise RuntimeError(result) | ||
|
||
print(f"{filter.name()} :: No errors running the filter") | ||
|
||
|
||
def GetBuildDirectory(): | ||
return '${CMAKE_LIBRARY_OUTPUT_DIRECTORY}' | ||
|
||
def GetTestDirectory(): | ||
return '${complex_BINARY_DIR}/Testing' | ||
|
||
def GetTestTempDirectory(): | ||
return '${complex_BINARY_DIR}/Testing/Temporary' | ||
|
||
def GetDataDirectory(): | ||
return '${DREAM3D_DATA_DIR}' | ||
|
||
def GetComplexPythonSourceDir(): | ||
return '${complex_SOURCE_DIR}/wrapping/python' | ||
|
||
def GetComplexSourceDir(): | ||
return '${complex_SOURCE_DIR}' | ||
|
||
def print_all_paths(): | ||
print(f'#### Important Filesystem Paths ####') | ||
print(f' GetBuildDirectory: {GetBuildDirectory()}') | ||
print(f' GetTestDirectory: {GetTestDirectory()}') | ||
print(f' GetTestTempDirectory: {GetTestTempDirectory()}') | ||
print(f' GetDataDirectory: {GetDataDirectory()}') | ||
print(f' GetComplexPythonSourceDir: {GetComplexPythonSourceDir()}') | ||
print(f' GetComplexSourceDir: {GetComplexSourceDir()}') | ||
print('#######################################') |
Oops, something went wrong.