File: test_transcoder_basic.py

package info (click to toggle)
basis-universal 2.0.2-3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 216,436 kB
  • sloc: cpp: 163,224; ansic: 51,368; python: 2,824; javascript: 2,637; lisp: 1,026; sh: 161; makefile: 17
file content (24 lines) | stat: -rw-r--r-- 586 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# test_transcoder_basic.py
import sys
import os

# Make sure Python can find the .so file
sys.path.append("basisu_py")   # Adjust if needed

try:
    import basisu_transcoder_python as bt
except ImportError as e:
    print("Failed to import basisu_transcoder_python:", e)
    raise

print("Successfully loaded basisu_transcoder_python")

# Call bt_get_version() via the pybind11 binding
try:
    version = bt.get_version()
    print("Transcoder version:", version)
except Exception as e:
    print("Error calling bt_get_version:", e)
    raise

print("Basic transcoder test complete.")