-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from VisionSystemsInc/test_import
test imports
- Loading branch information
Showing
3 changed files
with
35 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from vxl import vgl, vil, vpgl | ||
from ._bpgl_algo import * | ||
from vxl import vil |
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,29 @@ | ||
#!/usr/bin/env bash | ||
# test independent import of each python module | ||
|
||
# fail quickly | ||
set -eu | ||
|
||
# modules to test | ||
MODULE_NAMES=( | ||
"vxl" | ||
"vxl.vbl" | ||
"vxl.vgl" "vxl.vgl.algo" | ||
"vxl.vil" | ||
"vxl.vnl" | ||
"vxl.vpgl" "vxl.vpgl.algo" | ||
"vxl.contrib" | ||
"vxl.contrib.acal" | ||
"vxl.contrib.bpgl" "vxl.contrib.bpgl.algo" | ||
"vxl.contrib.brad" | ||
"vxl.contrib.brip" | ||
"vxl.contrib.bsgm" | ||
"vxl.contrib.bvxm" "vxl.contrib.bvxm.algo" | ||
"vxl.contrib.sdet" "vxl.contrib.sdet.algo" | ||
) | ||
|
||
# independent import of each python module | ||
for module_name in "${MODULE_NAMES[@]}"; do | ||
echo "test: \"import ${module_name}\"" | ||
python3 -c "import ${module_name}" | ||
done |