summaryrefslogtreecommitdiff
path: root/src/mesh/assimp-master/port/PyAssimp/scripts/quicktest.py
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-04-16 11:55:54 -0500
committersanine <sanine.not@pm.me>2022-04-16 11:55:54 -0500
commit8fb7916a0d0cb007a4c3a4e6a31af58765268ca3 (patch)
tree52b5524a94a5b04e17a1fd7f8aca988ab6d0c75f /src/mesh/assimp-master/port/PyAssimp/scripts/quicktest.py
parentdb81b925d776103326128bf629cbdda576a223e7 (diff)
delete src/mesh/assimp-master
Diffstat (limited to 'src/mesh/assimp-master/port/PyAssimp/scripts/quicktest.py')
-rwxr-xr-xsrc/mesh/assimp-master/port/PyAssimp/scripts/quicktest.py53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/mesh/assimp-master/port/PyAssimp/scripts/quicktest.py b/src/mesh/assimp-master/port/PyAssimp/scripts/quicktest.py
deleted file mode 100755
index cbeccb4..0000000
--- a/src/mesh/assimp-master/port/PyAssimp/scripts/quicktest.py
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/usr/bin/env python
-#-*- coding: UTF-8 -*-
-
-"""
-This module uses the sample.py script to load all test models it finds.
-
-Note: this is not an exhaustive test suite, it does not check the
-data structures in detail. It just verifies whether basic
-loading and querying of 3d models using pyassimp works.
-"""
-
-import os
-import sys
-
-# Make the development (ie. GIT repo) version of PyAssimp available for import.
-sys.path.insert(0, '..')
-
-import sample
-from pyassimp import errors
-
-# Paths to model files.
-basepaths = [os.path.join('..', '..', '..', 'test', 'models'),
- os.path.join('..', '..', '..', 'test', 'models-nonbsd')]
-
-# Valid extensions for 3D model files.
-extensions = ['.3ds', '.x', '.lwo', '.obj', '.md5mesh', '.dxf', '.ply', '.stl',
- '.dae', '.md5anim', '.lws', '.irrmesh', '.nff', '.off', '.blend']
-
-
-def run_tests():
- ok, err = 0, 0
- for path in basepaths:
- print("Looking for models in %s..." % path)
- for root, dirs, files in os.walk(path):
- for afile in files:
- base, ext = os.path.splitext(afile)
- if ext in extensions:
- try:
- sample.main(os.path.join(root, afile))
- ok += 1
- except errors.AssimpError as error:
- # Assimp error is fine; this is a controlled case.
- print(error)
- err += 1
- except Exception:
- print("Error encountered while loading <%s>"
- % os.path.join(root, afile))
- print('** Loaded %s models, got controlled errors for %s files'
- % (ok, err))
-
-
-if __name__ == '__main__':
- run_tests()