Skip to content

Commit fd516b1

Browse files
committed
WIP: checking ply integrity
1 parent 327d7ba commit fd516b1

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.github/workflows/test-pass.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,18 @@ jobs:
8383
- name: Set read permissions for .ply file
8484
run: |
8585
icacls ${{github.workspace}}/tests/test_data/roof_quarter.ply /grant Everyone:R
86-
icacls ${{github.workspace}}/tests/integration_tests/pybinds_tests/roof_quarter.ply /grant Everyone:R
86+
- name: Verify file path and case sensitivity
87+
run: |
88+
if not exist ${{github.workspace}}/tests/test_data/roof_quarter.ply (
89+
echo "File path or case sensitivity issue"
90+
exit 1
91+
)
92+
- name: Print .ply file content
93+
run: |
94+
type ${{github.workspace}}/tests/test_data/roof_quarter.ply
95+
- name: Compute hash of .ply file
96+
run: |
97+
certutil -hashfile ${{github.workspace}}/tests/test_data/roof_quarter.ply MD5
8798
8899
- name: Run tests with cmake
89100
run: |

tests/integration_tests/pybinds_tests/roof_quarter.ply

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/integration_tests/pybinds_tests/test_pybind_units.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ def test_DFPointCloud_init():
4343

4444
def test_DFPointCloud_load_from_PLY():
4545
pc = dfb.dfb_geometry.DFPointCloud()
46-
# pc.load_from_PLY(get_ply_cloud_roof_quarter_path())
47-
path_raw = os.path.join(os.path.dirname(__file__), "./roof_quarter.ply")
48-
abs_path = os.path.abspath(path_raw)
49-
pc.load_from_PLY(abs_path)
46+
pc.load_from_PLY(get_ply_cloud_roof_quarter_path())
5047

5148
assert pc.points.__len__() == 7379, "DFPointCloud should have 7379 points"
5249
assert pc.normals.__len__() == 7379, "DFPointCloud should have 7379 normals"

0 commit comments

Comments
 (0)